aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-10 01:38:55 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-10 01:38:55 +0000
commite6c577c72f12273cb27f2be43a1ebd70e0a800a3 (patch)
tree1ac208d07d22a19897a4fb1db8549c2b79a4a599
parentjust comments (diff)
downloadgpg4usb-e6c577c72f12273cb27f2be43a1ebd70e0a800a3.tar.gz
gpg4usb-e6c577c72f12273cb27f2be43a1ebd70e0a800a3.zip
further comments
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@513 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r--textedit.h6
-rw-r--r--verifynotification.cpp15
-rw-r--r--verifynotification.h39
3 files changed, 46 insertions, 14 deletions
diff --git a/textedit.h b/textedit.h
index 436aa68..7c22577 100644
--- a/textedit.h
+++ b/textedit.h
@@ -41,7 +41,7 @@ class TextEdit : public QWidget
Q_OBJECT
public:
TextEdit(QString iconPath);
- // load the contents of fileName into current tab
+
/****************************************************************************************
* Name: loadFile
* Description: Load the content of file into the current textpage
@@ -261,8 +261,8 @@ private slots:
void selectAll();
protected:
-// void dragEnterEvent(QDragEnterEvent *event);
-// void dropEvent(QDropEvent* event);
+ // void dragEnterEvent(QDragEnterEvent *event);
+ // void dropEvent(QDropEvent* event);
/****************************************************************************************
* Name: saveFile
* Description: Saves the content of currentTab to the file filename
diff --git a/verifynotification.cpp b/verifynotification.cpp
index f1bffc4..1569542 100644
--- a/verifynotification.cpp
+++ b/verifynotification.cpp
@@ -6,12 +6,7 @@ VerifyNotification::VerifyNotification(GpgME::Context *ctx, QWidget *parent ) :
{
mCtx = ctx;
verifyLabel = new QLabel(this);
-
- notificationWidgetLayout = new QHBoxLayout(this);
- notificationWidgetLayout->setContentsMargins(0,0,0,0);
- notificationWidgetLayout->addWidget(verifyLabel,2);
-
- this->setLayout(notificationWidgetLayout);
+ verifyDetailText = new QString();
importFromKeyserverAct = new QAction(tr("Import missing key from Keyserver"), this);
connect(importFromKeyserverAct, SIGNAL(triggered()), this, SLOT(importFromKeyserver()));
@@ -23,12 +18,18 @@ VerifyNotification::VerifyNotification(GpgME::Context *ctx, QWidget *parent ) :
detailMenu->addAction(showVerifyDetailsAct);
detailMenu->addAction(importFromKeyserverAct);
importFromKeyserverAct->setVisible(false);
+
keysNotInList = new QStringList();
+
detailsButton = new QPushButton("Details",this);
detailsButton->setMenu(detailMenu);
+ notificationWidgetLayout = new QHBoxLayout(this);
+ notificationWidgetLayout->setContentsMargins(0,0,0,0);
+ notificationWidgetLayout->addWidget(verifyLabel,2);
notificationWidgetLayout->addWidget(detailsButton);
- verifyDetailText = new QString();
+ this->setLayout(notificationWidgetLayout);
+
}
void VerifyNotification::setVerifyDetailText (QString text)
diff --git a/verifynotification.h b/verifynotification.h
index fcb67f8..1e7a604 100644
--- a/verifynotification.h
+++ b/verifynotification.h
@@ -19,15 +19,46 @@ class VerifyNotification : public QWidget
public:
explicit VerifyNotification(GpgME::Context *ctx,QWidget *parent = 0 );
// set the text of verifynotification
+ /****************************************************************************************
+ * Name: setVerifyLabel
+ * Description: set the text of verify notification
+ * Parameters: none
+ * Return Values: none
+ * Change on members: none
+ */
void setVerifyLabel(QString text);
- // show the import action in menu
+ /****************************************************************************************
+ * Name: showImportAction
+ * Description: show the action in detailsmenu
+ * Parameters: none
+ * Return Values: none
+ * Change on members: none
+ */
void showImportAction();
- // hide the import action in menu
+ /****************************************************************************************
+ * Name: hideImportAction
+ * Description: hide the action in detailsmenu
+ * Parameters: none
+ * Return Values: none
+ * Change on members: none
+ */
void hideImportAction();
- // List holding the keys in signature, which are not in the keylist
+
+ /****************************************************************************************
+ * Name: setVerifyDetailText
+ * Description: set the text of verify-detail dialog
+ * Parameters: QString containing the text
+ * Return Values: none
+ * Change on members: verifyDetailText changes to text
+ */
+ void setVerifyDetailText(QString text);
+
+ /****************************************************************************************
+ * Name: keysNotInList
+ * Description: List holding the keys in signature, which are not in the keylist
+ */
QStringList *keysNotInList;
// set text shown in verifydetails dialog
- void setVerifyDetailText(QString text);
signals: