summaryrefslogtreecommitdiff
path: root/src/frontend/bookmarks/bteditbookmarkdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/bookmarks/bteditbookmarkdialog.h')
-rw-r--r--src/frontend/bookmarks/bteditbookmarkdialog.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/frontend/bookmarks/bteditbookmarkdialog.h b/src/frontend/bookmarks/bteditbookmarkdialog.h
new file mode 100644
index 0000000..c3455e2
--- /dev/null
+++ b/src/frontend/bookmarks/bteditbookmarkdialog.h
@@ -0,0 +1,62 @@
+/*********
+*
+* This file is part of BibleTime's source code, http://www.bibletime.info/.
+*
+* Copyright 1999-2011 by the BibleTime developers.
+* The BibleTime source code is licensed under the GNU General Public License version 2.0.
+*
+**********/
+
+#ifndef BTEDITBOOKMARKDIALOG_H
+#define BTEDITBOOKMARKDIALOG_H
+
+#include <QDialog>
+#include <QLineEdit>
+#include <QTextEdit>
+
+class QDialogButtonBox;
+class QFormLayout;
+class QLabel;
+class QWidget;
+
+/**
+ \brief A dialog box for editing bookmarks.
+*/
+class BtEditBookmarkDialog : public QDialog {
+ Q_OBJECT
+
+ public: /* Methods: */
+ BtEditBookmarkDialog(const QString &key,
+ const QString &title,
+ const QString &description,
+ QWidget *parent = 0,
+ Qt::WindowFlags wflags = Qt::Dialog);
+
+ /**
+ * Returns the description written in the description box.
+ */
+ inline const QString descriptionText() {
+ return m_descriptionEdit->toPlainText();
+ }
+
+ /**
+ * Returns the title written in the title box.
+ */
+ inline const QString titleText() { return m_titleEdit->text(); }
+
+ protected: /* Methods: */
+ void retranslateUi();
+
+ private: /* Fields: */
+ QFormLayout *m_layout;
+ QLabel *m_keyLabel;
+ QLabel *m_keyTextLabel;
+ QLabel *m_titleLabel;
+ QLineEdit *m_titleEdit;
+ QLabel *m_descriptionLabel;
+ QTextEdit *m_descriptionEdit;
+ QDialogButtonBox *m_buttonBox;
+
+};
+
+#endif