-rw-r--r-- | core/pim/today/todaybase.cpp | 2 | ||||
-rw-r--r-- | core/pim/today/todayconfig.cpp | 12 | ||||
-rw-r--r-- | core/pim/today/todayconfig.h | 2 |
3 files changed, 11 insertions, 5 deletions
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index 1424b95..352c9c1 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -20,84 +20,84 @@ | |||
20 | #include <qlabel.h> | 20 | #include <qlabel.h> |
21 | #include <qimage.h> | 21 | #include <qimage.h> |
22 | #include <qpixmap.h> | 22 | #include <qpixmap.h> |
23 | #include <qapplication.h> | 23 | #include <qapplication.h> |
24 | 24 | ||
25 | #include <qpe/resource.h> | 25 | #include <qpe/resource.h> |
26 | 26 | ||
27 | 27 | ||
28 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | 28 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) |
29 | : QWidget( parent, name, fl ) { | 29 | : QWidget( parent, name, fl ) { |
30 | 30 | ||
31 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo | 31 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo |
32 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla | 32 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla |
33 | QPixmap config = Resource::loadPixmap( "today/config" ); // config icon | 33 | QPixmap config = Resource::loadPixmap( "today/config" ); // config icon |
34 | 34 | ||
35 | layout = new QVBoxLayout( this ); | 35 | layout = new QVBoxLayout( this ); |
36 | 36 | ||
37 | QPalette pal = this->palette(); | 37 | QPalette pal = this->palette(); |
38 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); | 38 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); |
39 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); | 39 | pal.setColor( QPalette::Active, QColorGroup::Button, col ); |
40 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); | 40 | pal.setColor( QPalette::Inactive, QColorGroup::Button, col ); |
41 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); | 41 | pal.setColor( QPalette::Normal, QColorGroup::Button, col ); |
42 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); | 42 | pal.setColor( QPalette::Disabled, QColorGroup::Button, col ); |
43 | this->setPalette( pal ); | 43 | this->setPalette( pal ); |
44 | 44 | ||
45 | // --- logo Section --- | 45 | // --- logo Section --- |
46 | QPalette pal2; | 46 | QPalette pal2; |
47 | QColorGroup cg; | 47 | QColorGroup cg; |
48 | cg.setColor( QColorGroup::Text, white ); | 48 | cg.setColor( QColorGroup::Text, white ); |
49 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); | 49 | cg.setBrush( QColorGroup::Background, QBrush( QColor( 238, 238, 230 ), logo ) ); |
50 | pal2.setActive( cg ); | 50 | pal2.setActive( cg ); |
51 | // today logo | 51 | // today logo |
52 | Frame = new QLabel( this, "Frame" ); | 52 | Frame = new QLabel( this, "Frame" ); |
53 | Frame->setPalette( pal2 ); | 53 | Frame->setPalette( pal2 ); |
54 | Frame->setFrameShape( QFrame::StyledPanel ); | 54 | Frame->setFrameShape( QFrame::StyledPanel ); |
55 | Frame->setFrameShadow( QFrame::Raised ); | 55 | Frame->setFrameShadow( QFrame::Raised ); |
56 | Frame->setLineWidth( 0 ); | 56 | Frame->setLineWidth( 0 ); |
57 | Frame->setMaximumHeight( 50 ); | 57 | Frame->setMaximumHeight( 50 ); |
58 | Frame->setMinimumHeight( 50 ); | 58 | Frame->setMinimumHeight( 50 ); |
59 | 59 | ||
60 | // Today text | 60 | // Today text |
61 | QLabel* TodayLabel = new QLabel( Frame, "TodayText" ); | 61 | QLabel* TodayLabel = new QLabel( Frame, "TodayText" ); |
62 | TodayLabel->setGeometry( QRect( 10, 0, 168, 40 ) ); | 62 | TodayLabel->setGeometry( QRect( 10, 0, 168, 40 ) ); |
63 | QFont TodayLabel_font( TodayLabel->font() ); | 63 | QFont TodayLabel_font( TodayLabel->font() ); |
64 | TodayLabel_font.setBold( TRUE ); | 64 | TodayLabel_font.setBold( TRUE ); |
65 | TodayLabel_font.setPointSize( 40 ); | 65 | TodayLabel_font.setPointSize( 40 ); |
66 | TodayLabel->setFont( TodayLabel_font ); | 66 | TodayLabel->setFont( TodayLabel_font ); |
67 | TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); | 67 | TodayLabel->setBackgroundOrigin( QLabel::ParentOrigin ); |
68 | TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today²") +"</font>" ); | 68 | TodayLabel->setText( "<font color=#FFFFFF>" + tr("Today") +"</font>" ); |
69 | 69 | ||
70 | // date | 70 | // date |
71 | DateLabel = new QLabel( Frame, "TextLabel1" ); | 71 | DateLabel = new QLabel( Frame, "TextLabel1" ); |
72 | DateLabel->setGeometry( QRect( 10, 35, 168, 12 ) ); | 72 | DateLabel->setGeometry( QRect( 10, 35, 168, 12 ) ); |
73 | QFont DateLabel_font( DateLabel->font() ); | 73 | QFont DateLabel_font( DateLabel->font() ); |
74 | DateLabel_font.setBold( TRUE ); | 74 | DateLabel_font.setBold( TRUE ); |
75 | DateLabel->setFont( DateLabel_font ); | 75 | DateLabel->setFont( DateLabel_font ); |
76 | DateLabel->setBackgroundOrigin( QLabel::ParentOrigin ); | 76 | DateLabel->setBackgroundOrigin( QLabel::ParentOrigin ); |
77 | DateLabel->setTextFormat( RichText ); | 77 | DateLabel->setTextFormat( RichText ); |
78 | 78 | ||
79 | // Opiezilla | 79 | // Opiezilla |
80 | QLabel* Opiezilla = new QLabel( Frame, "OpieZilla" ); | 80 | QLabel* Opiezilla = new QLabel( Frame, "OpieZilla" ); |
81 | Opiezilla->setPixmap( opiezilla ); | 81 | Opiezilla->setPixmap( opiezilla ); |
82 | Opiezilla->setGeometry( QApplication::desktop()->width()-50 ,1, 45, 47 ); | 82 | Opiezilla->setGeometry( QApplication::desktop()->width()-50 ,1, 45, 47 ); |
83 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); | 83 | Opiezilla->setBackgroundOrigin( QLabel::ParentOrigin ); |
84 | 84 | ||
85 | // Ownerfield | 85 | // Ownerfield |
86 | OwnerField = new OClickableLabel( this , "Owner" ); | 86 | OwnerField = new OClickableLabel( this , "Owner" ); |
87 | OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) ); | 87 | OwnerField->setGeometry( QRect( 0, 0, this->width(), 12 ) ); |
88 | OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) ); | 88 | OwnerField->setAlignment( int (QLabel::AlignTop | QLabel::AlignLeft ) ); |
89 | OwnerField->setMaximumHeight(12); | 89 | OwnerField->setMaximumHeight(12); |
90 | 90 | ||
91 | // config | 91 | // config |
92 | ConfigButton = new OClickableLabel ( Frame, "PushButton1" ); | 92 | ConfigButton = new OClickableLabel ( Frame, "PushButton1" ); |
93 | ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 30, 25, 21 ) ); | 93 | ConfigButton->setGeometry( QRect( QApplication::desktop()->width()-80, 30, 25, 21 ) ); |
94 | ConfigButton->setPixmap( config ); | 94 | ConfigButton->setPixmap( config ); |
95 | ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin ); | 95 | ConfigButton->setBackgroundOrigin( QLabel::ParentOrigin ); |
96 | } | 96 | } |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * D' tor | 99 | * D' tor |
100 | */ | 100 | */ |
101 | TodayBase::~TodayBase() { | 101 | TodayBase::~TodayBase() { |
102 | } | 102 | } |
103 | 103 | ||
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp index 097965b..d15e2ab 100644 --- a/core/pim/today/todayconfig.cpp +++ b/core/pim/today/todayconfig.cpp | |||
@@ -1,141 +1,147 @@ | |||
1 | /* | 1 | /* |
2 | * todayconfig.cpp | 2 | * todayconfig.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002 by Maximilian Reiß | 4 | * copyright : (c) 2002 by Maximilian Reiß |
5 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #include "todayconfig.h" | 17 | #include "todayconfig.h" |
18 | 18 | ||
19 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
20 | #include <qpe/resource.h> | 20 | #include <qpe/resource.h> |
21 | #include <qpe/qcopenvelope_qws.h> | 21 | #include <qpe/qcopenvelope_qws.h> |
22 | 22 | ||
23 | #include <qcheckbox.h> | 23 | #include <qcheckbox.h> |
24 | #include <qlabel.h> | 24 | #include <qlabel.h> |
25 | #include <qspinbox.h> | 25 | #include <qspinbox.h> |
26 | #include <qtabwidget.h> | 26 | #include <qtabwidget.h> |
27 | #include <qlayout.h> | 27 | #include <qlayout.h> |
28 | #include <qheader.h> | 28 | #include <qheader.h> |
29 | #include <qhbox.h> | 29 | #include <qhbox.h> |
30 | #include <qvbox.h> | 30 | #include <qvbox.h> |
31 | #include <qtoolbutton.h> | 31 | #include <qtoolbutton.h> |
32 | #include <qtooltip.h> | 32 | #include <qtooltip.h> |
33 | #include <qwhatsthis.h> | ||
33 | 34 | ||
34 | class ToolButton : public QToolButton { | 35 | class ToolButton : public QToolButton { |
35 | 36 | ||
36 | public: | 37 | public: |
37 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) | 38 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) |
38 | : QToolButton( parent, name ) { | 39 | : QToolButton( parent, name ) { |
39 | setPixmap( Resource::loadPixmap( icon ) ); | 40 | setPixmap( Resource::loadPixmap( icon ) ); |
40 | setAutoRaise( TRUE ); | 41 | setAutoRaise( TRUE ); |
41 | setFocusPolicy( QWidget::NoFocus ); | 42 | setFocusPolicy( QWidget::NoFocus ); |
42 | setToggleButton( t ); | 43 | setToggleButton( t ); |
43 | connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); | 44 | connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); |
44 | } | 45 | } |
45 | }; | 46 | }; |
46 | 47 | ||
47 | 48 | ||
48 | /** | 49 | /** |
49 | * The class has currently quite some duplicate code. | 50 | * The class has currently quite some duplicate code. |
50 | * By that way it would be real easy to have it as seperate app in settings tab | 51 | * By that way it would be real easy to have it as seperate app in settings tab |
51 | * | 52 | * |
52 | */ | 53 | */ |
53 | TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags fl ) | 54 | TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal ) |
54 | : QDialog( parent, name, modal, fl ) { | 55 | : QDialog( parent, name, modal, WStyle_ContextHelp ) { |
55 | 56 | ||
56 | setCaption( tr( "Today config" ) ); | 57 | setCaption( tr( "Today config" ) ); |
57 | 58 | ||
58 | QVBoxLayout *layout = new QVBoxLayout( this ); | 59 | QVBoxLayout *layout = new QVBoxLayout( this ); |
59 | TabWidget3 = new OTabWidget ( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom ); | 60 | TabWidget3 = new OTabWidget ( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom ); |
60 | layout->addWidget( TabWidget3 ); | 61 | layout->addWidget( TabWidget3 ); |
61 | 62 | ||
62 | tab_2 = new QWidget( TabWidget3, "tab_2" ); | 63 | tab_2 = new QWidget( TabWidget3, "tab_2" ); |
63 | QVBoxLayout *tab2Layout = new QVBoxLayout( tab_2, 4 ,4 ); | 64 | QVBoxLayout *tab2Layout = new QVBoxLayout( tab_2, 4 ,4 ); |
64 | QLabel *l = new QLabel( tr( "Load which plugins in what order:" ), tab_2 ); | 65 | QLabel *l = new QLabel( tr( "Load which plugins in what order:" ), tab_2 ); |
65 | tab2Layout->addWidget( l ); | 66 | tab2Layout->addWidget( l ); |
66 | QHBox *hbox1 = new QHBox( tab_2 ); | 67 | QHBox *hbox1 = new QHBox( tab_2 ); |
67 | m_appletListView = new QListView( hbox1 ); | 68 | m_appletListView = new QListView( hbox1 ); |
68 | m_appletListView->addColumn( "PluginList" ); | 69 | m_appletListView->addColumn( "PluginList" ); |
69 | m_appletListView->header()->hide(); | 70 | m_appletListView->header()->hide(); |
70 | m_appletListView->setSorting( -1 ); | 71 | m_appletListView->setSorting( -1 ); |
71 | QVBox *vbox1 = new QVBox( hbox1 ); | 72 | QVBox *vbox1 = new QVBox( hbox1 ); |
72 | new ToolButton( vbox1, tr( "Move Up" ), "up", this , SLOT( moveSelectedUp() ) ); | 73 | new ToolButton( vbox1, tr( "Move Up" ), "up", this , SLOT( moveSelectedUp() ) ); |
73 | new ToolButton( vbox1, tr( "Move Down" ), "down", this , SLOT( moveSelectedDown() ) ); | 74 | new ToolButton( vbox1, tr( "Move Down" ), "down", this , SLOT( moveSelectedDown() ) ); |
74 | tab2Layout->addWidget( hbox1 ); | 75 | tab2Layout->addWidget( hbox1 ); |
75 | TabWidget3->addTab( tab_2, "pass", tr( "active/order" ) ); | 76 | TabWidget3->addTab( tab_2, "pass", tr( "active/order" ) ); |
76 | 77 | ||
77 | tab_3 = new QWidget( TabWidget3, "tab_3" ); | 78 | tab_3 = new QWidget( TabWidget3, "tab_3" ); |
78 | QVBoxLayout *tab3Layout = new QVBoxLayout( tab_3 ); | 79 | QVBoxLayout *tab3Layout = new QVBoxLayout( tab_3 ); |
79 | tab3Layout->setMargin( 20 ); | 80 | tab3Layout->setMargin( 20 ); |
80 | QHBox *hbox_auto = new QHBox( tab_3 ); | 81 | QHBox *hbox_auto = new QHBox( tab_3 ); |
81 | TextLabel2 = new QLabel( hbox_auto, "AutoStart" ); | 82 | TextLabel2 = new QLabel( hbox_auto, "AutoStart" ); |
82 | TextLabel2->setText( tr( "autostart on \nresume?\n (Opie only)" ) ); | 83 | TextLabel2->setText( tr( "autostart on \nresume?\n (Opie only)" ) ); |
84 | QWhatsThis::add( TextLabel2 , tr( "Check this if today should be autostarted on resume." ) ); | ||
83 | CheckBoxAuto = new QCheckBox( hbox_auto, "CheckBoxAuto" ); | 85 | CheckBoxAuto = new QCheckBox( hbox_auto, "CheckBoxAuto" ); |
86 | QWhatsThis::add( CheckBoxAuto, tr( "Check this if today should be autostarted on resume." ) ); | ||
84 | QHBox *hbox_inactive = new QHBox( tab_3 ); | 87 | QHBox *hbox_inactive = new QHBox( tab_3 ); |
85 | TimeLabel = new QLabel( hbox_inactive, "TimeLabel" ); | 88 | TimeLabel = new QLabel( hbox_inactive, "TimeLabel" ); |
86 | TimeLabel->setText( tr( "minutes inactive" ) ); | 89 | TimeLabel->setText( tr( "minutes inactive" ) ); |
90 | QWhatsThis::add( TimeLabel , tr( "How many minutes has the PDA been suspended before the autostart feature kicks in on resume" ) ); | ||
87 | SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" ); | 91 | SpinBoxTime = new QSpinBox( hbox_inactive, "TimeSpinner" ); |
92 | QWhatsThis::add( SpinBoxTime , tr( "How many minutes has the PDA been suspended before the autostart feature kicks in on resume" ) ); | ||
88 | QHBox *hbox_iconSize = new QHBox( tab_3 ); | 93 | QHBox *hbox_iconSize = new QHBox( tab_3 ); |
89 | QLabel *iconSizeLabel = new QLabel( hbox_iconSize, "iconSizeLabel" ); | 94 | QLabel *iconSizeLabel = new QLabel( hbox_iconSize, "iconSizeLabel" ); |
90 | iconSizeLabel->setText( tr( "Icon size" ) ); | 95 | iconSizeLabel->setText( tr( "Icon size" ) ); |
91 | // iconSizeLabel->setToolTip( tr( "Set the icon size in pixel" ) ); | 96 | QWhatsThis::add( iconSizeLabel, tr( "Set the icon size in pixel" ) ); |
92 | SpinBoxIconSize = new QSpinBox( hbox_iconSize, "TimeSpinner" ); | 97 | SpinBoxIconSize = new QSpinBox( hbox_iconSize, "TimeSpinner" ); |
93 | SpinBoxIconSize->setMaxValue( 32 ); | 98 | SpinBoxIconSize->setMaxValue( 32 ); |
99 | QWhatsThis::add( SpinBoxIconSize, tr( "Set the icon size in pixel" ) ); | ||
94 | 100 | ||
95 | tab3Layout->addWidget( hbox_auto ); | 101 | tab3Layout->addWidget( hbox_auto ); |
96 | tab3Layout->addWidget( hbox_inactive ); | 102 | tab3Layout->addWidget( hbox_inactive ); |
97 | tab3Layout->addWidget( hbox_iconSize ); | 103 | tab3Layout->addWidget( hbox_iconSize ); |
98 | TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) ); | 104 | TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) ); |
99 | 105 | ||
100 | m_applets_changed = false; | 106 | m_applets_changed = false; |
101 | 107 | ||
102 | connect ( m_appletListView , SIGNAL( clicked ( QListViewItem * ) ), this, SLOT( appletChanged ( ) ) ); | 108 | connect ( m_appletListView , SIGNAL( clicked ( QListViewItem * ) ), this, SLOT( appletChanged ( ) ) ); |
103 | 109 | ||
104 | readConfig(); | 110 | readConfig(); |
105 | showMaximized(); | 111 | showMaximized(); |
106 | } | 112 | } |
107 | 113 | ||
108 | 114 | ||
109 | /** | 115 | /** |
110 | * Autostart, uses the new (opie only) autostart method in the launcher code. | 116 | * Autostart, uses the new (opie only) autostart method in the launcher code. |
111 | * If registered against that today ist started on each resume. | 117 | * If registered against that today ist started on each resume. |
112 | */ | 118 | */ |
113 | void TodayConfig::setAutoStart() { | 119 | void TodayConfig::setAutoStart() { |
114 | Config cfg( "today" ); | 120 | Config cfg( "today" ); |
115 | cfg.setGroup( "Autostart" ); | 121 | cfg.setGroup( "Autostart" ); |
116 | if ( m_autoStart ) { | 122 | if ( m_autoStart ) { |
117 | QCopEnvelope e( "QPE/System", "autoStart(QString,QString,QString)" ); | 123 | QCopEnvelope e( "QPE/System", "autoStart(QString,QString,QString)" ); |
118 | e << QString( "add" ); | 124 | e << QString( "add" ); |
119 | e << QString( "today" ); | 125 | e << QString( "today" ); |
120 | e << QString( "%1" ).arg( m_autoStartTimer ); | 126 | e << QString( "%1" ).arg( m_autoStartTimer ); |
121 | } else { | 127 | } else { |
122 | QCopEnvelope e( "QPE/System", "autoStart(QString,QString)" ); | 128 | QCopEnvelope e( "QPE/System", "autoStart(QString,QString)" ); |
123 | e << QString( "remove" ); | 129 | e << QString( "remove" ); |
124 | e << QString( "today" ); | 130 | e << QString( "today" ); |
125 | } | 131 | } |
126 | } | 132 | } |
127 | 133 | ||
128 | /** | 134 | /** |
129 | * Read the config part | 135 | * Read the config part |
130 | */ | 136 | */ |
131 | void TodayConfig::readConfig() { | 137 | void TodayConfig::readConfig() { |
132 | Config cfg( "today" ); | 138 | Config cfg( "today" ); |
133 | cfg.setGroup( "Autostart" ); | 139 | cfg.setGroup( "Autostart" ); |
134 | m_autoStart = cfg.readNumEntry( "autostart", 1 ); | 140 | m_autoStart = cfg.readNumEntry( "autostart", 1 ); |
135 | CheckBoxAuto->setChecked( m_autoStart ); | 141 | CheckBoxAuto->setChecked( m_autoStart ); |
136 | m_autoStartTimer = cfg.readNumEntry( "autostartdelay", 0 ); | 142 | m_autoStartTimer = cfg.readNumEntry( "autostartdelay", 0 ); |
137 | SpinBoxTime->setValue( m_autoStartTimer ); | 143 | SpinBoxTime->setValue( m_autoStartTimer ); |
138 | 144 | ||
139 | cfg.setGroup( "General" ); | 145 | cfg.setGroup( "General" ); |
140 | m_iconSize = cfg.readNumEntry( "IconSize", 18 ); | 146 | m_iconSize = cfg.readNumEntry( "IconSize", 18 ); |
141 | SpinBoxIconSize->setValue( m_iconSize ); | 147 | SpinBoxIconSize->setValue( m_iconSize ); |
diff --git a/core/pim/today/todayconfig.h b/core/pim/today/todayconfig.h index aa227dd..827e106 100644 --- a/core/pim/today/todayconfig.h +++ b/core/pim/today/todayconfig.h | |||
@@ -1,73 +1,73 @@ | |||
1 | /* | 1 | /* |
2 | * todayconfig.h | 2 | * todayconfig.h |
3 | * | 3 | * |
4 | * copyright : (c) 2002 by Maximilian Reiß | 4 | * copyright : (c) 2002 by Maximilian Reiß |
5 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #ifndef TODAYCONFIG_H | 17 | #ifndef TODAYCONFIG_H |
18 | #define TODAYCONFIG_H | 18 | #define TODAYCONFIG_H |
19 | 19 | ||
20 | #include <qvariant.h> | 20 | #include <qvariant.h> |
21 | #include <qdialog.h> | 21 | #include <qdialog.h> |
22 | #include <qlistview.h> | 22 | #include <qlistview.h> |
23 | #include <opie/otabwidget.h> | 23 | #include <opie/otabwidget.h> |
24 | 24 | ||
25 | class QCheckBox; | 25 | class QCheckBox; |
26 | class QLabel; | 26 | class QLabel; |
27 | class QSpinBox; | 27 | class QSpinBox; |
28 | class QTabWidget; | 28 | class QTabWidget; |
29 | 29 | ||
30 | class TodayConfig : public QDialog { | 30 | class TodayConfig : public QDialog { |
31 | 31 | ||
32 | Q_OBJECT | 32 | Q_OBJECT |
33 | 33 | ||
34 | public: | 34 | public: |
35 | TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | 35 | TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE ); |
36 | ~TodayConfig(); | 36 | ~TodayConfig(); |
37 | 37 | ||
38 | OTabWidget* TabWidget3; | 38 | OTabWidget* TabWidget3; |
39 | 39 | ||
40 | void writeConfig(); | 40 | void writeConfig(); |
41 | void pluginManagement( QString libName, QString name, QPixmap icon ); | 41 | void pluginManagement( QString libName, QString name, QPixmap icon ); |
42 | 42 | ||
43 | 43 | ||
44 | protected slots: | 44 | protected slots: |
45 | void appletChanged(); | 45 | void appletChanged(); |
46 | void moveSelectedUp(); | 46 | void moveSelectedUp(); |
47 | void moveSelectedDown(); | 47 | void moveSelectedDown(); |
48 | 48 | ||
49 | private: | 49 | private: |
50 | void setAutoStart(); | 50 | void setAutoStart(); |
51 | void readConfig(); | 51 | void readConfig(); |
52 | 52 | ||
53 | QListView* m_appletListView; | 53 | QListView* m_appletListView; |
54 | QMap<QString,QCheckListItem*> m_applets; | 54 | QMap<QString,QCheckListItem*> m_applets; |
55 | 55 | ||
56 | int m_autoStart; | 56 | int m_autoStart; |
57 | int m_autoStartTimer; | 57 | int m_autoStartTimer; |
58 | int m_iconSize; | 58 | int m_iconSize; |
59 | QStringList m_excludeApplets; | 59 | QStringList m_excludeApplets; |
60 | bool m_applets_changed; | 60 | bool m_applets_changed; |
61 | 61 | ||
62 | QLabel* TextLabel2; | 62 | QLabel* TextLabel2; |
63 | QCheckBox* CheckBoxAuto; | 63 | QCheckBox* CheckBoxAuto; |
64 | QWidget* tab_2; | 64 | QWidget* tab_2; |
65 | QWidget* tab_3; | 65 | QWidget* tab_3; |
66 | QLabel* TextLabel1; | 66 | QLabel* TextLabel1; |
67 | QSpinBox* SpinBox7; | 67 | QSpinBox* SpinBox7; |
68 | QLabel* TimeLabel; | 68 | QLabel* TimeLabel; |
69 | QSpinBox* SpinBoxTime; | 69 | QSpinBox* SpinBoxTime; |
70 | QSpinBox* SpinBoxIconSize; | 70 | QSpinBox* SpinBoxIconSize; |
71 | }; | 71 | }; |
72 | 72 | ||
73 | #endif | 73 | #endif |