Changeset View
Changeset View
Standalone View
Standalone View
src/kjotswidget.h
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Line(s) | |||||
114 | protected: | 114 | protected: | ||
115 | QString renderSelectionToHtml(); | 115 | QString renderSelectionToHtml(); | ||
116 | QString renderSelectionToXml(); | 116 | QString renderSelectionToXml(); | ||
117 | QString renderSelectionToPlainText(); | 117 | QString renderSelectionToPlainText(); | ||
118 | QString getThemeFromUser(); | 118 | QString getThemeFromUser(); | ||
119 | 119 | | |||
120 | void selectNext(int role, int step); | 120 | void selectNext(int role, int step); | ||
121 | int search(bool); | 121 | int search(bool); | ||
122 | | ||||
123 | std::unique_ptr<QPrinter> setupPrinter(QPrinter::PrinterMode mode = QPrinter::ScreenResolution); | ||||
122 | protected Q_SLOTS: | 124 | protected Q_SLOTS: | ||
123 | void renderSelection(); | 125 | void renderSelection(); | ||
124 | void changeTheme(); | 126 | void changeTheme(); | ||
125 | void exportSelectionToHtml(); | 127 | void exportSelectionToHtml(); | ||
126 | void exportSelectionToPlainText(); | 128 | void exportSelectionToPlainText(); | ||
127 | void exportSelectionToXml(); | 129 | void exportSelectionToXml(); | ||
128 | void printSelection(); | 130 | void printSelection(); | ||
129 | void printPreviewSelection(); | 131 | void printPreviewSelection(); | ||
Show All 35 Lines | 137 | private Q_SLOTS: | |||
165 | 167 | | |||
166 | void saveState(); | 168 | void saveState(); | ||
167 | void restoreState(); | 169 | void restoreState(); | ||
168 | 170 | | |||
169 | void currentCharFormatChanged(const QTextCharFormat &); | 171 | void currentCharFormatChanged(const QTextCharFormat &); | ||
170 | 172 | | |||
171 | void updateConfiguration(); | 173 | void updateConfiguration(); | ||
172 | 174 | | |||
175 | void print(QPrinter *printer); | ||||
176 | | ||||
173 | private: | 177 | private: | ||
174 | void print(QPrinter &printer); | | |||
175 | KXMLGUIClient *m_xmlGuiClient; | 178 | KXMLGUIClient *m_xmlGuiClient; | ||
176 | KJotsEdit *editor; | 179 | KJotsEdit *editor; | ||
177 | KJotsBrowser *browser; | 180 | KJotsBrowser *browser; | ||
178 | QStackedWidget *stackedWidget; | 181 | QStackedWidget *stackedWidget; | ||
179 | KActionMenu *bookmarkMenu; | 182 | KActionMenu *bookmarkMenu; | ||
180 | Akonadi::EntityTreeModel *m_kjotsModel; | 183 | Akonadi::EntityTreeModel *m_kjotsModel; | ||
181 | KSelectionProxyModel *selProxy; | 184 | KSelectionProxyModel *selProxy; | ||
182 | KJotsSortProxyModel *m_sortProxyModel; | 185 | KJotsSortProxyModel *m_sortProxyModel; | ||
Show All 25 Lines |