aboutsummaryrefslogtreecommitdiffstats
path: root/editorpage.h
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-09-08 17:16:07 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-09-08 17:16:07 +0000
commit9e08044e7c503cd8f79f4fb86fa2751652a2637b (patch)
tree6dbc7b3fa0c47fce919e9ccd50cef590c28d594a /editorpage.h
parentminor changes in verify-method and some doxygen documenation (diff)
downloadgpg4usb-9e08044e7c503cd8f79f4fb86fa2751652a2637b.tar.gz
gpg4usb-9e08044e7c503cd8f79f4fb86fa2751652a2637b.zip
only use private keys to sign and print adequate message, if no private key is checked. removed hideImportAction and added parameter to showImportAction.
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@527 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'editorpage.h')
-rw-r--r--editorpage.h56
1 files changed, 49 insertions, 7 deletions
diff --git a/editorpage.h b/editorpage.h
index c0ae255..bea8e07 100644
--- a/editorpage.h
+++ b/editorpage.h
@@ -30,26 +30,68 @@ class QHBoxLayout;
class QString;
class QLabel;
+/**
+ * @brief Class for handling a single tab of tabwidget
+ *
+ */
class EditorPage : public QWidget
{
Q_OBJECT
public:
+ /**
+ * @brief
+ *
+ * @param filePath Path of the file handled in this tab
+ * @param parent Pointer to the parent widget
+ */
EditorPage(const QString &filePath = "", QWidget *parent = 0);
+
+ /**
+ * @details Get the filepath of the currently activated tab.
+ */
const QString& getFilePath() const;
+
+ /**
+ * @details Set filepath of currently activated tab.
+ *
+ * @param filePath The path to be set
+ */
void setFilePath(const QString &filePath);
+
+ /**
+ * @details Return pointer tp the textedit of the currently activated tab.
+ *
+ */
QPlainTextEdit *getTextPage();
+
+ /**
+ * @details Show additional widget at buttom of currently active tab
+ *
+ * @param widget The widget to be added
+ * @param className The name to handle the added widget
+ */
void showNotificationWidget(QWidget *widget, const char *className);
+
+ /**
+ * @details Hide all widgets with the given className
+ *
+ * @param className The classname of the widgets to hide
+ */
void hideNoteByClass(const char *className);
private:
- QPlainTextEdit *textPage;
- QVBoxLayout *mainLayout;
- QHBoxLayout *notificationWidgetLayout;
- QWidget *notificationWidget;
- QMenu *verifyMenu;
- QString fullFilePath;
- QLabel *verifyLabel;
+ QPlainTextEdit *textPage; /** The textedit of the tab */
+ QVBoxLayout *mainLayout; /** The layout for the tab */
+ QHBoxLayout *notificationWidgetLayout; /** layout for the notification-widget */
+ QWidget *notificationWidget; /** The notification widget shown at the buttom of the tab */
+ QMenu *verifyMenu; /** The menu in the notifiaction widget */
+ QString fullFilePath; /** The path to the file handled in the tab */
+ QLabel *verifyLabel; /** The label of the verify-notification widget */
+ /**
+ * @details bla
+ *
+ */
void setSaveState();
};