author | mickeyl <mickeyl> | 2005-05-24 20:06:37 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-24 20:06:37 (UTC) |
commit | 2848aca68964a46fb2f786cc01a9b2583d599511 (patch) (side-by-side diff) | |
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) (show 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 @@ +#ifndef TABMAINWINDOW_H +#define TABMAINWINDOW_H + +#include "tabmanager.h" +#include <qmainwindow.h> +#include <qtoolbar.h> +#include <qtoolbutton.h> +#include <qpe/resource.h> + +class TabMainWindow : public QMainWindow { + +public: + static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); } + + TabMainWindow( QWidget* parent = 0, const char* name = 0, WFlags fl = 0) : QMainWindow(parent, name, fl){ + tabManager = new TabManager(this, "TabManger"); + setCaption("Tab Manager"); + setToolBarsMovable(false); + this->setCentralWidget(tabManager); + QToolBar *newToolBar = new QToolBar("toolbar", this); + QToolBar *emptyToolBar = new QToolBar("empty", this); + emptyToolBar->setHorizontalStretchable(true); + + // Insert all of the buttons. + QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); + QToolButton *newFile = new QToolButton(Resource::loadPixmap("new"), "New Application", 0, tabManager, SLOT(newApplication()), newToolBar); + QToolButton *editItem = new QToolButton(Resource::loadPixmap("edit"), "Edit", 0, tabManager, SLOT(editCurrentItem()), newToolBar); + QToolButton *deleteItem = new QToolButton(Resource::loadPixmap("trash"), "Delete", 0, tabManager, SLOT(removeItem()), newToolBar); + + }; + +protected: + TabManager *tabManager; + +}; + +#endif + +// tabmainwindow.h + |