[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim] sendlateragent: Add new action
From:       Montel Laurent <montel () kde ! org>
Date:       2013-05-08 10:42:06
Message-ID: 20130508104206.1FBF3A605B () git ! kde ! org
[Download RAW message or body]

Git commit 51f85cb1bd8276f9ddd9f1a38cac96451703a590 by Montel Laurent.
Committed on 08/05/2013 at 12:41.
Pushed by mlaurent into branch 'master'.

Add new action

M  +34   -0    sendlateragent/sendlaterdialog.cpp
M  +6    -0    sendlateragent/sendlaterdialog.h

http://commits.kde.org/kdepim/51f85cb1bd8276f9ddd9f1a38cac96451703a590

diff --git a/sendlateragent/sendlaterdialog.cpp b/sendlateragent/sendlaterdialog.cpp
index c2db588..234feb0 100644
--- a/sendlateragent/sendlaterdialog.cpp
+++ b/sendlateragent/sendlaterdialog.cpp
@@ -20,6 +20,8 @@
 
 #include <KLocale>
 #include <KComboBox>
+#include <KPushButton>
+#include <KSeparator>
 
 #include <QHBoxLayout>
 #include <QVBoxLayout>
@@ -75,6 +77,23 @@ SendLaterDialog::SendLaterDialog(SendLaterInfo *info, QWidget *parent)
 
     hbox->addWidget(mRecursiveComboBox);
 
+    hbox = new QHBoxLayout;
+
+    mSendIn30Minutes = new KPushButton(i18n("30 minutes later"));
+    connect(mSendIn30Minutes, SIGNAL(clicked()), SLOT(slotSendIn30Minutes()));
+    hbox->addWidget(mSendIn30Minutes);
+
+    mSendIn1Hour = new KPushButton(i18n("1 hour later"));
+    connect(mSendIn1Hour, SIGNAL(clicked()), SLOT(slotSendIn1Hour()));
+    hbox->addWidget(mSendIn1Hour);
+
+    mSendIn2Hours = new KPushButton(i18n("2 hour later"));
+    connect(mSendIn2Hours, SIGNAL(clicked()), SLOT(slotSendIn2Hours()));
+    hbox->addWidget(mSendIn2Hours);
+    lay->addLayout(hbox);
+
+    lay->addWidget(new KSeparator);
+
     w->setLayout(lay);
     setMainWidget(w);
     readConfig();
@@ -88,6 +107,21 @@ SendLaterDialog::~SendLaterDialog()
     writeConfig();
 }
 
+void SendLaterDialog::slotSendIn2Hours()
+{
+
+}
+
+void SendLaterDialog::slotSendIn1Hour()
+{
+
+}
+
+void SendLaterDialog::slotSendIn30Minutes()
+{
+
+}
+
 void SendLaterDialog::slotRecursiveClicked(bool clicked)
 {
     mRecursiveValue->setEnabled(clicked);
diff --git a/sendlateragent/sendlaterdialog.h b/sendlateragent/sendlaterdialog.h
index cf82982..7d5effe 100644
--- a/sendlateragent/sendlaterdialog.h
+++ b/sendlateragent/sendlaterdialog.h
@@ -40,6 +40,9 @@ private Q_SLOTS:
     void slotSendLater();
     void slotSendNow();
     void slotRecursiveClicked(bool);
+    void slotSendIn30Minutes();
+    void slotSendIn1Hour();
+    void slotSendIn2Hours();
 
 private:
     void load(SendLaterInfo *info);
@@ -52,6 +55,9 @@ private:
     KComboBox *mRecursiveComboBox;
     QCheckBox *mRecursive;
     QSpinBox *mRecursiveValue;
+    KPushButton *mSendIn30Minutes;
+    KPushButton *mSendIn1Hour;
+    KPushButton *mSendIn2Hours;
 };
 
 #endif // SENDLATERDIALOG_H
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic