00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef KGDIALOG_H
00027 #define KGDIALOG_H
00028
00029 #include <config.h>
00030
00031 #include "kdmconfig.h"
00032 #include "kfdialog.h"
00033
00034 class TQPopupMenu;
00035 class TQGridLayout;
00036 class KConsole;
00037 class KGVerify;
00038
00039 #define ex_exit 1
00040 #define ex_greet 2
00041 #define ex_choose 3
00042
00043 class KGDialog : public FDialog {
00044 Q_OBJECT
00045 typedef FDialog inherited;
00046
00047 public:
00048 KGDialog( bool themed = false );
00049
00050 public slots:
00051 void slotActivateMenu( int id );
00052 void slotExit();
00053 void slotSwitch();
00054 void slotReallySwitch();
00055 void slotConsole();
00056 void slotShutdown( int id );
00057
00058 protected:
00059 #ifdef XDMCP
00060 void completeMenu( int _switchIf, int _switchCode, const TQString &_switchMsg, int _switchAccel );
00061 #else
00062 void completeMenu();
00063 #endif
00064 void inserten( const TQString& txt, int accel, const char *member );
00065 int inserten( const TQString& txt, int accel, TQPopupMenu *cmnu );
00066
00067 bool needSep;
00068 TQPopupMenu *optMenu;
00069 KGVerify *verify;
00070 #ifdef WITH_KDM_XCONSOLE
00071 KConsole *consoleView;
00072 #endif
00073
00074 private slots:
00075 void slotDisplaySelected( int vt );
00076 void slotPopulateDisplays();
00077
00078 private:
00079 void ensureMenu();
00080
00081 #ifdef HAVE_VTS
00082 TQPopupMenu *dpyMenu;
00083 #endif
00084 int switchCode;
00085 };
00086
00087 #endif