author | mickeyl <mickeyl> | 2005-05-24 20:06:37 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-24 20:06:37 (UTC) |
commit | 2848aca68964a46fb2f786cc01a9b2583d599511 (patch) (unidiff) | |
tree | 7fb18a2e165acd069ae5cbe0fa18205b67bfdae8 /noncore/unsupported/tabmanager/tabmainwindow.h | |
parent | 1ce0e947a999c2a98d6f6a78e69a8d1f433d7cba (diff) | |
download | opie-2848aca68964a46fb2f786cc01a9b2583d599511.zip opie-2848aca68964a46fb2f786cc01a9b2583d599511.tar.gz opie-2848aca68964a46fb2f786cc01a9b2583d599511.tar.bz2 |
tabmanager -> unsupported
Diffstat (limited to 'noncore/unsupported/tabmanager/tabmainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/tabmanager/tabmainwindow.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/noncore/unsupported/tabmanager/tabmainwindow.h b/noncore/unsupported/tabmanager/tabmainwindow.h new file mode 100644 index 0000000..d154f1e --- a/dev/null +++ b/noncore/unsupported/tabmanager/tabmainwindow.h | |||
@@ -0,0 +1,40 @@ | |||
1 | #ifndef TABMAINWINDOW_H | ||
2 | #define TABMAINWINDOW_H | ||
3 | |||
4 | #include "tabmanager.h" | ||
5 | #include <qmainwindow.h> | ||
6 | #include <qtoolbar.h> | ||
7 | #include <qtoolbutton.h> | ||
8 | #include <qpe/resource.h> | ||
9 | |||
10 | class TabMainWindow : public QMainWindow { | ||
11 | |||
12 | public: | ||
13 | static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); } | ||
14 | |||
15 | TabMainWindow( QWidget* parent = 0, const char* name = 0, WFlags fl = 0) : QMainWindow(parent, name, fl){ | ||
16 | tabManager = new TabManager(this, "TabManger"); | ||
17 | setCaption("Tab Manager"); | ||
18 | setToolBarsMovable(false); | ||
19 | this->setCentralWidget(tabManager); | ||
20 | QToolBar *newToolBar = new QToolBar("toolbar", this); | ||
21 | QToolBar *emptyToolBar = new QToolBar("empty", this); | ||
22 | emptyToolBar->setHorizontalStretchable(true); | ||
23 | |||
24 | // Insert all of the buttons. | ||
25 | QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); | ||
26 | QToolButton *newFile = new QToolButton(Resource::loadPixmap("new"), "New Application", 0, tabManager, SLOT(newApplication()), newToolBar); | ||
27 | QToolButton *editItem = new QToolButton(Resource::loadPixmap("edit"), "Edit", 0, tabManager, SLOT(editCurrentItem()), newToolBar); | ||
28 | QToolButton *deleteItem = new QToolButton(Resource::loadPixmap("trash"), "Delete", 0, tabManager, SLOT(removeItem()), newToolBar); | ||
29 | |||
30 | }; | ||
31 | |||
32 | protected: | ||
33 | TabManager *tabManager; | ||
34 | |||
35 | }; | ||
36 | |||
37 | #endif | ||
38 | |||
39 | // tabmainwindow.h | ||
40 | |||