author | zecke <zecke> | 2004-11-15 15:42:19 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-11-15 15:42:19 (UTC) |
commit | 4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead (patch) (unidiff) | |
tree | 4efb6e720ee5dab11f02fac08acbf0156198b350 /noncore/settings/tabmanager/tabmainwindow.h | |
parent | 0d5b9141a5bda1406c513d174dbce95eb5ed0a97 (diff) | |
download | opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.zip opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.tar.gz opie-4c2680a5cdfaa4ea2bd8881ffeee0f681ba34ead.tar.bz2 |
Make tabmanager quick launchable
Diffstat (limited to 'noncore/settings/tabmanager/tabmainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/tabmanager/tabmainwindow.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/tabmanager/tabmainwindow.h b/noncore/settings/tabmanager/tabmainwindow.h index 69fb15d..d154f1e 100644 --- a/noncore/settings/tabmanager/tabmainwindow.h +++ b/noncore/settings/tabmanager/tabmainwindow.h | |||
@@ -1,25 +1,27 @@ | |||
1 | #ifndef TABMAINWINDOW_H | 1 | #ifndef TABMAINWINDOW_H |
2 | #define TABMAINWINDOW_H | 2 | #define TABMAINWINDOW_H |
3 | 3 | ||
4 | #include "tabmanager.h" | 4 | #include "tabmanager.h" |
5 | #include <qmainwindow.h> | 5 | #include <qmainwindow.h> |
6 | #include <qtoolbar.h> | 6 | #include <qtoolbar.h> |
7 | #include <qtoolbutton.h> | 7 | #include <qtoolbutton.h> |
8 | #include <qpe/resource.h> | 8 | #include <qpe/resource.h> |
9 | 9 | ||
10 | class TabMainWindow : public QMainWindow { | 10 | class TabMainWindow : public QMainWindow { |
11 | 11 | ||
12 | public: | 12 | public: |
13 | TabMainWindow( QWidget* parent = 0, const char* name = 0) : QMainWindow(parent, name){ | 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){ | ||
14 | tabManager = new TabManager(this, "TabManger"); | 16 | tabManager = new TabManager(this, "TabManger"); |
15 | setCaption("Tab Manager"); | 17 | setCaption("Tab Manager"); |
16 | setToolBarsMovable(false); | 18 | setToolBarsMovable(false); |
17 | this->setCentralWidget(tabManager); | 19 | this->setCentralWidget(tabManager); |
18 | QToolBar *newToolBar = new QToolBar("toolbar", this); | 20 | QToolBar *newToolBar = new QToolBar("toolbar", this); |
19 | QToolBar *emptyToolBar = new QToolBar("empty", this); | 21 | QToolBar *emptyToolBar = new QToolBar("empty", this); |
20 | emptyToolBar->setHorizontalStretchable(true); | 22 | emptyToolBar->setHorizontalStretchable(true); |
21 | 23 | ||
22 | // Insert all of the buttons. | 24 | // Insert all of the buttons. |
23 | QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); | 25 | QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); |
24 | QToolButton *newFile = new QToolButton(Resource::loadPixmap("new"), "New Application", 0, tabManager, SLOT(newApplication()), newToolBar); | 26 | QToolButton *newFile = new QToolButton(Resource::loadPixmap("new"), "New Application", 0, tabManager, SLOT(newApplication()), newToolBar); |
25 | QToolButton *editItem = new QToolButton(Resource::loadPixmap("edit"), "Edit", 0, tabManager, SLOT(editCurrentItem()), newToolBar); | 27 | QToolButton *editItem = new QToolButton(Resource::loadPixmap("edit"), "Edit", 0, tabManager, SLOT(editCurrentItem()), newToolBar); |