00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TDEWINDOW_INTERFACE_H
00021 #define TDEWINDOW_INTERFACE_H
00022
00023 #include <dcopobject.h>
00024 #include <tqstringlist.h>
00025 #include <tqcstring.h>
00026 #include <dcopref.h>
00027
00028 class KDCOPActionProxy;
00029 class KDCOPPropertyProxy;
00030 class TDEMainWindow;
00031
00040 class TDEUI_EXPORT TDEMainWindowInterface : virtual public DCOPObject
00041 {
00042 K_DCOP
00043
00044 public:
00050 TDEMainWindowInterface( TDEMainWindow * mainWindow );
00055 ~TDEMainWindowInterface();
00056
00057 QCStringList functionsDynamic();
00058 bool processDynamic(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData);
00059
00060
00061 k_dcop:
00066 QCStringList actions();
00067
00074 bool activateAction( TQCString action);
00075
00082 bool disableAction( TQCString action);
00083
00090 bool enableAction( TQCString action);
00091
00098 bool actionIsEnabled( TQCString action);
00099
00106 TQCString actionToolTip( TQCString action);
00107
00114 DCOPRef action( const TQCString &name );
00115
00119 TQMap<TQCString,DCOPRef> actionMap();
00126 int getWinID();
00131 void grabWindowToClipBoard();
00132
00133 void hide();
00134
00135 void maximize();
00136
00137 void minimize();
00138
00139
00140 void resize(int newWidth, int newHeight);
00141
00142
00143 void move(int newX, int newY);
00144 void setGeometry(int newX, int newY, int newWidth, int newHeight);
00145 void raise();
00146 void lower();
00147 void restore();
00148 void show();
00149 void close();
00150 void setActiveWindow();
00151 void setActiveWindowFocused();
00152
00153
00154
00155 private:
00156 TDEMainWindow *m_MainWindow;
00157 KDCOPActionProxy *m_dcopActionProxy;
00158 KDCOPPropertyProxy *m_dcopPropertyProxy;
00159 };
00160
00161 #endif
00162
00163