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