File indexing completed on 2023-09-24 08:11:11
0001 #ifndef KWINDOWTEST_H 0002 #define KWINDOWTEST_H 0003 0004 #include <QMenuBar> 0005 #include <QProgressBar> 0006 #include <QStatusBar> 0007 #include <QTimer> 0008 #include <ktoolbar.h> 0009 #include <kxmlguiwindow.h> 0010 0011 class QTextEdit; 0012 class QComboBox; 0013 class QLineEdit; 0014 0015 class TestWindow : public KXmlGuiWindow 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 TestWindow(QWidget *parent = nullptr); 0021 ~TestWindow() override; 0022 0023 public Q_SLOTS: 0024 void beFixed(); 0025 void beYFixed(); 0026 0027 void slotNew(); 0028 void slotPrint(); 0029 void slotReturn(); 0030 void slotSave(); 0031 void slotList(const QString &str); 0032 void slotOpen(); 0033 void slotCompletion(); 0034 void slotCompletionsMenu(QAction *action); 0035 void slotInsertClock(); 0036 void slotLined(); 0037 void slotImportant(); 0038 void slotExit(); 0039 void slotFrame(); 0040 void slotListCompletion(); 0041 void slotMessage(int, bool); 0042 void slotToggle(bool); 0043 void slotClearCombo(); 0044 void slotGoGoGoo(); 0045 void slotInsertListInCombo(); 0046 void slotMakeItem3Current(); 0047 void slotToggled(QAction *action); 0048 0049 protected: 0050 QMenu *itemsMenu; 0051 QMenu *completions; 0052 QStatusBar *statusBar; 0053 KToolBar *tb; 0054 KToolBar *tb1; 0055 class QLineEdit *testLineEdit; 0056 class QComboBox *testComboBox; 0057 QAction *fileNewAction; 0058 QAction *exitAction; 0059 bool lineL; 0060 bool exitB; 0061 bool greenF; 0062 bool ena; 0063 QTextEdit *widget; 0064 QTimer *timer; 0065 QProgressBar *pr; 0066 }; 0067 #endif