summaryrefslogtreecommitdiffabout
path: root/korganizer/publishdialog_base.cpp
Unidiff
Diffstat (limited to 'korganizer/publishdialog_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/publishdialog_base.cpp162
1 files changed, 162 insertions, 0 deletions
diff --git a/korganizer/publishdialog_base.cpp b/korganizer/publishdialog_base.cpp
new file mode 100644
index 0000000..75e4746
--- a/dev/null
+++ b/korganizer/publishdialog_base.cpp
@@ -0,0 +1,162 @@
1#include <klocale.h>
2/****************************************************************************
3** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/korganizer/publishdialog_base.ui'
4**
5** Created: Sat Mar 29 22:31:35 2003
6** by: The User Interface Compiler ()
7**
8** WARNING! All changes made in this file will be lost!
9****************************************************************************/
10
11#include "publishdialog_base.h"
12
13#include <qvariant.h>
14#include <qframe.h>
15#include <qheader.h>
16#include <qlabel.h>
17#include <qlineedit.h>
18#include <qlistview.h>
19#include <qpushbutton.h>
20#include <qlayout.h>
21#include <qtooltip.h>
22#include <qwhatsthis.h>
23
24/*
25 * Constructs a PublishDialog_base as a child of 'parent', with the
26 * name 'name' and widget flags set to 'f'.
27 *
28 * The dialog will by default be modeless, unless you set 'modal' to
29 * TRUE to construct a modal dialog.
30 */
31PublishDialog_base::PublishDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl )
32 : QDialog( parent, name, modal, fl )
33
34{
35 if ( !name )
36 setName( "PublishDialog_base" );
37 PublishDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "PublishDialog_baseLayout");
38
39 mAddressListView = new QListView( this, "mAddressListView" );
40 mAddressListView->addColumn( tr2i18n( "Name" ) );
41 mAddressListView->addColumn( tr2i18n( "Email" ) );
42
43 PublishDialog_baseLayout->addMultiCellWidget( mAddressListView, 0, 3, 0, 1 );
44
45 TextLabel1 = new QLabel( this, "TextLabel1" );
46
47 PublishDialog_baseLayout->addWidget( TextLabel1, 4, 0 );
48
49 TextLabel2 = new QLabel( this, "TextLabel2" );
50
51 PublishDialog_baseLayout->addWidget( TextLabel2, 5, 0 );
52
53 mEmailLineEdit = new QLineEdit( this, "mEmailLineEdit" );
54
55 PublishDialog_baseLayout->addWidget( mEmailLineEdit, 5, 1 );
56
57 mNameLineEdit = new QLineEdit( this, "mNameLineEdit" );
58
59 PublishDialog_baseLayout->addWidget( mNameLineEdit, 4, 1 );
60
61 PushButton10 = new QPushButton( this, "PushButton10" );
62
63 PublishDialog_baseLayout->addWidget( PushButton10, 0, 2 );
64
65 PushButton12 = new QPushButton( this, "PushButton12" );
66
67 PublishDialog_baseLayout->addWidget( PushButton12, 2, 2 );
68
69 PushButton11 = new QPushButton( this, "PushButton11" );
70
71 PublishDialog_baseLayout->addWidget( PushButton11, 1, 2 );
72 QSpacerItem* spacer = new QSpacerItem( 20, 241, QSizePolicy::Minimum, QSizePolicy::Expanding );
73 PublishDialog_baseLayout->addMultiCell( spacer, 3, 5, 2, 2 );
74
75 Line2 = new QFrame( this, "Line2" );
76 Line2->setFrameShape( QFrame::HLine );
77 Line2->setFrameShadow( QFrame::Sunken );
78 Line2->setFrameShape( QFrame::HLine );
79
80 PublishDialog_baseLayout->addMultiCellWidget( Line2, 6, 6, 0, 2 );
81
82 layout95 = new QHBoxLayout( 0, 0, 6, "layout95");
83 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
84 layout95->addItem( spacer_2 );
85
86 PushButton9 = new QPushButton( this, "PushButton9" );
87 PushButton9->setDefault( TRUE );
88 layout95->addWidget( PushButton9 );
89
90 PushButton8 = new QPushButton( this, "PushButton8" );
91 layout95->addWidget( PushButton8 );
92
93 PublishDialog_baseLayout->addMultiCellLayout( layout95, 7, 7, 0, 2 );
94 languageChange();
95 resize( QSize(420, 379).expandedTo(minimumSizeHint()) );
96
97 // signals and slots connections
98 connect( PushButton10, SIGNAL( clicked() ), this, SLOT( addItem() ) );
99 connect( PushButton11, SIGNAL( clicked() ), this, SLOT( removeItem() ) );
100 connect( PushButton12, SIGNAL( clicked() ), this, SLOT( openAddressbook() ) );
101 connect( PushButton9, SIGNAL( clicked() ), this, SLOT( accept() ) );
102 connect( mNameLineEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( updateItem() ) );
103 connect( mEmailLineEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( updateItem() ) );
104 connect( PushButton8, SIGNAL( clicked() ), this, SLOT( reject() ) );
105
106 // tab order
107 setTabOrder( mAddressListView, mNameLineEdit );
108 setTabOrder( mNameLineEdit, mEmailLineEdit );
109 setTabOrder( mEmailLineEdit, PushButton10 );
110 setTabOrder( PushButton10, PushButton11 );
111 setTabOrder( PushButton11, PushButton12 );
112 setTabOrder( PushButton12, PushButton9 );
113 setTabOrder( PushButton9, PushButton8 );
114}
115
116/*
117 * Destroys the object and frees any allocated resources
118 */
119PublishDialog_base::~PublishDialog_base()
120{
121 // no need to delete child widgets, Qt does it all for us
122}
123
124/*
125 * Sets the strings of the subwidgets using the current
126 * language.
127 */
128void PublishDialog_base::languageChange()
129{
130 setCaption( tr2i18n( "Form1" ) );
131 mAddressListView->header()->setLabel( 0, tr2i18n( "Name" ) );
132 mAddressListView->header()->setLabel( 1, tr2i18n( "Email" ) );
133 TextLabel1->setText( tr2i18n( "Name:" ) );
134 TextLabel2->setText( tr2i18n( "Email:" ) );
135 PushButton10->setText( tr2i18n( "&New" ) );
136 PushButton12->setText( tr2i18n( "&Addressbook" ) );
137 PushButton11->setText( tr2i18n( "&Remove" ) );
138 PushButton9->setText( tr2i18n( "&OK" ) );
139 PushButton8->setText( tr2i18n( "&Cancel" ) );
140}
141
142void PublishDialog_base::addItem()
143{
144 qWarning( "PublishDialog_base::addItem(): Not implemented yet" );
145}
146
147void PublishDialog_base::removeItem()
148{
149 qWarning( "PublishDialog_base::removeItem(): Not implemented yet" );
150}
151
152void PublishDialog_base::openAddressbook()
153{
154 qWarning( "PublishDialog_base::openAddressbook(): Not implemented yet" );
155}
156
157void PublishDialog_base::updateItem()
158{
159 qWarning( "PublishDialog_base::updateItem(): Not implemented yet" );
160}
161
162#include "publishdialog_base.moc"