author | llornkcor <llornkcor> | 2002-05-06 17:45:44 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-06 17:45:44 (UTC) |
commit | d49663597393e1b9e63041964a080069e4b6a664 (patch) (unidiff) | |
tree | ba788e8123b5e98d80ab2eea4012f31119968aa8 /noncore/settings/tabmanager/tabmainwindow.h | |
parent | 4a5885f1dd1328432e3bd3ef7cb2efd9a336b78b (diff) | |
download | opie-d49663597393e1b9e63041964a080069e4b6a664.zip opie-d49663597393e1b9e63041964a080069e4b6a664.tar.gz opie-d49663597393e1b9e63041964a080069e4b6a664.tar.bz2 |
initial
Diffstat (limited to 'noncore/settings/tabmanager/tabmainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/tabmanager/tabmainwindow.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/noncore/settings/tabmanager/tabmainwindow.h b/noncore/settings/tabmanager/tabmainwindow.h new file mode 100644 index 0000000..2116f5a --- a/dev/null +++ b/noncore/settings/tabmanager/tabmainwindow.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /* | ||
2 | |||
3 | =. This file is part of the OPIE Project | ||
4 | .=l. Copyright (c) 2002 Benjamin Meyer <meyerb@sharpsec.com> | ||
5 | .>+-= | ||
6 | _;:, .> :=|. This library is free software; you can | ||
7 | .> <`_, > . <= redistribute it and/or modify it under | ||
8 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
9 | .="- .-=="i, .._ License as published by the Free Software | ||
10 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
11 | ._= =} : or (at your option) any later version. | ||
12 | .%`+i> _;_. | ||
13 | .i_,=:_. -<s. This library is distributed in the hope that | ||
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
15 | : .. .:, . . . without even the implied warranty of | ||
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
18 | ..}^=.= = ; Library General Public License for more | ||
19 | ++= -. .` .: details. | ||
20 | : = ...= . :.=- | ||
21 | -. .:....=;==+<; You should have received a copy of the GNU | ||
22 | -_. . . )=. = Library General Public License along with | ||
23 | -- :-=` this library; see the file COPYING.LIB. | ||
24 | If not, write to the Free Software Foundation, | ||
25 | Inc., 59 Temple Place - Suite 330, | ||
26 | Boston, MA 02111-1307, USA. | ||
27 | |||
28 | */ | ||
29 | #ifndef TABMAINWINDOW_H | ||
30 | #define TABMAINWINDOW_H | ||
31 | |||
32 | #include "tabmanager.h" | ||
33 | #include <qmainwindow.h> | ||
34 | #include <qtoolbar.h> | ||
35 | #include <qtoolbutton.h> | ||
36 | #include <qpe/resource.h> | ||
37 | |||
38 | class TabMainWindow : public QMainWindow { | ||
39 | |||
40 | public: | ||
41 | TabMainWindow( QWidget* parent = 0, const char* name = 0) : QMainWindow(parent, name){ | ||
42 | tabManager = new TabManager(this, "TabManger"); | ||
43 | setCaption("Tab Manager"); | ||
44 | this->setCentralWidget(tabManager); | ||
45 | QToolBar *newToolBar = new QToolBar("toolbar", this); | ||
46 | |||
47 | // Insert all of the buttons. | ||
48 | QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); | ||
49 | QToolButton *newFile = new QToolButton(Resource::loadPixmap("new"), "New Folder", 0, tabManager, SLOT(newApplication()), newToolBar); | ||
50 | QToolButton *editItem = new QToolButton(Resource::loadPixmap("edit"), "Edit", 0, tabManager, SLOT(editCurrentItem()), newToolBar); | ||
51 | QToolButton *deleteItem = new QToolButton(Resource::loadPixmap("reset"), "Deelete", 0, tabManager, SLOT(removeItem()), newToolBar); | ||
52 | |||
53 | }; | ||
54 | |||
55 | protected: | ||
56 | TabManager *tabManager; | ||
57 | |||
58 | }; | ||
59 | |||
60 | #endif | ||
61 | |||
62 | // tabmainwindow.h | ||
63 | |||