aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-02-19 15:53:19 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-02-19 15:53:19 +0000
commit408c08c56f06dad01e850557c7279bb2668d8df4 (patch)
tree0e0b1b04d9dbcd0e3fa3c165a6a996a2a7aada34
parentlittle cleanup (diff)
downloadgpg4usb-408c08c56f06dad01e850557c7279bb2668d8df4.tar.gz
gpg4usb-408c08c56f06dad01e850557c7279bb2668d8df4.zip
also disable close action, when no tab is opened and little cleanup
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@812 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r--TODO5
-rw-r--r--mainwindow.cpp2
-rw-r--r--mainwindow.h17
3 files changed, 6 insertions, 18 deletions
diff --git a/TODO b/TODO
index cf70d79..0a2ef86 100644
--- a/TODO
+++ b/TODO
@@ -51,8 +51,9 @@ Release 0.3.2
- resize dropdown button, cause letter are cut at the bottom [DONE]
- Change file encryption to single dialog for en- and decryption [DONE]
- change docu on file de- and encryption
-- replace qDebug messages with tr() by messagebox (?)
-- credits for key image
+- replace qDebug messages with tr() by messagebox (?)
+- credits for key image [DONE]
+- disable tab related actions when no tab is shown [DONE]
BUGS:
- import key toolbar dropdown shows text, even if only icon should be shown [DONE]
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 47efc3a..63a1a16 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -385,7 +385,7 @@ void MainWindow::disableTabActions(int number)
cutAct->setDisabled(disable);
copyAct->setDisabled(disable);
pasteAct->setDisabled(disable);
-
+ closeTabAct->setDisabled(disable);
selectallAct->setDisabled(disable);
verifyAct->setDisabled(disable);
signAct->setDisabled(disable);
diff --git a/mainwindow.h b/mainwindow.h
index 5e380f0..8c0bcee 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -199,6 +199,7 @@ private slots:
/**
* @details Disable tab related actions, if number of tabs is 0.
+ * @param number number of the opened tabs and -1, if no tab is opened
*/
void disableTabActions(int number);
@@ -261,7 +262,7 @@ private:
QMenu *cryptMenu; /** Submenu for crypt-operations */
QMenu *helpMenu; /** Submenu for help-operations */
QMenu *keyMenu; /** Submenu for key-operations */
- QMenu *viewMenu; /** View submenu */
+ QMenu *viewMenu; /** Submenu for view operations */
QMenu *importKeyMenu; /** Sumenu for import operations */
QMenu *steganoMenu; /** Submenu for steganographic operations*/
QToolBar *cryptToolBar; /** Toolbar holding crypt actions */
@@ -316,21 +317,7 @@ private:
QAction *cutPgpHeaderAct; /** Action for cutting the PGP header */
QAction *addPgpHeaderAct; /** Action for adding the PGP header */
- QLineEdit *nameEdit; /**< TODO */
- QLineEdit *emailEdit; /**< TODO */
- QLineEdit *commentEdit; /**< TODO */
- QLineEdit *passwordEdit; /**< TODO */
- QLineEdit *repeatpwEdit; /**< TODO */
- QSpinBox *keysizeSpinBox; /**< TODO */
- QLabel *nameLabel; /**< TODO */
- QLabel *emailLabel; /**< TODO */
- QLabel *commentLabel; /**< TODO */
- QLabel *keysizeLabel; /**< TODO */
- QLabel *passwordLabel; /**< TODO */
- QLabel *repeatpwLabel; /**< TODO */
- QLabel *errorLabel; /**< TODO */
QLabel *statusBarIcon; /**< TODO */
-
QSettings settings; /**< TODO */
KeyList *mKeyList; /**< TODO */
Attachments *mAttachments; /**< TODO */