summaryrefslogtreecommitdiff
path: root/noncore/apps/confedit/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/apps/confedit/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/confedit/mainwindow.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/noncore/apps/confedit/mainwindow.h b/noncore/apps/confedit/mainwindow.h
new file mode 100644
index 0000000..b015dac
--- a/dev/null
+++ b/noncore/apps/confedit/mainwindow.h
@@ -0,0 +1,56 @@
1/***************************************************************************
2 * *
3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. *
7 * *
8 ***************************************************************************/
9
10// (c) 2002 Patrick S. Vogt <tille@handhelds.org>
11
12#ifndef MAINWINDOW_H
13#define MAINWINDOW_H
14
15#include <qmainwindow.h>
16#include <qaction.h>
17#include <qtimer.h>
18#include <qpopupmenu.h>
19#include "editwidget.h"
20
21class QPEToolBar;
22class ListViewItemConfFile;
23class ListViewConfDir;
24
25
26class MainWindow : public QMainWindow
27{
28 Q_OBJECT
29
30
31public:
32 MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
33 ~MainWindow();
34
35
36public slots:
37 void setCurrent(QListViewItem*);
38 void groupChanged(const QString&);
39 void keyChanged(const QString&);
40 void valueChanged(const QString&);
41 void showPopup();
42 void stopTimer( QListViewItem* );
43 void saveConfFile();
44
45private:
46 ListViewConfDir *settingList;
47 EditWidget *editor;
48 ListViewItemConfigEntry *_currentItem;
49 ListViewItemConfFile *_fileItem;
50 QTimer *popupTimer;
51 QPopupMenu *popupMenu;
52
53 void makeMenu();
54};
55
56#endif