author | harlekin <harlekin> | 2002-10-10 18:12:54 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-10 18:12:54 (UTC) |
commit | 3f838aec8ec65ff0820c92095b9948413ad895aa (patch) (unidiff) | |
tree | 1439e0f0368d86c7b6ddb364365fb58ec981d860 /core | |
parent | b0de7d18fc207a9926ba913d5863d2320d7122b2 (diff) | |
download | opie-3f838aec8ec65ff0820c92095b9948413ad895aa.zip opie-3f838aec8ec65ff0820c92095b9948413ad895aa.tar.gz opie-3f838aec8ec65ff0820c92095b9948413ad895aa.tar.bz2 |
tooltip experiments
-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 | |||
@@ -60,17 +60,17 @@ TodayBase::TodayBase( QWidget* parent, const char* name, WFlags fl ) | |||
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 ); |
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 | |||
@@ -25,16 +25,17 @@ | |||
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 ); |
@@ -45,18 +46,18 @@ public: | |||
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" ); |
@@ -75,27 +76,32 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal, WFlags | |||
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 | ||
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 | |||
@@ -27,17 +27,17 @@ 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 | ||