24 #ifndef DIGIKAM_DXML_GUI_WINDOW_H
25 #define DIGIKAM_DXML_GUI_WINDOW_H
36 #include <kxmlguiwindow.h>
41 #include "digikam_config.h"
89 static const QString s_configFullScreenHideToolBarsEntry(QLatin1String(
"FullScreen Hide ToolBars"));
90 static const QString s_configFullScreenHideThumbBarEntry(QLatin1String(
"FullScreen Hide ThumbBar"));
91 static const QString s_configFullScreenHideSideBarsEntry(QLatin1String(
"FullScreen Hide SideBars"));
92 static const QString s_configFullScreenHideStatusBarEntry(QLatin1String(
"FullScreen Hide StatusBar"));
103 explicit DXmlGuiWindow(QWidget*
const parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
109 void setConfigGroupName(
const QString& name);
110 QString configGroupName()
const;
115 void createSettingsActions();
120 void createHelpActions(
bool coreOptions =
true);
125 void cleanupActions();
130 void createSidebarActions();
135 void setFullScreenOptions(
int options);
142 void createFullScreenAction(
const QString& name);
147 void readFullScreenSettings(
const KConfigGroup& group);
152 bool fullScreenIsActive()
const;
165 void registerPluginsActions();
175 static void openHandbook();
176 static void restoreWindowSize(QWindow*
const win,
const KConfigGroup& group);
177 static void saveWindowSize(QWindow*
const win, KConfigGroup& group);
180 const QObject*
const recvr,
181 const char*
const slot,
182 QObject*
const parent);
187 static void setupIconTheme();
195 QAction* showMenuBarAction()
const;
196 QAction* showStatusBarAction()
const;
203 void editKeyboardShortcuts(KActionCollection*
const extraac =
nullptr,
const QString& actitle = QString());
205 void closeEvent(QCloseEvent* e)
override;
206 void keyPressEvent(QKeyEvent* e)
override;
207 bool eventFilter(QObject* obj, QEvent* ev)
override;
213 virtual void showSideBars(
bool visible);
219 virtual void showThumbBar(
bool visible);
225 virtual void customizedFullScreenMode(
bool set);
230 virtual bool thumbbarVisibility()
const;
238 void slotToggleFullScreen(
bool);
239 void slotShowMenuBar();
240 void slotShowStatusBar();
241 void slotConfNotifications();
242 void slotConfToolbars();
243 void slotNewToolbarConfig();
245 void slotRawCameraList();
246 void slotSolidHardwareList();
247 void slotDonateMoney();
248 void slotRecipesBook();
249 void slotContribute();
250 void slotHelpContents();
255 virtual void slotOnlineVersionCheck() {};
256 virtual void slotComponentsInfo() {};
257 virtual void slotDBStat() {};
262 virtual void slotToggleLeftSideBar() {};
263 virtual void slotToggleRightSideBar() {};
264 virtual void slotPreviousLeftSideBarTab() {};
265 virtual void slotNextLeftSideBarTab() {};
266 virtual void slotPreviousRightSideBarTab() {};
267 virtual void slotNextRightSideBarTab() {};
272 virtual void slotEditKeys() { editKeyboardShortcuts(); };
273 virtual void slotSetup() = 0;
280 void showToolBars(
bool visible);
285 KToolBar* mainToolBar()
const;
290 void checkFullScreenBeforeClosing();
Definition: dinfointerface.h:56
Definition: dlogoaction.h:39
Definition: dpluginaction.h:40
Definition: dxmlguiwindow.h:98
virtual void registerExtraPluginsActions(QString &)
Definition: dxmlguiwindow.h:166
virtual DInfoInterface * infoIface(DPluginAction *const ac)=0
DLogoAction * m_animLogo
Definition: dxmlguiwindow.h:191
Definition: datefolderview.cpp:43
FullScreenOptions
Definition: dxmlguiwindow.h:59
@ FS_NONE
No full-screen options.
Definition: dxmlguiwindow.h:64
@ FS_EDITOR
Image Editor Config.
Definition: dxmlguiwindow.h:67
@ FS_THUMBBAR
Manage Thumb bar in full-screen mode.
Definition: dxmlguiwindow.h:61
@ FS_SIDEBARS
Manage Side bars in full-screen mode.
Definition: dxmlguiwindow.h:62
@ FS_IMPORTUI
Import UI Config.
Definition: dxmlguiwindow.h:69
@ FS_ALBUMGUI
Album GUI Config.
Definition: dxmlguiwindow.h:66
@ FS_STATUSBAR
Manage Status bar in full-screen mode.
Definition: dxmlguiwindow.h:63
@ FS_TOOLBARS
Manage Tools bar in full-screen mode.
Definition: dxmlguiwindow.h:60
@ FS_LIGHTTABLE
Light Table Config.
Definition: dxmlguiwindow.h:68
StdActionType
Definition: dxmlguiwindow.h:73
@ StdCloseAction
Definition: dxmlguiwindow.h:78
@ StdQuitAction
Definition: dxmlguiwindow.h:77
@ StdCopyAction
Definition: dxmlguiwindow.h:74
@ StdZoomInAction
Definition: dxmlguiwindow.h:79
@ StdRevertAction
Definition: dxmlguiwindow.h:84
@ StdCutAction
Definition: dxmlguiwindow.h:76
@ StdForwardAction
Definition: dxmlguiwindow.h:86
@ StdSaveAction
Definition: dxmlguiwindow.h:82
@ StdOpenAction
Definition: dxmlguiwindow.h:81
@ StdSaveAsAction
Definition: dxmlguiwindow.h:83
@ StdBackAction
Definition: dxmlguiwindow.h:85
@ StdZoomOutAction
Definition: dxmlguiwindow.h:80
@ StdPasteAction
Definition: dxmlguiwindow.h:75