author | tille <tille> | 2002-06-29 20:15:06 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-29 20:15:06 (UTC) |
commit | 5960b3a2823037c63afba09ca83dbcc0943cd082 (patch) (side-by-side diff) | |
tree | e81a6fed931463b24ef0dd32cd913275e19eb850 /noncore/apps/confedit/mainwindow.h | |
parent | ffc8b4587d6070abc82b22d03f0819d78c1ff9b0 (diff) | |
download | opie-5960b3a2823037c63afba09ca83dbcc0943cd082.zip opie-5960b3a2823037c63afba09ca83dbcc0943cd082.tar.gz opie-5960b3a2823037c63afba09ca83dbcc0943cd082.tar.bz2 |
something like regedit ;-)
Diffstat (limited to 'noncore/apps/confedit/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/confedit/mainwindow.h | 56 |
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 @@ +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +// (c) 2002 Patrick S. Vogt <tille@handhelds.org> + +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <qmainwindow.h> +#include <qaction.h> +#include <qtimer.h> +#include <qpopupmenu.h> +#include "editwidget.h" + +class QPEToolBar; +class ListViewItemConfFile; +class ListViewConfDir; + + +class MainWindow : public QMainWindow +{ + Q_OBJECT + + +public: + MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); + ~MainWindow(); + + +public slots: + void setCurrent(QListViewItem*); + void groupChanged(const QString&); + void keyChanged(const QString&); + void valueChanged(const QString&); + void showPopup(); + void stopTimer( QListViewItem* ); + void saveConfFile(); + +private: + ListViewConfDir *settingList; + EditWidget *editor; + ListViewItemConfigEntry *_currentItem; + ListViewItemConfFile *_fileItem; + QTimer *popupTimer; + QPopupMenu *popupMenu; + + void makeMenu(); +}; + +#endif |