This commit is contained in:
Herwig Birke
2018-05-16 10:51:03 +02:00
parent e89d236efd
commit 2aabbc0a79
20 changed files with 191 additions and 22 deletions
+6
View File
@@ -66,6 +66,12 @@ private slots:
*/
void onSceneDoubleClicked(const QModelIndex& index);
/*!
\brief
\fn onNameChanged
\param szName
*/
void onNameChanged(const QString& szName);
/*!
\brief
+3 -3
View File
@@ -34,9 +34,9 @@ public:
*/
enum GENDER
{
GENDER_undefined = 0,
GENDER_male = 1,
GENDER_female = 2,
GENDER_undefined = 0, /*!< TODO: describe */
GENDER_male = 1, /*!< TODO: describe */
GENDER_female = 2, /*!< TODO: describe */
};
/*!
+6
View File
@@ -21,6 +21,12 @@ class cCheckBox : public QCheckBox
Q_OBJECT
public:
/*!
\brief
\fn cCheckBox
\param parent
*/
cCheckBox(QWidget* parent = Q_NULLPTR);
signals:
+6
View File
@@ -21,6 +21,12 @@ class cComboBox : public QComboBox
Q_OBJECT
public:
/*!
\brief
\fn cComboBox
\param parent
*/
cComboBox(QWidget* parent = Q_NULLPTR);
signals:
+6
View File
@@ -21,6 +21,12 @@ class cDateEdit : public QDateEdit
Q_OBJECT
public:
/*!
\brief
\fn cDateEdit
\param parent
*/
cDateEdit(QWidget* parent = Q_NULLPTR);
signals:
+6
View File
@@ -21,6 +21,12 @@ class cDateTimeEdit : public QDateTimeEdit
Q_OBJECT
public:
/*!
\brief
\fn cDateTimeEdit
\param parent
*/
cDateTimeEdit(QWidget* parent = Q_NULLPTR);
signals:
+6
View File
@@ -21,6 +21,12 @@ class cDoubleSpinBox : public QDoubleSpinBox
Q_OBJECT
public:
/*!
\brief
\fn cDoubleSpinBox
\param parent
*/
cDoubleSpinBox(QWidget* parent = Q_NULLPTR);
signals:
+13 -1
View File
@@ -86,14 +86,26 @@ public:
*/
cTextDocument* description();
/*!
\brief
\fn setImage
\param image
*/
void setImage(const QPixmap& image);
/*!
\brief
\fn image
\return QPixmap
*/
QPixmap image();
private:
qint32 m_iID; /*!< TODO: describe */
QString m_szName; /*!< TODO: describe */
QString m_szType; /*!< TODO: describe */
cTextDocument* m_lpDescription; /*!< TODO: describe */
QPixmap m_image;
QPixmap m_image; /*!< TODO: describe */
};
Q_DECLARE_METATYPE(cImage*)
+6
View File
@@ -21,6 +21,12 @@ class cLineEdit : public QLineEdit
Q_OBJECT
public:
/*!
\brief
\fn cLineEdit
\param parent
*/
cLineEdit(QWidget* parent = Q_NULLPTR);
signals:
+2 -2
View File
@@ -677,8 +677,8 @@ private:
QAction* m_lpSeparatorRecent;
enum { MaxRecentFiles = 5 };
QAction* m_lpActionRecentFile[MaxRecentFiles];
enum { MaxRecentFiles = 5 }; /*!< TODO: describe */
QAction* m_lpActionRecentFile[MaxRecentFiles]; /*!< TODO: describe */
QActionGroup* m_lpAlignGroup; /*!< TODO: describe */
+6
View File
@@ -65,6 +65,12 @@ private slots:
*/
void onChapterDoubleClicked(const QModelIndex& index);
/*!
\brief
\fn onNameChanged
\param szName
*/
void onNameChanged(const QString& szName);
/*!
\brief
+77 -3
View File
@@ -15,31 +15,105 @@ namespace Ui {
class cPropertiesWindow;
}
/*!
\brief
\class cPropertiesWindow cpropertieswindow.h "cpropertieswindow.h"
*/
class cPropertiesWindow : public cMDISubWindow
{
Q_OBJECT
public:
/*!
\brief
\fn cPropertiesWindow
\param parent
*/
explicit cPropertiesWindow(QWidget *parent = 0);
/*!
\brief
\fn ~cPropertiesWindow
*/
~cPropertiesWindow();
/*!
\brief
\fn setBook
\param lpBook
*/
void setBook(cBook* lpBook);
/*!
\brief
\fn book
\return cBook
*/
cBook* book();
private slots:
/*!
\brief
\fn onTitleChanged
\param szName
*/
void onTitleChanged(const QString& szName);
/*!
\brief
\fn onSubTitleChanged
\param szName
*/
void onSubTitleChanged(const QString& szName);
/*!
\brief
\fn onAuthorChanged
\param szName
*/
void onAuthorChanged(const QString& szName);
/*!
\brief
\fn onShortDescriptionChanged
*/
void onShortDescriptionChanged();
/*!
\brief
\fn onDescriptionChanged
*/
void onDescriptionChanged();
/*!
\brief
\fn onStartedAtChanged
\param dateTime
*/
void onStartedAtChanged(const QDateTime& dateTime);
/*!
\brief
\fn onFinishedAtChanged
\param dateTime
*/
void onFinishedAtChanged(const QDateTime& dateTime);
/*!
\brief
\fn onTargetDateChanged
\param dateTime
*/
void onTargetDateChanged(const QDateTime& dateTime);
private:
Ui::cPropertiesWindow* ui;
cMainWindow* m_lpMainWindow;
cBook* m_lpBook;
Ui::cPropertiesWindow* ui; /*!< TODO: describe */
cMainWindow* m_lpMainWindow; /*!< TODO: describe */
cBook* m_lpBook; /*!< TODO: describe */
};
#endif // CPROPERTIESWINDOW_H
+6
View File
@@ -21,6 +21,12 @@ class cRadioButton : public QRadioButton
Q_OBJECT
public:
/*!
\brief
\fn cRadioButton
\param parent
*/
cRadioButton(QWidget* parent = Q_NULLPTR);
signals:
+6
View File
@@ -77,6 +77,12 @@ private slots:
*/
void onObjectDoubleClicked(const QModelIndex& index);
/*!
\brief
\fn onNameChanged
\param szName
*/
void onNameChanged(const QString& szName);
/*!
\brief
+5 -5
View File
@@ -38,11 +38,11 @@ public:
*/
enum STATE
{
STATE_unknown = 0,
STATE_init = 1,
STATE_progress = 2,
STATE_delayed = 3,
STATE_finished = 4,
STATE_unknown = 0, /*!< TODO: describe */
STATE_init = 1, /*!< TODO: describe */
STATE_progress = 2, /*!< TODO: describe */
STATE_delayed = 3, /*!< TODO: describe */
STATE_finished = 4, /*!< TODO: describe */
};
/*!
+5
View File
@@ -79,6 +79,11 @@ private slots:
*/
void onObjectDoubleClicked(const QModelIndex& index);
/*!
\brief
\fn onNameChanged
*/
void onNameChanged(const QString& szName);
/*!
\brief
+6
View File
@@ -29,6 +29,12 @@ QT_END_NAMESPACE
class cTextDocument : public QTextDocument
{
public:
/*!
\brief
\fn cTextDocument
\param parent
*/
cTextDocument(QObject *parent = Q_NULLPTR);
/*!
\brief
+6
View File
@@ -23,6 +23,12 @@ class cTextEdit : public QTextEdit
Q_OBJECT
public:
/*!
\brief
\fn cTextEdit
\param parent
*/
cTextEdit(QWidget* parent = Q_NULLPTR);
/*!
\brief
+6
View File
@@ -21,6 +21,12 @@ class cTreeView : public QTreeView
Q_OBJECT
public:
/*!
\brief
\fn cTreeView
\param parent
*/
cTreeView(QWidget* parent = Q_NULLPTR);
signals:
+8 -8
View File
@@ -31,15 +31,15 @@ public:
*/
enum TYPE
{
TYPE_unknown = 0,
TYPE_part = 1,
TYPE_chapter = 2,
TYPE_scene = 3,
TYPE_character = 4,
TYPE_unknown = 0, /*!< TODO: describe */
TYPE_part = 1, /*!< TODO: describe */
TYPE_chapter = 2, /*!< TODO: describe */
TYPE_scene = 3, /*!< TODO: describe */
TYPE_character = 4, /*!< TODO: describe */
TYPE_object = 5, /*!< TODO: describe */
TYPE_place = 6,
TYPE_recherche = 7,
TYPE_properties = 8,
TYPE_place = 6, /*!< TODO: describe */
TYPE_recherche = 7, /*!< TODO: describe */
TYPE_properties = 8, /*!< TODO: describe */
};
/*!