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