author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /korganizer/outgoingdialog_base.cpp | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
Diffstat (limited to 'korganizer/outgoingdialog_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/outgoingdialog_base.cpp | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/korganizer/outgoingdialog_base.cpp b/korganizer/outgoingdialog_base.cpp new file mode 100644 index 0000000..e5b913a --- a/dev/null +++ b/korganizer/outgoingdialog_base.cpp | |||
@@ -0,0 +1,109 @@ | |||
1 | #include <klocale.h> | ||
2 | /**************************************************************************** | ||
3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/korganizer/outgoingdialog_base.ui' | ||
4 | ** | ||
5 | ** Created: Sat Mar 29 22:31:21 2003 | ||
6 | ** by: The User Interface Compiler () | ||
7 | ** | ||
8 | ** WARNING! All changes made in this file will be lost! | ||
9 | ****************************************************************************/ | ||
10 | |||
11 | #include "outgoingdialog_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 OutgoingDialog_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 | OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
29 | : QDialog( parent, name, modal, fl ) | ||
30 | |||
31 | { | ||
32 | if ( !name ) | ||
33 | setName( "OutgoingDialog_base" ); | ||
34 | OutgoingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "OutgoingDialog_baseLayout"); | ||
35 | |||
36 | mMessageListView = new QListView( this, "mMessageListView" ); | ||
37 | mMessageListView->addColumn( tr2i18n( "Summary" ) ); | ||
38 | mMessageListView->addColumn( tr2i18n( "Start Date" ) ); | ||
39 | mMessageListView->addColumn( tr2i18n( "Start Time" ) ); | ||
40 | mMessageListView->addColumn( tr2i18n( "End Date" ) ); | ||
41 | mMessageListView->addColumn( tr2i18n( "End Time" ) ); | ||
42 | mMessageListView->addColumn( tr2i18n( "Method" ) ); | ||
43 | mMessageListView->setFrameShape( QListView::StyledPanel ); | ||
44 | mMessageListView->setFrameShadow( QListView::Sunken ); | ||
45 | mMessageListView->setAllColumnsShowFocus( TRUE ); | ||
46 | |||
47 | OutgoingDialog_baseLayout->addMultiCellWidget( mMessageListView, 0, 3, 0, 0 ); | ||
48 | |||
49 | PushButton5 = new QPushButton( this, "PushButton5" ); | ||
50 | PushButton5->setDefault( FALSE ); | ||
51 | |||
52 | OutgoingDialog_baseLayout->addWidget( PushButton5, 0, 1 ); | ||
53 | |||
54 | PushButton7 = new QPushButton( this, "PushButton7" ); | ||
55 | |||
56 | OutgoingDialog_baseLayout->addWidget( PushButton7, 1, 1 ); | ||
57 | |||
58 | PushButton6 = new QPushButton( this, "PushButton6" ); | ||
59 | PushButton6->setDefault( TRUE ); | ||
60 | |||
61 | OutgoingDialog_baseLayout->addWidget( PushButton6, 3, 1 ); | ||
62 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); | ||
63 | OutgoingDialog_baseLayout->addItem( spacer, 2, 1 ); | ||
64 | languageChange(); | ||
65 | resize( QSize(582, 274).expandedTo(minimumSizeHint()) ); | ||
66 | |||
67 | // signals and slots connections | ||
68 | connect( PushButton6, SIGNAL( clicked() ), this, SLOT( accept() ) ); | ||
69 | connect( PushButton5, SIGNAL( clicked() ), this, SLOT( send() ) ); | ||
70 | connect( PushButton7, SIGNAL( clicked() ), this, SLOT( deleteItem() ) ); | ||
71 | } | ||
72 | |||
73 | /* | ||
74 | * Destroys the object and frees any allocated resources | ||
75 | */ | ||
76 | OutgoingDialog_base::~OutgoingDialog_base() | ||
77 | { | ||
78 | // no need to delete child widgets, Qt does it all for us | ||
79 | } | ||
80 | |||
81 | /* | ||
82 | * Sets the strings of the subwidgets using the current | ||
83 | * language. | ||
84 | */ | ||
85 | void OutgoingDialog_base::languageChange() | ||
86 | { | ||
87 | setCaption( tr2i18n( "Scheduler - Outgoing Messages" ) ); | ||
88 | mMessageListView->header()->setLabel( 0, tr2i18n( "Summary" ) ); | ||
89 | mMessageListView->header()->setLabel( 1, tr2i18n( "Start Date" ) ); | ||
90 | mMessageListView->header()->setLabel( 2, tr2i18n( "Start Time" ) ); | ||
91 | mMessageListView->header()->setLabel( 3, tr2i18n( "End Date" ) ); | ||
92 | mMessageListView->header()->setLabel( 4, tr2i18n( "End Time" ) ); | ||
93 | mMessageListView->header()->setLabel( 5, tr2i18n( "Method" ) ); | ||
94 | PushButton5->setText( tr2i18n( "&Send Messages" ) ); | ||
95 | PushButton7->setText( tr2i18n( "&Remove" ) ); | ||
96 | PushButton6->setText( tr2i18n( "&Close" ) ); | ||
97 | } | ||
98 | |||
99 | void OutgoingDialog_base::send() | ||
100 | { | ||
101 | qWarning( "OutgoingDialog_base::send(): Not implemented yet" ); | ||
102 | } | ||
103 | |||
104 | void OutgoingDialog_base::deleteItem() | ||
105 | { | ||
106 | qWarning( "OutgoingDialog_base::deleteItem(): Not implemented yet" ); | ||
107 | } | ||
108 | |||
109 | #include "outgoingdialog_base.moc" | ||