Diffstat (limited to 'libkdepim/categoryselectdialog_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/categoryselectdialog_base.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libkdepim/categoryselectdialog_base.cpp b/libkdepim/categoryselectdialog_base.cpp index 4793fd7..5d53ac4 100644 --- a/libkdepim/categoryselectdialog_base.cpp +++ b/libkdepim/categoryselectdialog_base.cpp | |||
@@ -1,131 +1,134 @@ | |||
1 | #include <klocale.h> | 1 | #include <klocale.h> |
2 | /**************************************************************************** | 2 | /**************************************************************************** |
3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/libkdepim/categoryselectdialog_base.ui' | 3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/libkdepim/categoryselectdialog_base.ui' |
4 | ** | 4 | ** |
5 | ** Created: Sat Mar 29 21:46:05 2003 | 5 | ** Created: Sat Mar 29 21:46:05 2003 |
6 | ** by: The User Interface Compiler () | 6 | ** by: The User Interface Compiler () |
7 | ** | 7 | ** |
8 | ** WARNING! All changes made in this file will be lost! | 8 | ** WARNING! All changes made in this file will be lost! |
9 | ****************************************************************************/ | 9 | ****************************************************************************/ |
10 | 10 | ||
11 | #include "categoryselectdialog_base.h" | 11 | #include "categoryselectdialog_base.h" |
12 | 12 | ||
13 | #include <qvariant.h> | 13 | #include <qvariant.h> |
14 | #include <qheader.h> | 14 | #include <q3header.h> |
15 | #include <qlistview.h> | 15 | #include <q3listview.h> |
16 | #include <qpushbutton.h> | 16 | #include <qpushbutton.h> |
17 | #include <qlayout.h> | 17 | #include <qlayout.h> |
18 | #include <qtooltip.h> | 18 | #include <qtooltip.h> |
19 | #include <qwhatsthis.h> | 19 | #include <q3whatsthis.h> |
20 | //Added by qt3to4: | ||
21 | #include <Q3VBoxLayout> | ||
22 | #include <Q3HBoxLayout> | ||
20 | 23 | ||
21 | /* | 24 | /* |
22 | * Constructs a CategorySelectDialog_base as a child of 'parent', with the | 25 | * Constructs a CategorySelectDialog_base as a child of 'parent', with the |
23 | * name 'name' and widget flags set to 'f'. | 26 | * name 'name' and widget flags set to 'f'. |
24 | * | 27 | * |
25 | * The dialog will by default be modeless, unless you set 'modal' to | 28 | * The dialog will by default be modeless, unless you set 'modal' to |
26 | * TRUE to construct a modal dialog. | 29 | * TRUE to construct a modal dialog. |
27 | */ | 30 | */ |
28 | CategorySelectDialog_base::CategorySelectDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) | 31 | CategorySelectDialog_base::CategorySelectDialog_base( QWidget* parent, const char* name, bool modal, Qt::WFlags fl ) |
29 | : QDialog( parent, name, modal, fl ) | 32 | : QDialog( parent, name, modal, fl ) |
30 | 33 | ||
31 | { | 34 | { |
32 | if ( !name ) | 35 | if ( !name ) |
33 | setName( "CategorySelectDialog_base" ); | 36 | setName( "CategorySelectDialog_base" ); |
34 | CategorySelectDialog_baseLayout = new QVBoxLayout( this, 11, 6, "CategorySelectDialog_baseLayout"); | 37 | CategorySelectDialog_baseLayout = new Q3VBoxLayout( this, 11, 6, "CategorySelectDialog_baseLayout"); |
35 | 38 | ||
36 | mCategories = new QListView( this, "mCategories" ); | 39 | mCategories = new Q3ListView( this, "mCategories" ); |
37 | mCategories->addColumn( i18n( "Category" ) ); | 40 | mCategories->addColumn( i18n( "Category" ) ); |
38 | CategorySelectDialog_baseLayout->addWidget( mCategories ); | 41 | CategorySelectDialog_baseLayout->addWidget( mCategories ); |
39 | mSetColorCat = new QPushButton( this, "msetColor" ); | 42 | mSetColorCat = new QPushButton( this, "msetColor" ); |
40 | CategorySelectDialog_baseLayout->addWidget( mSetColorCat ); | 43 | CategorySelectDialog_baseLayout->addWidget( mSetColorCat ); |
41 | Layout12 = new QHBoxLayout( 0, 0, 4, "Layout12"); | 44 | Layout12 = new Q3HBoxLayout( 0, 0, 4, "Layout12"); |
42 | 45 | ||
43 | mClear = new QPushButton( this, "mClear" ); | 46 | mClear = new QPushButton( this, "mClear" ); |
44 | Layout12->addWidget( mClear ); | 47 | Layout12->addWidget( mClear ); |
45 | // QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | 48 | // QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); |
46 | //Layout12->addItem( spacer ); | 49 | //Layout12->addItem( spacer ); |
47 | 50 | ||
48 | mButtonEdit = new QPushButton( this, "mButtonEdit" ); | 51 | mButtonEdit = new QPushButton( this, "mButtonEdit" ); |
49 | Layout12->addWidget( mButtonEdit ); | 52 | Layout12->addWidget( mButtonEdit ); |
50 | CategorySelectDialog_baseLayout->addLayout( Layout12 ); | 53 | CategorySelectDialog_baseLayout->addLayout( Layout12 ); |
51 | 54 | ||
52 | Layout11 = new QHBoxLayout( 0, 0, 4, "Layout11"); | 55 | Layout11 = new Q3HBoxLayout( 0, 0, 4, "Layout11"); |
53 | 56 | ||
54 | //mButtonHelp = new QPushButton( this, "mButtonHelp" ); | 57 | //mButtonHelp = new QPushButton( this, "mButtonHelp" ); |
55 | //Layout11->addWidget( mButtonHelp ); | 58 | //Layout11->addWidget( mButtonHelp ); |
56 | //QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | 59 | //QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); |
57 | // Layout11->addItem( spacer_2 ); | 60 | // Layout11->addItem( spacer_2 ); |
58 | 61 | ||
59 | //mApply = new QPushButton( this, "mApply" ); | 62 | //mApply = new QPushButton( this, "mApply" ); |
60 | // Layout11->addWidget( mApply ); | 63 | // Layout11->addWidget( mApply ); |
61 | 64 | ||
62 | mButtonOk = new QPushButton( this, "mButtonOk" ); | 65 | mButtonOk = new QPushButton( this, "mButtonOk" ); |
63 | mButtonOk->setOn( FALSE ); | 66 | mButtonOk->setOn( FALSE ); |
64 | mButtonOk->setDefault( TRUE ); | 67 | mButtonOk->setDefault( TRUE ); |
65 | Layout11->addWidget( mButtonOk ); | 68 | Layout11->addWidget( mButtonOk ); |
66 | 69 | ||
67 | mButtonCancel = new QPushButton( this, "mButtonCancel" ); | 70 | mButtonCancel = new QPushButton( this, "mButtonCancel" ); |
68 | Layout11->addWidget( mButtonCancel ); | 71 | Layout11->addWidget( mButtonCancel ); |
69 | CategorySelectDialog_baseLayout->addLayout( Layout11 ); | 72 | CategorySelectDialog_baseLayout->addLayout( Layout11 ); |
70 | languageChange(); | 73 | languageChange(); |
71 | // resize( sizeHint() ); | 74 | // resize( sizeHint() ); |
72 | 75 | ||
73 | // signals and slots connections | 76 | // signals and slots connections |
74 | connect( mButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); | 77 | connect( mButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); |
75 | connect( mButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); | 78 | connect( mButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); |
76 | connect( mClear, SIGNAL( clicked() ), this, SLOT( clear() ) ); | 79 | connect( mClear, SIGNAL( clicked() ), this, SLOT( clear() ) ); |
77 | //connect( mApply, SIGNAL( clicked() ), this, SLOT( slotApply() ) ); | 80 | //connect( mApply, SIGNAL( clicked() ), this, SLOT( slotApply() ) ); |
78 | 81 | ||
79 | // tab order | 82 | // tab order |
80 | setTabOrder( mCategories, mClear ); | 83 | setTabOrder( mCategories, mClear ); |
81 | setTabOrder( mClear, mButtonEdit ); | 84 | setTabOrder( mClear, mButtonEdit ); |
82 | setTabOrder( mButtonEdit, mButtonOk );//mButtonHelp ); | 85 | setTabOrder( mButtonEdit, mButtonOk );//mButtonHelp ); |
83 | // setTabOrder( mButtonHelp, mApply ); | 86 | // setTabOrder( mButtonHelp, mApply ); |
84 | // setTabOrder( mApply, mButtonOk ); | 87 | // setTabOrder( mApply, mButtonOk ); |
85 | setTabOrder( mButtonOk, mButtonCancel ); | 88 | setTabOrder( mButtonOk, mButtonCancel ); |
86 | // showMaximized(); | 89 | // showMaximized(); |
87 | //raise(); | 90 | //raise(); |
88 | mSetColorCat->hide(); | 91 | mSetColorCat->hide(); |
89 | } | 92 | } |
90 | 93 | ||
91 | /* | 94 | /* |
92 | * Destroys the object and frees any allocated resources | 95 | * Destroys the object and frees any allocated resources |
93 | */ | 96 | */ |
94 | CategorySelectDialog_base::~CategorySelectDialog_base() | 97 | CategorySelectDialog_base::~CategorySelectDialog_base() |
95 | { | 98 | { |
96 | // no need to delete child widgets, Qt does it all for us | 99 | // no need to delete child widgets, Qt does it all for us |
97 | } | 100 | } |
98 | 101 | ||
99 | /* | 102 | /* |
100 | * Sets the strings of the subwidgets using the current | 103 | * Sets the strings of the subwidgets using the current |
101 | * language. | 104 | * language. |
102 | */ | 105 | */ |
103 | void CategorySelectDialog_base::languageChange() | 106 | void CategorySelectDialog_base::languageChange() |
104 | { | 107 | { |
105 | setCaption( i18n( "Select Categories" ) ); | 108 | setCaption( i18n( "Select Categories" ) ); |
106 | mCategories->header()->setLabel( 0, tr2i18n( "Category" ) ); | 109 | mCategories->header()->setLabel( 0, tr2i18n( "Category" ) ); |
107 | mClear->setText( i18n( " &Deselect All " ) ); | 110 | mClear->setText( i18n( " &Deselect All " ) ); |
108 | mButtonEdit->setText( i18n( " &Edit Categories " ) ); | 111 | mButtonEdit->setText( i18n( " &Edit Categories " ) ); |
109 | // mButtonHelp->setText( tr2i18n( "&Help" ) ); | 112 | // mButtonHelp->setText( tr2i18n( "&Help" ) ); |
110 | //mApply->setText( i18n( "&Apply" ) ); | 113 | //mApply->setText( i18n( "&Apply" ) ); |
111 | mButtonOk->setText( i18n( "&OK" ) ); | 114 | mButtonOk->setText( i18n( "&OK" ) ); |
112 | mSetColorCat->setText( i18n( "Set current as color category" ) ); | 115 | mSetColorCat->setText( i18n( "Set current as color category" ) ); |
113 | mButtonCancel->setText( i18n( "&Cancel" ) ); | 116 | mButtonCancel->setText( i18n( "&Cancel" ) ); |
114 | } | 117 | } |
115 | 118 | ||
116 | void CategorySelectDialog_base::clear() | 119 | void CategorySelectDialog_base::clear() |
117 | { | 120 | { |
118 | qWarning( "CategorySelectDialog_base::clear(): Not implemented yet" ); | 121 | qWarning( "CategorySelectDialog_base::clear(): Not implemented yet" ); |
119 | } | 122 | } |
120 | 123 | ||
121 | void CategorySelectDialog_base::slotApply() | 124 | void CategorySelectDialog_base::slotApply() |
122 | { | 125 | { |
123 | qWarning( "CategorySelectDialog_base::slotApply(): Not implemented yet" ); | 126 | qWarning( "CategorySelectDialog_base::slotApply(): Not implemented yet" ); |
124 | } | 127 | } |
125 | 128 | ||
126 | void CategorySelectDialog_base::slotOk() | 129 | void CategorySelectDialog_base::slotOk() |
127 | { | 130 | { |
128 | qWarning( "CategorySelectDialog_base::slotOk(): Not implemented yet" ); | 131 | qWarning( "CategorySelectDialog_base::slotOk(): Not implemented yet" ); |
129 | } | 132 | } |
130 | 133 | ||
131 | //US#include "categoryselectdialog_base.moc" | 134 | //US#include "categoryselectdialog_base.moc" |