[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/mobile/mail
From: Stephen Kelly <steveire () gmail ! com>
Date: 2010-04-19 10:22:15
Message-ID: 20100419102215.EF522AC89D () svn ! kde ! org
[Download RAW message or body]
SVN commit 1116374 by skelly:
Start the mail-launch page.
Complete with fetching blue yellow and red background columns...
M +1 -0 CMakeLists.txt
A StartCanvas.qml [License: LGPL (v2+)]
M +19 -5 kmail-mobile.qml
M +13 -0 mainview.cpp
M +2 -0 mainview.h
--- trunk/KDE/kdepim/mobile/mail/CMakeLists.txt #1116373:1116374
@@ -30,6 +30,7 @@
install(FILES
AttachmentList.qml
Button.qml
+ StartCanvas.qml
HeaderView.qml
kmail-mobile.qml
DESTINATION ${DATA_INSTALL_DIR}/kmail-mobile
--- trunk/KDE/kdepim/mobile/mail/kmail-mobile.qml #1116373:1116374
@@ -38,13 +38,13 @@
height: parent.height
messageItemId: -1
swipeLength: 0.2 // Require at least 20% of screenwidth to trigger next or prev
-
+
onNextMessageRequest: {
// Only go to the next message when currently a valid item is set.
if ( messageView.messageItemId >= 0 )
headerList.nextMessage();
}
-
+
onPreviousMessageRequest: {
// Only go to the previous message when currently a valid item is set.
if ( messageView.messageItemId >= 0 )
@@ -56,11 +56,25 @@
SlideoutPanelContainer {
anchors.fill: parent
+
SlideoutPanel {
anchors.fill: parent
+ id: startPanel
+ titleText: "Start"
+ handleHeight: 150
+ content: [
+ StartCanvas {
+ anchors.fill : parent
+ }
+ ]
+ }
+
+ SlideoutPanel {
+ anchors.fill: parent
id: folderPanel
titleText: "Folders"
handleHeight: 150
+ handlePosition: 150
content: [
Item {
anchors.fill: parent
@@ -106,7 +120,7 @@
// ### QML has a bug where the children property is broken.
// As a workaround, we need to set handlePosition here and
// set anchors.fill parent on the panels. Remove when Qt is fixed.
- handlePosition: 150
+ handlePosition: 300
handleHeight: 150
contentWidth: 240
content: [
@@ -141,7 +155,7 @@
width: parent.width - 10
height: parent.height / 6
buttonText: "Previous"
- onClicked: {
+ onClicked: {
if ( messageView.messageItemId >= 0 )
headerList.previousMessage();
@@ -166,7 +180,7 @@
SlideoutPanel {
anchors.fill: parent
- handlePosition: 300
+ handlePosition: 450
id: attachmentPanel
visible: messageView.attachmentModel.attachmentCount >= 1
titleIcon: KDE.iconPath( "mail-attachment", 48 );
--- trunk/KDE/kdepim/mobile/mail/mainview.cpp #1116373:1116374
@@ -51,6 +51,7 @@
#include <akonadi_next/etmstatesaver.h>
#define SON(o) o->setObjectName(#o)
+#include <KProcess>
MainView::MainView(QWidget* parent) :
QDeclarativeView(parent),
@@ -215,5 +216,17 @@
return idx5.model()->rowCount( idx5 ) > 0;
}
+void MainView::launchAccountWizard()
+{
+ int pid = KProcess::startDetached( QLatin1String( "accountwizard" ), QStringList()
+ << \
QLatin1String( "--type" ) + \
<< QLatin1String( "message/rfc822" ) ); + if ( !pid )
+ {
+ // Handle error
+ qDebug() << "error creating accountwizard";
+ }
+}
+
#include "mainview.moc"
--- trunk/KDE/kdepim/mobile/mail/mainview.h #1116373:1116374
@@ -46,6 +46,8 @@
bool childCollectionHasChildren( int row );
+ void launchAccountWizard();
+
private slots:
void saveState();
void restoreState();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic