-rw-r--r-- | libkdepim/categoryeditdialog_base.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libkdepim/categoryeditdialog_base.cpp b/libkdepim/categoryeditdialog_base.cpp index 2390bbd..1908576 100644 --- a/libkdepim/categoryeditdialog_base.cpp +++ b/libkdepim/categoryeditdialog_base.cpp | |||
@@ -1,154 +1,155 @@ | |||
1 | #include <klocale.h> | 1 | #include <klocale.h> |
2 | /**************************************************************************** | 2 | /**************************************************************************** |
3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/libkdepim/categoryeditdialog_base.ui' | 3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/libkdepim/categoryeditdialog_base.ui' |
4 | ** | 4 | ** |
5 | ** Created: Sat Mar 29 21:46:09 2003 | 5 | ** Created: Sat Mar 29 21:46:09 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 "categoryeditdialog_base.h" | 11 | #include "categoryeditdialog_base.h" |
12 | 12 | ||
13 | #include <qvariant.h> | 13 | #include <qvariant.h> |
14 | #include <qheader.h> | 14 | #include <qheader.h> |
15 | #include <qlineedit.h> | 15 | #include <qlineedit.h> |
16 | #include <qlistview.h> | 16 | #include <qlistview.h> |
17 | #include <qpushbutton.h> | 17 | #include <qpushbutton.h> |
18 | #include <qlayout.h> | 18 | #include <qlayout.h> |
19 | #include <qtooltip.h> | 19 | #include <qtooltip.h> |
20 | #include <qwhatsthis.h> | 20 | #include <qwhatsthis.h> |
21 | 21 | ||
22 | /* | 22 | /* |
23 | * Constructs a CategoryEditDialog_base as a child of 'parent', with the | 23 | * Constructs a CategoryEditDialog_base as a child of 'parent', with the |
24 | * name 'name' and widget flags set to 'f'. | 24 | * name 'name' and widget flags set to 'f'. |
25 | * | 25 | * |
26 | * The dialog will by default be modeless, unless you set 'modal' to | 26 | * The dialog will by default be modeless, unless you set 'modal' to |
27 | * TRUE to construct a modal dialog. | 27 | * TRUE to construct a modal dialog. |
28 | */ | 28 | */ |
29 | CategoryEditDialog_base::CategoryEditDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) | 29 | CategoryEditDialog_base::CategoryEditDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) |
30 | : QDialog( parent, name, true, fl ) | 30 | : QDialog( parent, name, true, fl ) |
31 | 31 | ||
32 | { | 32 | { |
33 | if ( !name ) | 33 | if ( !name ) |
34 | setName( "CategoryEditDialog_base" ); | 34 | setName( "CategoryEditDialog_base" ); |
35 | CategoryEditDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "CategoryEditDialog_baseLayout"); | 35 | CategoryEditDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "CategoryEditDialog_baseLayout"); |
36 | 36 | ||
37 | mEdit = new QLineEdit( this, "mEdit" ); | 37 | mEdit = new QLineEdit( this, "mEdit" ); |
38 | 38 | ||
39 | CategoryEditDialog_baseLayout->addMultiCellWidget( mEdit, 1, 1, 0, 1 ); | 39 | CategoryEditDialog_baseLayout->addMultiCellWidget( mEdit, 1, 1, 0, 0 ); |
40 | 40 | ||
41 | Layout13 = new QHBoxLayout( 0, 0, 6, "Layout13"); | 41 | Layout13 = new QHBoxLayout( 0, 0, 6, "Layout13"); |
42 | 42 | ||
43 | // mButtonHelp = new QPushButton( this, "mButtonHelp" ); | 43 | // mButtonHelp = new QPushButton( this, "mButtonHelp" ); |
44 | //mButtonHelp->setAutoDefault( TRUE ); | 44 | //mButtonHelp->setAutoDefault( TRUE ); |
45 | //Layout13->addWidget( mButtonHelp ); | 45 | //Layout13->addWidget( mButtonHelp ); |
46 | //QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); | 46 | //QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); |
47 | //Layout13->addItem( spacer ); | 47 | //Layout13->addItem( spacer ); |
48 | 48 | ||
49 | //mApply = new QPushButton( this, "mApply" ); | 49 | //mApply = new QPushButton( this, "mApply" ); |
50 | // Layout13->addWidget( mApply ); | 50 | // Layout13->addWidget( mApply ); |
51 | 51 | ||
52 | mButtonOk = new QPushButton( this, "mButtonOk" ); | 52 | mButtonOk = new QPushButton( this, "mButtonOk" ); |
53 | mButtonOk->setAutoDefault( TRUE ); | 53 | mButtonOk->setAutoDefault( TRUE ); |
54 | mButtonOk->setDefault( TRUE ); | 54 | mButtonOk->setDefault( TRUE ); |
55 | Layout13->addWidget( mButtonOk ); | 55 | Layout13->addWidget( mButtonOk ); |
56 | 56 | ||
57 | mButtonCancel = new QPushButton( this, "mButtonCancel" ); | 57 | mButtonCancel = new QPushButton( this, "mButtonCancel" ); |
58 | mButtonCancel->setAutoDefault( TRUE ); | 58 | mButtonCancel->setAutoDefault( TRUE ); |
59 | Layout13->addWidget( mButtonCancel ); | 59 | Layout13->addWidget( mButtonCancel ); |
60 | 60 | ||
61 | CategoryEditDialog_baseLayout->addMultiCellLayout( Layout13, 2, 2, 0, 1 ); | 61 | CategoryEditDialog_baseLayout->addMultiCellLayout( Layout13, 2, 2, 0, 1 ); |
62 | 62 | ||
63 | mCategories = new QListView( this, "mCategories" ); | 63 | mCategories = new QListView( this, "mCategories" ); |
64 | mCategories->addColumn( tr2i18n( "Category" ) ); | 64 | mCategories->addColumn( tr2i18n( "Category" ) ); |
65 | 65 | ||
66 | CategoryEditDialog_baseLayout->addWidget( mCategories, 0, 0 ); | 66 | CategoryEditDialog_baseLayout->addWidget( mCategories, 0, 0 ); |
67 | 67 | ||
68 | layout103 = new QVBoxLayout( 0, 0, 6, "layout103"); | 68 | layout103 = new QVBoxLayout( 0, 0, 6, "layout103"); |
69 | 69 | ||
70 | mButtonAdd = new QPushButton( this, "mButtonAdd" ); | 70 | mButtonAdd = new QPushButton( this, "mButtonAdd" ); |
71 | layout103->addWidget( mButtonAdd ); | 71 | CategoryEditDialog_baseLayout->addMultiCellWidget(mButtonAdd , 1, 1, 1, 1 ); |
72 | //layout103->addWidget( mButtonAdd ); | ||
72 | 73 | ||
73 | mButtonModify = new QPushButton( this, "mButtonModify" ); | 74 | mButtonModify = new QPushButton( this, "mButtonModify" ); |
74 | layout103->addWidget( mButtonModify ); | 75 | layout103->addWidget( mButtonModify ); |
75 | 76 | ||
76 | mButtonRemove = new QPushButton( this, "mButtonRemove" ); | 77 | mButtonRemove = new QPushButton( this, "mButtonRemove" ); |
77 | layout103->addWidget( mButtonRemove ); | 78 | layout103->addWidget( mButtonRemove ); |
78 | QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); | 79 | QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); |
79 | layout103->addItem( spacer_2 ); | 80 | layout103->addItem( spacer_2 ); |
80 | 81 | ||
81 | CategoryEditDialog_baseLayout->addLayout( layout103, 0, 1 ); | 82 | CategoryEditDialog_baseLayout->addLayout( layout103, 0, 1 ); |
82 | languageChange(); | 83 | languageChange(); |
83 | resize( sizeHint() ); | 84 | resize( sizeHint() ); |
84 | 85 | ||
85 | // signals and slots connections | 86 | // signals and slots connections |
86 | connect( mButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); | 87 | connect( mButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); |
87 | connect( mButtonAdd, SIGNAL( clicked() ), this, SLOT( add() ) ); | 88 | connect( mButtonAdd, SIGNAL( clicked() ), this, SLOT( add() ) ); |
88 | connect( mButtonModify, SIGNAL( clicked() ), this, SLOT( modify() ) ); | 89 | connect( mButtonModify, SIGNAL( clicked() ), this, SLOT( modify() ) ); |
89 | connect( mButtonRemove, SIGNAL( clicked() ), this, SLOT( remove() ) ); | 90 | connect( mButtonRemove, SIGNAL( clicked() ), this, SLOT( remove() ) ); |
90 | connect( mButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); | 91 | connect( mButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); |
91 | //connect( mApply, SIGNAL( clicked() ), this, SLOT( slotApply() ) ); | 92 | //connect( mApply, SIGNAL( clicked() ), this, SLOT( slotApply() ) ); |
92 | 93 | ||
93 | // tab order | 94 | // tab order |
94 | // setTabOrder( mCategories, mEdit ); | 95 | // setTabOrder( mCategories, mEdit ); |
95 | // setTabOrder( mEdit, mButtonAdd ); | 96 | // setTabOrder( mEdit, mButtonAdd ); |
96 | // setTabOrder( mButtonAdd, mButtonModify ); | 97 | // setTabOrder( mButtonAdd, mButtonModify ); |
97 | // setTabOrder( mButtonModify, mButtonRemove ); | 98 | // setTabOrder( mButtonModify, mButtonRemove ); |
98 | // setTabOrder( mButtonRemove, mButtonHelp ); | 99 | // setTabOrder( mButtonRemove, mButtonHelp ); |
99 | // setTabOrder( mButtonHelp, mApply ); | 100 | // setTabOrder( mButtonHelp, mApply ); |
100 | // setTabOrder( mApply, mButtonOk ); | 101 | // setTabOrder( mApply, mButtonOk ); |
101 | // setTabOrder( mButtonOk, mButtonCancel ); | 102 | // setTabOrder( mButtonOk, mButtonCancel ); |
102 | } | 103 | } |
103 | 104 | ||
104 | /* | 105 | /* |
105 | * Destroys the object and frees any allocated resources | 106 | * Destroys the object and frees any allocated resources |
106 | */ | 107 | */ |
107 | CategoryEditDialog_base::~CategoryEditDialog_base() | 108 | CategoryEditDialog_base::~CategoryEditDialog_base() |
108 | { | 109 | { |
109 | // no need to delete child widgets, Qt does it all for us | 110 | // no need to delete child widgets, Qt does it all for us |
110 | } | 111 | } |
111 | 112 | ||
112 | /* | 113 | /* |
113 | * Sets the strings of the subwidgets using the current | 114 | * Sets the strings of the subwidgets using the current |
114 | * language. | 115 | * language. |
115 | */ | 116 | */ |
116 | void CategoryEditDialog_base::languageChange() | 117 | void CategoryEditDialog_base::languageChange() |
117 | { | 118 | { |
118 | setCaption( tr2i18n( "Edit Categories" ) ); | 119 | setCaption( tr2i18n( "Edit Categories" ) ); |
119 | // mButtonHelp->setText( tr2i18n( "&Help" ) ); | 120 | // mButtonHelp->setText( tr2i18n( "&Help" ) ); |
120 | // mApply->setText( tr2i18n( "&Apply" ) ); | 121 | // mApply->setText( tr2i18n( "&Apply" ) ); |
121 | mButtonOk->setText( tr2i18n( "&OK" ) ); | 122 | mButtonOk->setText( tr2i18n( "&OK" ) ); |
122 | mButtonCancel->setText( tr2i18n( "&Cancel" ) ); | 123 | mButtonCancel->setText( tr2i18n( "&Cancel" ) ); |
123 | mCategories->header()->setLabel( 0, tr2i18n( "Category" ) ); | 124 | mCategories->header()->setLabel( 0, tr2i18n( "Category" ) ); |
124 | mButtonAdd->setText( tr2i18n( "A&dd" ) ); | 125 | mButtonAdd->setText( tr2i18n( "A&dd" ) ); |
125 | mButtonModify->setText( tr2i18n( "&Modify" ) ); | 126 | mButtonModify->setText( tr2i18n( "&Modify" ) ); |
126 | mButtonRemove->setText( tr2i18n( "&Remove" ) ); | 127 | mButtonRemove->setText( tr2i18n( "&Remove" ) ); |
127 | } | 128 | } |
128 | 129 | ||
129 | void CategoryEditDialog_base::add() | 130 | void CategoryEditDialog_base::add() |
130 | { | 131 | { |
131 | qWarning( "CategoryEditDialog_base::add(): Not implemented yet" ); | 132 | qWarning( "CategoryEditDialog_base::add(): Not implemented yet" ); |
132 | } | 133 | } |
133 | 134 | ||
134 | void CategoryEditDialog_base::modify() | 135 | void CategoryEditDialog_base::modify() |
135 | { | 136 | { |
136 | qWarning( "CategoryEditDialog_base::modify(): Not implemented yet" ); | 137 | qWarning( "CategoryEditDialog_base::modify(): Not implemented yet" ); |
137 | } | 138 | } |
138 | 139 | ||
139 | void CategoryEditDialog_base::slotApply() | 140 | void CategoryEditDialog_base::slotApply() |
140 | { | 141 | { |
141 | qWarning( "CategoryEditDialog_base::slotApply(): Not implemented yet" ); | 142 | qWarning( "CategoryEditDialog_base::slotApply(): Not implemented yet" ); |
142 | } | 143 | } |
143 | 144 | ||
144 | void CategoryEditDialog_base::remove() | 145 | void CategoryEditDialog_base::remove() |
145 | { | 146 | { |
146 | qWarning( "CategoryEditDialog_base::remove(): Not implemented yet" ); | 147 | qWarning( "CategoryEditDialog_base::remove(): Not implemented yet" ); |
147 | } | 148 | } |
148 | 149 | ||
149 | void CategoryEditDialog_base::slotOk() | 150 | void CategoryEditDialog_base::slotOk() |
150 | { | 151 | { |
151 | qWarning( "CategoryEditDialog_base::slotOk(): Not implemented yet" ); | 152 | qWarning( "CategoryEditDialog_base::slotOk(): Not implemented yet" ); |
152 | } | 153 | } |
153 | 154 | ||
154 | //US #include "categoryeditdialog_base.moc" | 155 | //US #include "categoryeditdialog_base.moc" |