summaryrefslogtreecommitdiff
path: root/noncore/settings/tabmanager
authorllornkcor <llornkcor>2002-05-06 20:54:54 (UTC)
committer llornkcor <llornkcor>2002-05-06 20:54:54 (UTC)
commit8622bcb85245937853f3e657498957deb7eb2073 (patch) (unidiff)
tree9c48f2312364b71358288e435e0ce5c39bd63c40 /noncore/settings/tabmanager
parent24259e7b1446f671861b86ee1abb5d8021b98387 (diff)
downloadopie-8622bcb85245937853f3e657498957deb7eb2073.zip
opie-8622bcb85245937853f3e657498957deb7eb2073.tar.gz
opie-8622bcb85245937853f3e657498957deb7eb2073.tar.bz2
removed license info as per request from benmeyer..... it's still GPL, tho
Diffstat (limited to 'noncore/settings/tabmanager') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/tabmanager/app.cpp30
-rw-r--r--noncore/settings/tabmanager/app.h28
-rw-r--r--noncore/settings/tabmanager/main.cpp28
-rw-r--r--noncore/settings/tabmanager/tabapplnk.h28
-rw-r--r--noncore/settings/tabmanager/tablistview.h30
-rw-r--r--noncore/settings/tabmanager/tabmainwindow.h28
-rw-r--r--noncore/settings/tabmanager/tabmanager.cpp29
-rw-r--r--noncore/settings/tabmanager/tabmanager.h28
8 files changed, 2 insertions, 227 deletions
diff --git a/noncore/settings/tabmanager/app.cpp b/noncore/settings/tabmanager/app.cpp
index aa17bfe..30ba9a5 100644
--- a/noncore/settings/tabmanager/app.cpp
+++ b/noncore/settings/tabmanager/app.cpp
@@ -1,82 +1,54 @@
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/**************************************************************************** 1/****************************************************************************
30** Form implementation generated from reading ui file 'app.ui' 2** Form implementation generated from reading ui file 'app.ui'
31** 3**
32** Created: Fri May 3 14:38:15 2002 4** Created: Fri May 3 14:38:15 2002
33** by: The User Interface Compiler (uic) 5** by: The User Interface Compiler (uic)
34** 6**
35** WARNING! All changes made in this file will be lost! 7** WARNING! All changes made in this file will be lost!
36****************************************************************************/ 8****************************************************************************/
37#include "app.h" 9#include "app.h"
38 10
39#include <qlabel.h> 11#include <qlabel.h>
40#include <qlineedit.h> 12#include <qlineedit.h>
41#include <qpushbutton.h> 13#include <qpushbutton.h>
42#include <qlayout.h> 14#include <qlayout.h>
43#include <qvariant.h> 15#include <qvariant.h>
44#include <qtooltip.h> 16#include <qtooltip.h>
45#include <qwhatsthis.h> 17#include <qwhatsthis.h>
46 18
47/* 19/*
48 * Constructs a AppEdit which is a child of 'parent', with the 20 * Constructs a AppEdit which is a child of 'parent', with the
49 * name 'name' and widget flags set to 'f' 21 * name 'name' and widget flags set to 'f'
50 * 22 *
51 * The dialog will by default be modeless, unless you set 'modal' to 23 * The dialog will by default be modeless, unless you set 'modal' to
52 * TRUE to construct a modal dialog. 24 * TRUE to construct a modal dialog.
53 */ 25 */
54AppEdit::AppEdit( QWidget* parent, const char* name, bool modal, WFlags fl ) 26AppEdit::AppEdit( QWidget* parent, const char* name, bool modal, WFlags fl )
55 : QDialog( parent, name, modal, fl ) 27 : QDialog( parent, name, modal, fl )
56{ 28{
57 if ( !name ) 29 if ( !name )
58 setName( "AppEdit" ); 30 setName( "AppEdit" );
59 resize( 211, 241 ); 31 resize( 211, 241 );
60 setCaption( tr( "Application" ) ); 32 setCaption( tr( "Application" ) );
61 AppEditLayout = new QGridLayout( this ); 33 AppEditLayout = new QGridLayout( this );
62 AppEditLayout->setSpacing( 6 ); 34 AppEditLayout->setSpacing( 6 );
63 AppEditLayout->setMargin( 11 ); 35 AppEditLayout->setMargin( 11 );
64 36
65 TextLabel3 = new QLabel( this, "TextLabel3" ); 37 TextLabel3 = new QLabel( this, "TextLabel3" );
66 TextLabel3->setText( tr( "Exec" ) ); 38 TextLabel3->setText( tr( "Exec" ) );
67 39
68 AppEditLayout->addWidget( TextLabel3, 2, 0 ); 40 AppEditLayout->addWidget( TextLabel3, 2, 0 );
69 41
70 TextLabel4 = new QLabel( this, "TextLabel4" ); 42 TextLabel4 = new QLabel( this, "TextLabel4" );
71 TextLabel4->setText( tr( "Comment" ) ); 43 TextLabel4->setText( tr( "Comment" ) );
72 44
73 AppEditLayout->addWidget( TextLabel4, 3, 0 ); 45 AppEditLayout->addWidget( TextLabel4, 3, 0 );
74 46
75 TextLabel2 = new QLabel( this, "TextLabel2" ); 47 TextLabel2 = new QLabel( this, "TextLabel2" );
76 TextLabel2->setText( tr( "Icon" ) ); 48 TextLabel2->setText( tr( "Icon" ) );
77 49
78 AppEditLayout->addWidget( TextLabel2, 1, 0 ); 50 AppEditLayout->addWidget( TextLabel2, 1, 0 );
79 51
80 TextLabel1 = new QLabel( this, "TextLabel1" ); 52 TextLabel1 = new QLabel( this, "TextLabel1" );
81 TextLabel1->setText( tr( "Name" ) ); 53 TextLabel1->setText( tr( "Name" ) );
82 54
diff --git a/noncore/settings/tabmanager/app.h b/noncore/settings/tabmanager/app.h
index 89afb28..ffa6222 100644
--- a/noncore/settings/tabmanager/app.h
+++ b/noncore/settings/tabmanager/app.h
@@ -1,52 +1,24 @@
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/**************************************************************************** 1/****************************************************************************
30** Form interface generated from reading ui file 'app.ui' 2** Form interface generated from reading ui file 'app.ui'
31** 3**
32** Created: Fri May 3 14:38:09 2002 4** Created: Fri May 3 14:38:09 2002
33** by: The User Interface Compiler (uic) 5** by: The User Interface Compiler (uic)
34** 6**
35** WARNING! All changes made in this file will be lost! 7** WARNING! All changes made in this file will be lost!
36****************************************************************************/ 8****************************************************************************/
37#ifndef APPEDIT_H 9#ifndef APPEDIT_H
38#define APPEDIT_H 10#define APPEDIT_H
39 11
40#include <qvariant.h> 12#include <qvariant.h>
41#include <qdialog.h> 13#include <qdialog.h>
42class QVBoxLayout; 14class QVBoxLayout;
43class QHBoxLayout; 15class QHBoxLayout;
44class QGridLayout; 16class QGridLayout;
45class QLabel; 17class QLabel;
46class QLineEdit; 18class QLineEdit;
47 19
48class AppEdit : public QDialog 20class AppEdit : public QDialog
49{ 21{
50 Q_OBJECT 22 Q_OBJECT
51 23
52public: 24public:
diff --git a/noncore/settings/tabmanager/main.cpp b/noncore/settings/tabmanager/main.cpp
index a96d768..f737de5 100644
--- a/noncore/settings/tabmanager/main.cpp
+++ b/noncore/settings/tabmanager/main.cpp
@@ -1,40 +1,12 @@
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#include "tabmainwindow.h" 1#include "tabmainwindow.h"
30#include <qpe/qpeapplication.h> 2#include <qpe/qpeapplication.h>
31 3
32int main( int argc, char **argv ){ 4int main( int argc, char **argv ){
33 QPEApplication application( argc, argv ); 5 QPEApplication application( argc, argv );
34 TabMainWindow mainWindow; 6 TabMainWindow mainWindow;
35 application.showMainWidget(&mainWindow); 7 application.showMainWidget(&mainWindow);
36 return application.exec(); 8 return application.exec();
37} 9}
38 10
39//main.cpp 11//main.cpp
40 12
diff --git a/noncore/settings/tabmanager/tabapplnk.h b/noncore/settings/tabmanager/tabapplnk.h
index 6669144..9333e87 100644
--- a/noncore/settings/tabmanager/tabapplnk.h
+++ b/noncore/settings/tabmanager/tabapplnk.h
@@ -1,46 +1,18 @@
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 TABAPPLNK_H 1#ifndef TABAPPLNK_H
30#define TABAPPLNK_H 2#define TABAPPLNK_H
31 3
32#include <qpe/applnk.h> 4#include <qpe/applnk.h>
33 5
34class TabAppLnk : public AppLnk { 6class TabAppLnk : public AppLnk {
35 7
36public: 8public:
37 TabAppLnk( const QString & file) :AppLnk(file){ }; 9 TabAppLnk( const QString & file) :AppLnk(file){ };
38 10
39 QString pixmapString() { return mIconFile; }; 11 QString pixmapString() { return mIconFile; };
40 12
41}; 13};
42 14
43#endif 15#endif
44 16
45// tabapplnk.h 17// tabapplnk.h
46 18
diff --git a/noncore/settings/tabmanager/tablistview.h b/noncore/settings/tabmanager/tablistview.h
index 545ee38..97f9dec 100644
--- a/noncore/settings/tabmanager/tablistview.h
+++ b/noncore/settings/tabmanager/tablistview.h
@@ -1,74 +1,46 @@
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 TABLISTVIEW_H 1#ifndef TABLISTVIEW_H
30#define TABLISTVIEW_H 2#define TABLISTVIEW_H
31 3
32#include <qlistview.h> 4#include <qlistview.h>
33#include <qcursor.h> 5#include <qcursor.h>
34#include <qapplication.h> 6#include <qapplication.h>
35 7
36class TabListView : public QListView { 8class TabListView : public QListView {
37 Q_OBJECT 9 Q_OBJECT
38 10
39signals: 11signals:
40 void moveItem(QListViewItem *item, QListViewItem *newFolder); 12 void moveItem(QListViewItem *item, QListViewItem *newFolder);
41 13
42public: 14public:
43 TabListView( QWidget* parent = 0, const char* name = 0) : QListView(parent, name){ currentSelectedItem = NULL; 15 TabListView( QWidget* parent = 0, const char* name = 0) : QListView(parent, name){ currentSelectedItem = NULL;
44 connect(this, SIGNAL(pressed ( QListViewItem *)), this, SLOT(itemPressed(QListViewItem *))); 16 connect(this, SIGNAL(pressed ( QListViewItem *)), this, SLOT(itemPressed(QListViewItem *)));
45 internalCursor.setShape(0); 17 internalCursor.setShape(0);
46 }; 18 };
47 19
48protected: 20protected:
49 void contentsMouseReleaseEvent(QMouseEvent* ){ 21 void contentsMouseReleaseEvent(QMouseEvent* ){
50 QListViewItem *newGroup = this->currentItem(); 22 QListViewItem *newGroup = this->currentItem();
51 // Make sure they are both real. 23 // Make sure they are both real.
52 if (currentSelectedItem == NULL || newGroup == NULL) 24 if (currentSelectedItem == NULL || newGroup == NULL)
53 return; 25 return;
54 // Make sure they are not the same 26 // Make sure they are not the same
55 if(this->isSelected(currentSelectedItem) == true) 27 if(this->isSelected(currentSelectedItem) == true)
56 return; 28 return;
57 29
58 // Ok we have two valid items. 30 // Ok we have two valid items.
59 if(newGroup->parent()) 31 if(newGroup->parent())
60 newGroup = newGroup->parent(); 32 newGroup = newGroup->parent();
61 33
62 // Just in case the parent was null 34 // Just in case the parent was null
63 if(newGroup == NULL) 35 if(newGroup == NULL)
64 return; 36 return;
65 37
66 // If the new folder and buddies current parent are the same don't do anything. 38 // If the new folder and buddies current parent are the same don't do anything.
67 if (newGroup != currentSelectedItem->parent()) 39 if (newGroup != currentSelectedItem->parent())
68 moveItem(currentSelectedItem, newGroup); 40 moveItem(currentSelectedItem, newGroup);
69 currentSelectedItem = NULL; 41 currentSelectedItem = NULL;
70 qApp->restoreOverrideCursor(); 42 qApp->restoreOverrideCursor();
71}; 43};
72 44
73private slots: 45private slots:
74 void itemPressed(QListViewItem *item){ 46 void itemPressed(QListViewItem *item){
diff --git a/noncore/settings/tabmanager/tabmainwindow.h b/noncore/settings/tabmanager/tabmainwindow.h
index 2116f5a..c76ad9f 100644
--- a/noncore/settings/tabmanager/tabmainwindow.h
+++ b/noncore/settings/tabmanager/tabmainwindow.h
@@ -1,52 +1,24 @@
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 1#ifndef TABMAINWINDOW_H
30#define TABMAINWINDOW_H 2#define TABMAINWINDOW_H
31 3
32#include "tabmanager.h" 4#include "tabmanager.h"
33#include <qmainwindow.h> 5#include <qmainwindow.h>
34#include <qtoolbar.h> 6#include <qtoolbar.h>
35#include <qtoolbutton.h> 7#include <qtoolbutton.h>
36#include <qpe/resource.h> 8#include <qpe/resource.h>
37 9
38class TabMainWindow : public QMainWindow { 10class TabMainWindow : public QMainWindow {
39 11
40public: 12public:
41 TabMainWindow( QWidget* parent = 0, const char* name = 0) : QMainWindow(parent, name){ 13 TabMainWindow( QWidget* parent = 0, const char* name = 0) : QMainWindow(parent, name){
42 tabManager = new TabManager(this, "TabManger"); 14 tabManager = new TabManager(this, "TabManger");
43 setCaption("Tab Manager"); 15 setCaption("Tab Manager");
44 this->setCentralWidget(tabManager); 16 this->setCentralWidget(tabManager);
45 QToolBar *newToolBar = new QToolBar("toolbar", this); 17 QToolBar *newToolBar = new QToolBar("toolbar", this);
46 18
47 // Insert all of the buttons. 19 // Insert all of the buttons.
48 QToolButton *newFolder = new QToolButton(Resource::loadPixmap("fileopen"), "New Folder", 0, tabManager, SLOT(newFolder()), newToolBar); 20 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); 21 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); 22 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); 23 QToolButton *deleteItem = new QToolButton(Resource::loadPixmap("reset"), "Deelete", 0, tabManager, SLOT(removeItem()), newToolBar);
52 24
diff --git a/noncore/settings/tabmanager/tabmanager.cpp b/noncore/settings/tabmanager/tabmanager.cpp
index f54c837..13aae81 100644
--- a/noncore/settings/tabmanager/tabmanager.cpp
+++ b/noncore/settings/tabmanager/tabmanager.cpp
@@ -1,53 +1,24 @@
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
30#include "tabmanager.h" 1#include "tabmanager.h"
31#include "app.h" 2#include "app.h"
32#include "tabapplnk.h" 3#include "tabapplnk.h"
33 4
34#include <qpe/applnk.h> 5#include <qpe/applnk.h>
35#include <qpe/qpeapplication.h> 6#include <qpe/qpeapplication.h>
36#include <qdir.h> 7#include <qdir.h>
37#include <qfile.h> 8#include <qfile.h>
38#include <qtextstream.h> 9#include <qtextstream.h>
39#include <qlistview.h> 10#include <qlistview.h>
40#include <qheader.h> 11#include <qheader.h>
41#include <qlineedit.h> 12#include <qlineedit.h>
42#include <qlabel.h> 13#include <qlabel.h>
43#include <qmessagebox.h> 14#include <qmessagebox.h>
44#include <stdlib.h> 15#include <stdlib.h>
45#include <qpe/qcopenvelope_qws.h> 16#include <qpe/qcopenvelope_qws.h>
46 17
47#define HOME_APP_DIR QPEApplication::qpeDir()+"/apps" // <-- made this a little more flexible 18#define HOME_APP_DIR QPEApplication::qpeDir()+"/apps" // <-- made this a little more flexible
48#define HOME_APP_INSTALL_DIR "/usr/lib/ipkg/info" 19#define HOME_APP_INSTALL_DIR "/usr/lib/ipkg/info"
49#define NEW_FOLDER "EmptyTab" 20#define NEW_FOLDER "EmptyTab"
50#define NEW_APPLICATION "NewApp" 21#define NEW_APPLICATION "NewApp"
51#define APPLICATION_EXTENSION ".desktop" 22#define APPLICATION_EXTENSION ".desktop"
52#define APPLICATION_EXTENSION_LENGTH 8 23#define APPLICATION_EXTENSION_LENGTH 8
53 24
diff --git a/noncore/settings/tabmanager/tabmanager.h b/noncore/settings/tabmanager/tabmanager.h
index 2700fe7..39865b0 100644
--- a/noncore/settings/tabmanager/tabmanager.h
+++ b/noncore/settings/tabmanager/tabmanager.h
@@ -1,52 +1,24 @@
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 TABMANAGER_H 1#ifndef TABMANAGER_H
30#define TABMANAGER_H 2#define TABMANAGER_H
31 3
32#include "tabmanagerbase.h" 4#include "tabmanagerbase.h"
33#include <qmap.h> 5#include <qmap.h>
34#include <qevent.h> 6#include <qevent.h>
35 7
36class QListViewItem; 8class QListViewItem;
37 9
38class TabManager : public TabManagerBase { 10class TabManager : public TabManagerBase {
39 Q_OBJECT 11 Q_OBJECT
40 12
41public: 13public:
42 TabManager( QWidget* parent = 0, const char* name = 0); 14 TabManager( QWidget* parent = 0, const char* name = 0);
43 ~TabManager(); 15 ~TabManager();
44 bool changed; 16 bool changed;
45 17
46public slots: 18public slots:
47 void newFolder(); 19 void newFolder();
48 void newApplication(); 20 void newApplication();
49 void removeItem(); 21 void removeItem();
50 void editCurrentItem(); 22 void editCurrentItem();
51 23
52private slots: 24private slots: