Changeset View
Changeset View
Standalone View
Standalone View
src/acbf/AcbfBody.h
Context not available. | |||||
46 | class ACBF_EXPORT Body : public QObject | 46 | class ACBF_EXPORT Body : public QObject | ||
---|---|---|---|---|---|
47 | { | 47 | { | ||
48 | Q_OBJECT | 48 | Q_OBJECT | ||
49 | Q_PROPERTY(QString bgcolor READ bgcolor WRITE setBgcolor NOTIFY bgcolorChanged) | ||||
50 | Q_PROPERTY(int pageCount READ pageCount NOTIFY pageCountChanged) | ||||
49 | public: | 51 | public: | ||
50 | explicit Body(Document* parent = nullptr); | 52 | explicit Body(Document* parent = nullptr); | ||
51 | ~Body(); | 53 | ~Body(); | ||
Context not available. | |||||
76 | * @param newColor - a String with an 8bit per channel rgb hexcode (#ff00ff, or the like) | 78 | * @param newColor - a String with an 8bit per channel rgb hexcode (#ff00ff, or the like) | ||
77 | */ | 79 | */ | ||
78 | void setBgcolor(const QString& newColor); | 80 | void setBgcolor(const QString& newColor); | ||
81 | /** | ||||
82 | * @brief fires when the background color changes. | ||||
83 | */ | ||||
84 | Q_SIGNAL void bgcolorChanged(); | ||||
79 | 85 | | |||
80 | /** | 86 | /** | ||
81 | * @return a QList of all the pages stored currently. | 87 | * @return a QList of all the pages stored currently. | ||
Context not available. | |||||
86 | * @param index - the index of the page. | 92 | * @param index - the index of the page. | ||
87 | * @return the page object at the given index. | 93 | * @return the page object at the given index. | ||
88 | */ | 94 | */ | ||
89 | Page* page(int index) const; | 95 | Q_INVOKABLE Page* page(int index) const; | ||
90 | 96 | | |||
91 | /** | 97 | /** | ||
92 | * @param page - The page for which to return the index. | 98 | * @param page - The page for which to return the index. | ||
Context not available. | |||||
101 | * \brief remove the given page object from this body. | 107 | * \brief remove the given page object from this body. | ||
102 | * @param page - the page to remove. | 108 | * @param page - the page to remove. | ||
103 | */ | 109 | */ | ||
104 | void removePage(Page* page); | 110 | void removePage(Page* page); | ||
105 | | ||||
106 | /** | 111 | /** | ||
107 | * \brief Swap two pages in the list. | 112 | * \brief Swap two pages in the list. | ||
108 | * @param swapThis - the first page to swap. | 113 | * @param swapThis - the first page to swap. | ||
109 | * @param withThis - the second page to swap. | 114 | * @param withThis - the second page to swap. | ||
110 | */ | 115 | */ | ||
111 | bool swapPages(Page* swapThis, Page* withThis); | 116 | bool swapPages(Page* swapThis, Page* withThis); | ||
117 | /** | ||||
118 | * @brief pageCount | ||||
119 | * @return | ||||
120 | */ | ||||
121 | int pageCount(); | ||||
122 | /** | ||||
123 | * @brief pageCountChanged | ||||
124 | */ | ||||
125 | Q_SIGNAL void pageCountChanged(); | ||||
112 | 126 | | |||
113 | private: | 127 | private: | ||
114 | class Private; | 128 | class Private; | ||
Context not available. |