summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/TDEApplicationSignals.java
blob: a98a4028fdf51198ae5e8a60e9b0b4b9b8505f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQObject;
import org.kde.qt.TQPixmap;
import org.kde.qt.TQSessionManager;
import java.util.ArrayList;
import org.kde.qt.TQEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQPalette;

public interface TDEApplicationSignals {
	/**	
		 Emitted when TDEApplication has changed its palette due to a KControl request.
			 Normally, widgets will update their palette automatically, but you
		 should connect to this to program special behavior.
		   		@short    Emitted when TDEApplication has changed its palette due to a KControl request.
	*/
	void kdisplayPaletteChanged();
	/**	
		 Emitted when TDEApplication has changed its GUI style in response to a KControl request.
			 Normally, widgets will update their styles automatically (as they would
		 respond to an explicit setGUIStyle() call), but you should connect to
		 this to program special behavior.
		   		@short    Emitted when TDEApplication has changed its GUI style in response to a KControl request.
	*/
	void kdisplayStyleChanged();
	/**	
		 Emitted when TDEApplication has changed its font in response to a KControl request.
			 Normally widgets will update their fonts automatically, but you should
		 connect to this to monitor global font changes, especially if you are
		 using explicit fonts.
			 Note: If you derive from a TQWidget-based class, a faster method is to
		       reimplement TQWidget.fontChange(). This is the preferred way
		       to get informed about font updates.
		   		@short    Emitted when TDEApplication has changed its font in response to a KControl request.
	*/
	void kdisplayFontChanged();
	/**	
		 Emitted when TDEApplication has changed either its GUI style, its font or its palette
		 in response to a kdisplay request. Normally, widgets will update their styles
		 automatically, but you should connect to this to program special
		 behavior. 		@short    Emitted when TDEApplication has changed either its GUI style, its font or its palette  in response to a kdisplay request.
	*/
	void appearanceChanged();
	/**	
		 Emitted when the settings for toolbars have been changed. KToolBar will know what to do.
		   		@short    Emitted when the settings for toolbars have been changed.
	*/
	void toolbarAppearanceChanged(int arg1);
	/**	
		 Emitted when the desktop background has been changed by <code>kcmdisplay.</code>
			@param desk The desktop whose background has changed.
		   		@short    Emitted when the desktop background has been changed by <code>kcmdisplay.</code>
	*/
	void backgroundChanged(int desk);
	/**	
		 Emitted when the global settings have been changed - see TDEGlobalSettings
		 TDEApplication takes care of calling reparseConfiguration on TDEGlobal.config()
		 so that applications/classes using this only have to re-read the configuration
			@param category the category among the enum above
		   		@short    Emitted when the global settings have been changed - see TDEGlobalSettings  TDEApplication takes care of calling reparseConfiguration on TDEGlobal.config()  so that applications/classes using this only have to re-read the configuration
	*/
	void settingsChanged(int category);
	/**	
		 Emitted when the global icon settings have been changed.
			@param group the new group
		   		@short    Emitted when the global icon settings have been changed.
	*/
	void iconChanged(int group);
	/**	
		 Emitted when a KIPC user message has been received.
			@param id the message id
			@param data the data
				@short    Emitted when a KIPC user message has been received.
		@see KIPC
		@see KIPC#Message
		@see #addKipcEventMask
		@see #removeKipcEventMask
	*/
	void kipcMessage(int id, int data);
	/**	
		      Session management asks you to save the state of your application.
			     This signal is provided for compatibility only. For new
		     applications, simply use KMainWindow. By reimplementing 
		     KMainWindow.queryClose(), KMainWindow.saveProperties() and
		 KMainWindow.readProperties() you can simply handle session
		     management for applications with multiple toplevel windows.
			     For purposes without KMainWindow, create an instance of
		     KSessionManaged and reimplement the functions 
		     KSessionManaged.commitData() and/or 
		     KSessionManaged.saveState()
			     If you still want to use this signal, here is what you should do:
			     Connect to this signal in order to save your data. Do NOT
		     manipulate the UI in that slot, it is blocked by the session
		     manager.
			     Use the sessionConfig() KConfig object to store all your
		     instance specific data.
			     Do not do any closing at this point! The user may still select
		     Cancel  wanting to continue working with your
		     application. Cleanups could be done after shutDown() (see
		     the following).
			  		@short         Session management asks you to save the state of your application.
	*/
	void saveYourself();
	/**	 Your application is killed. Either by your program itself,
		      <code>xkill</code> or (the usual case) by KDE's logout.
			      The signal is particularly useful if your application has to do some
		      last-second cleanups. Note that no user interaction is possible at
		      this state.
		   		@short   Your application is killed.
	*/
	void shutDown();
}