author | zautrix <zautrix> | 2004-09-11 18:10:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-11 18:10:31 (UTC) |
commit | 53dda80aaab72d7efdbed8a206dc1fa64fed10ee (patch) (unidiff) | |
tree | 23b5248145679628c0d346f7d42c53714634e1a3 /kmicromail/mainwindow.cpp | |
parent | 438403295657bdcab9ee9e526c6a08894e876f63 (diff) | |
download | kdepimpi-53dda80aaab72d7efdbed8a206dc1fa64fed10ee.zip kdepimpi-53dda80aaab72d7efdbed8a206dc1fa64fed10ee.tar.gz kdepimpi-53dda80aaab72d7efdbed8a206dc1fa64fed10ee.tar.bz2 |
progress fixes
-rw-r--r-- | kmicromail/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 5f777a3..d130317 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -111,97 +111,98 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
111 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); | 111 | mailView->addColumn( tr( "Subject" ),QListView::Manual ); |
112 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); | 112 | mailView->addColumn( tr( "Sender" ),QListView::Manual ); |
113 | mailView->addColumn( tr( "Size" ),QListView::Manual); | 113 | mailView->addColumn( tr( "Size" ),QListView::Manual); |
114 | mailView->addColumn( tr( "Date" ),QListView::Manual); | 114 | mailView->addColumn( tr( "Date" ),QListView::Manual); |
115 | mailView->setAllColumnsShowFocus(true); | 115 | mailView->setAllColumnsShowFocus(true); |
116 | //mailView->setSorting(-1); | 116 | //mailView->setSorting(-1); |
117 | mailView->setRootIsDecorated( false ); | 117 | mailView->setRootIsDecorated( false ); |
118 | statusWidget = new StatusWidget( wrapperBox ); | 118 | statusWidget = new StatusWidget( wrapperBox ); |
119 | statusWidget->hide(); | 119 | statusWidget->hide(); |
120 | 120 | ||
121 | //layout->addWidget( mailView ); | 121 | //layout->addWidget( mailView ); |
122 | //layout->setStretchFactor( folderView, 1 ); | 122 | //layout->setStretchFactor( folderView, 1 ); |
123 | //layout->setStretchFactor( mailView, 2 ); | 123 | //layout->setStretchFactor( mailView, 2 ); |
124 | 124 | ||
125 | slotAdjustLayout(); | 125 | slotAdjustLayout(); |
126 | #ifndef DESKTOP_VERSION | 126 | #ifndef DESKTOP_VERSION |
127 | QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); | 127 | QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); |
128 | QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); | 128 | QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); |
129 | #endif | 129 | #endif |
130 | connect( mailView, SIGNAL( doubleClicked (QListViewItem* )),this, | 130 | connect( mailView, SIGNAL( doubleClicked (QListViewItem* )),this, |
131 | SLOT( mailLeftClicked(QListViewItem*) ) ); | 131 | SLOT( mailLeftClicked(QListViewItem*) ) ); |
132 | connect( mailView, SIGNAL( returnPressed (QListViewItem* )),this, | 132 | connect( mailView, SIGNAL( returnPressed (QListViewItem* )),this, |
133 | SLOT( mailLeftClicked(QListViewItem*) ) ); | 133 | SLOT( mailLeftClicked(QListViewItem*) ) ); |
134 | connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, | 134 | connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, |
135 | SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); | 135 | SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); |
136 | connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)), | 136 | connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)), |
137 | this,SLOT(refreshMailView(const QValueList<RecMailP>&))); | 137 | this,SLOT(refreshMailView(const QValueList<RecMailP>&))); |
138 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); | 138 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); |
139 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); | 139 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); |
140 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); | 140 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); |
141 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); | 141 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); |
142 | //mailView->setMultiSelection ( true ); | 142 | //mailView->setMultiSelection ( true ); |
143 | mailView->setSelectionMode( QListView::Extended ); | 143 | mailView->setSelectionMode( QListView::Extended ); |
144 | QValueList<int> list; | 144 | QValueList<int> list; |
145 | int fw = 100; | 145 | int fw = 100; |
146 | if ( QApplication::desktop()->width() > 320 ) | 146 | if ( QApplication::desktop()->width() > 320 ) |
147 | fw = 50; | 147 | fw = 50; |
148 | list.append( fw ); | 148 | list.append( fw ); |
149 | list.append( 100 ); | 149 | list.append( 100 ); |
150 | split->setSizes( list ); | 150 | split->setSizes( list ); |
151 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 151 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |
152 | mailView->setShowSortIndicator ( true ); | 152 | mailView->setShowSortIndicator ( true ); |
153 | QLabel *spacer = new QLabel( toolBar ); | 153 | QLabel *spacer = new QLabel( toolBar ); |
154 | spacer->setBackgroundMode( QWidget::PaletteButton ); | 154 | spacer->setBackgroundMode( QWidget::PaletteButton ); |
155 | toolBar->setStretchableWidget( spacer ); | 155 | toolBar->setStretchableWidget( spacer ); |
156 | 156 | ||
157 | QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); | 157 | QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); |
158 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); | 158 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); |
159 | closeMail->addTo(toolBar); | 159 | if ( QApplication::desktop()->width() > 320 ) |
160 | closeMail->addTo(toolBar); | ||
160 | closeMail->addTo(mailMenu); | 161 | closeMail->addTo(mailMenu); |
161 | 162 | ||
162 | 163 | ||
163 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); | 164 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); |
164 | menuBar->insertItem( tr( "Help" ), helpMenu ); | 165 | menuBar->insertItem( tr( "Help" ), helpMenu ); |
165 | QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); | 166 | QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); |
166 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); | 167 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); |
167 | li->addTo(helpMenu); | 168 | li->addTo(helpMenu); |
168 | li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); | 169 | li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); |
169 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); | 170 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); |
170 | li->addTo(helpMenu); | 171 | li->addTo(helpMenu); |
171 | li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); | 172 | li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); |
172 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); | 173 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); |
173 | li->addTo(helpMenu); | 174 | li->addTo(helpMenu); |
174 | } | 175 | } |
175 | 176 | ||
176 | MainWindow::~MainWindow() | 177 | MainWindow::~MainWindow() |
177 | { | 178 | { |
178 | } | 179 | } |
179 | 180 | ||
180 | void MainWindow::showLicence() | 181 | void MainWindow::showLicence() |
181 | { | 182 | { |
182 | KApplication::showLicence(); | 183 | KApplication::showLicence(); |
183 | } | 184 | } |
184 | void MainWindow::showAbout() | 185 | void MainWindow::showAbout() |
185 | { | 186 | { |
186 | QString version; | 187 | QString version; |
187 | #include <../version> | 188 | #include <../version> |
188 | 189 | ||
189 | QString cap = "About KOpieMail/Pi"; | 190 | QString cap = "About KOpieMail/Pi"; |
190 | QString text =i18n("KOpieMail/Platform-independent\n") + | 191 | QString text =i18n("KOpieMail/Platform-independent\n") + |
191 | "(OM/Pi) " + version + " - " | 192 | "(OM/Pi) " + version + " - " |
192 | 193 | ||
193 | #ifdef DESKTOP_VERSION | 194 | #ifdef DESKTOP_VERSION |
194 | "Desktop Edition\n" | 195 | "Desktop Edition\n" |
195 | #else | 196 | #else |
196 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" | 197 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" |
197 | #endif | 198 | #endif |
198 | "www.pi-sync.net\n\n" | 199 | "www.pi-sync.net\n\n" |
199 | 200 | ||
200 | 201 | ||
201 | 202 | ||
202 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" | 203 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" |
203 | "KOpieMail/Pi is based on Opie Mail\n" | 204 | "KOpieMail/Pi is based on Opie Mail\n" |
204 | "Copyright (c) Rajko Albrecht and the Opie team\n" | 205 | "Copyright (c) Rajko Albrecht and the Opie team\n" |
205 | "KOpieMail/Pi is licensed under the GPL\n" | 206 | "KOpieMail/Pi is licensed under the GPL\n" |
206 | "\n" | 207 | "\n" |
207 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" | 208 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" |