![]() |
digiKam
|
#include <dxmlguiwindow.h>
Classes | |
class | Private |
Public Member Functions | |
QList< QAction * > | allActions () const |
void | cleanupActions () |
QString | configGroupName () const |
void | createFullScreenAction (const QString &name) |
void | createHelpActions (const QString &handbookSection, bool coreOptions=true) |
void | createSettingsActions () |
void | createSidebarActions () |
DXmlGuiWindow (QWidget *const parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) | |
bool | fullScreenIsActive () const |
virtual DInfoInterface * | infoIface (DPluginAction *const ac)=0 |
void | readFullScreenSettings (const KConfigGroup &group) |
virtual void | registerExtraPluginsActions (QString &) |
void | registerPluginsActions () |
void | setConfigGroupName (const QString &name) |
void | setFullScreenOptions (int options) |
void | unminimizeAndActivateWindow () |
~DXmlGuiWindow () override | |
Static Public Member Functions | |
static QAction * | buildStdAction (StdActionType type, const QObject *const recvr, const char *const slot, QObject *const parent) |
static QString | configFullScreenHideSideBarsEntry () |
static QString | configFullScreenHideStatusBarEntry () |
static QString | configFullScreenHideThumbBarEntry () |
static QString | configFullScreenHideToolBarsEntry () |
static void | restoreWindowSize (QWindow *const win, const KConfigGroup &group) |
static void | saveWindowSize (QWindow *const win, KConfigGroup &group) |
static void | setGoodDefaultWindowSize (QWindow *const win) |
static void | setupIconTheme () |
Protected Slots | |
bool | slotClose () |
Protected Member Functions | |
void | closeEvent (QCloseEvent *e) override |
virtual void | customizedFullScreenMode (bool set) |
void | editKeyboardShortcuts (KActionCollection *const extraac=nullptr, const QString &actitle=QString()) |
bool | eventFilter (QObject *obj, QEvent *ev) override |
void | keyPressEvent (QKeyEvent *e) override |
QAction * | showMenuBarAction () const |
virtual void | showSideBars (bool visible) |
QAction * | showStatusBarAction () const |
virtual void | showThumbBar (bool visible) |
virtual bool | thumbbarVisibility () const |
Protected Attributes | |
DLogoAction * | m_animLogo = nullptr |
Generic class to use with all main window.
|
explicit |
References m_animLogo.
|
override |
QList< QAction * > Digikam::DXmlGuiWindow::allActions | ( | ) | const |
Return all actions from internal collection.
|
static |
References Digikam::StdBackAction, Digikam::StdCloseAction, Digikam::StdCopyAction, Digikam::StdCutAction, Digikam::StdForwardAction, Digikam::StdOpenAction, Digikam::StdPasteAction, Digikam::StdQuitAction, Digikam::StdRevertAction, Digikam::StdSaveAction, Digikam::StdSaveAsAction, Digikam::StdZoomInAction, and Digikam::StdZoomOutAction.
Referenced by Digikam::ContextMenuHelper::addStandardActionCopy(), Digikam::ContextMenuHelper::addStandardActionCut(), Digikam::ContextMenuHelper::addStandardActionPaste(), and Digikam::EditorWindow::setupStandardActions().
void Digikam::DXmlGuiWindow::cleanupActions | ( | ) |
Cleanup unwanted actions from action collection.
Referenced by ShowFoto::Showfoto::Showfoto().
|
overrideprotected |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Shared with FullScreenSettings.
Referenced by readFullScreenSettings(), Digikam::FullScreenSettings::readSettings(), and Digikam::FullScreenSettings::saveSettings().
QString Digikam::DXmlGuiWindow::configGroupName | ( | ) | const |
References Digikam::DXmlGuiWindow::Private::configGroupName.
Referenced by Digikam::EditorWindow::applyIOSettings(), Digikam::LightTableWindow::applySettings(), Digikam::QueueMgrWindow::applySettings(), Digikam::EditorWindow::applyStandardSettings(), Digikam::ImageWindow::closeEvent(), Digikam::DigikamApp::DigikamApp(), Digikam::ImportUI::ImportUI(), Digikam::EditorWindow::readStandardSettings(), Digikam::EditorWindow::saveStandardSettings(), and ShowFoto::Showfoto::Showfoto().
void Digikam::DXmlGuiWindow::createFullScreenAction | ( | const QString & | name | ) |
Create Full-screen action to action collection instance from managed window set through setManagedWindow(). This action is connected to slotToggleFullScreen() slot. 'name' is action name used in KDE UI rc file.
References Digikam::DXmlGuiWindow::Private::fullScreenAction, and Digikam::DXmlGuiWindow::Private::fullScreenBtn.
Referenced by Digikam::EditorWindow::setupStandardActions().
void Digikam::DXmlGuiWindow::createHelpActions | ( | const QString & | handbookSection, |
bool | coreOptions = true |
||
) |
Create common actions from Help menu for all digiKam main windows.
References Digikam::DXmlGuiWindow::Private::about, Digikam::DXmlGuiWindow::Private::dbStatAction, Digikam::DXmlGuiWindow::Private::handbookSection, Digikam::DXmlGuiWindow::Private::libsInfoAction, and m_animLogo.
void Digikam::DXmlGuiWindow::createSettingsActions | ( | ) |
Create common actions to setup all digiKam main windows.
References Digikam::DXmlGuiWindow::Private::showMenuBarAction, and Digikam::DXmlGuiWindow::Private::showStatusBarAction.
Referenced by Digikam::EditorWindow::setupStandardActions().
void Digikam::DXmlGuiWindow::createSidebarActions | ( | ) |
Create common actions to handle side-bar through keyboard shortcuts.
Referenced by Digikam::EditorWindow::setupStandardActions().
|
protectedvirtual |
Re-implement this method if you want to manage customized view visibility in full-screen mode. This method is called by switchWindowToFullScreen(). By default this method do nothing.
|
protected |
Call this method from your main window to show keyboard shortcut config dialog with an extra action collection to configure. This method is called by slotEditKeys() which can be re-implement in child class for cutomization.
|
overrideprotected |
bool Digikam::DXmlGuiWindow::fullScreenIsActive | ( | ) | const |
Return true if managed window is currently in Full Screen Mode.
References Digikam::DXmlGuiWindow::Private::fullScreenAction.
Referenced by eventFilter(), and keyPressEvent().
|
pure virtual |
Return the interface instance to access to items information.
Implemented in Digikam::DigikamApp, ShowFoto::Showfoto, Digikam::ImageWindow, Digikam::LightTableWindow, Digikam::ImportUI, and Digikam::QueueMgrWindow.
Referenced by Digikam::DPluginEditor::infoIface(), and Digikam::DPluginGeneric::infoIface().
|
overrideprotected |
References Digikam::DXmlGuiWindow::Private::fullScreenAction, and fullScreenIsActive().
void Digikam::DXmlGuiWindow::readFullScreenSettings | ( | const KConfigGroup & | group | ) |
Read full-screen settings from KDE config file.
References configFullScreenHideSideBarsEntry(), configFullScreenHideStatusBarEntry(), configFullScreenHideThumbBarEntry(), configFullScreenHideToolBarsEntry(), Digikam::FS_SIDEBARS, Digikam::FS_STATUSBAR, Digikam::FS_THUMBBAR, Digikam::FS_TOOLBARS, Digikam::DXmlGuiWindow::Private::fsOptions, Digikam::DXmlGuiWindow::Private::fullScreenHideSideBars, Digikam::DXmlGuiWindow::Private::fullScreenHideStatusBar, Digikam::DXmlGuiWindow::Private::fullScreenHideThumbBar, and Digikam::DXmlGuiWindow::Private::fullScreenHideToolBars.
Referenced by Digikam::LightTableWindow::applySettings(), Digikam::QueueMgrWindow::applySettings(), Digikam::EditorWindow::applyStandardSettings(), Digikam::DigikamApp::DigikamApp(), and Digikam::EditorWindow::readStandardSettings().
|
inlinevirtual |
Reimplemented in Digikam::EditorWindow.
Referenced by registerPluginsActions().
void Digikam::DXmlGuiWindow::registerPluginsActions | ( | ) |
Register all generic plugins action to this instance. Call registerExtraPluginsActions() to plug other kind of plugins in GUI.
References Digikam::DPluginAction::Generic, Digikam::DPluginAction::GenericExport, Digikam::DPluginAction::GenericImport, Digikam::DPluginAction::GenericMetadata, Digikam::DPluginAction::GenericTool, Digikam::DPluginAction::GenericView, Digikam::DPluginLoader::instance(), Digikam::DPluginLoader::pluginsActions(), Digikam::DPluginLoader::pluginXmlSections(), registerExtraPluginsActions(), and Digikam::DPluginLoader::registerGenericPlugins().
Referenced by ShowFoto::Showfoto::Showfoto().
|
static |
Referenced by Digikam::DWizardDlg::restoreDialogSize(), Digikam::AlbumSelectDialog::showEvent(), Digikam::DConfigDlg::showEvent(), Digikam::DeleteDialog::showEvent(), Digikam::WebBrowserDlg::showEvent(), Digikam::DPluginDialog::showEvent(), ShowFoto::ShowfotoStackViewFavoriteItemDlg::showEvent(), Digikam::BookmarksDialog::showEvent(), Digikam::CaptureDlg::showEvent(), and Digikam::TagsManager::showEvent().
|
static |
Referenced by Digikam::WebBrowserDlg::closeEvent(), Digikam::CaptureDlg::closeEvent(), Digikam::DWizardDlg::saveDialogSize(), Digikam::AlbumSelectDialog::~AlbumSelectDialog(), Digikam::DConfigDlg::~DConfigDlg(), Digikam::DeleteDialog::~DeleteDialog(), Digikam::DPluginDialog::~DPluginDialog(), ShowFoto::ShowfotoStackViewFavoriteItemDlg::~ShowfotoStackViewFavoriteItemDlg(), and Digikam::TagsManager::~TagsManager().
void Digikam::DXmlGuiWindow::setConfigGroupName | ( | const QString & | name | ) |
Manage config group name used by window instance to get/set settings from config file
References Digikam::DXmlGuiWindow::Private::configGroupName.
Referenced by Digikam::DigikamApp::DigikamApp(), Digikam::EditorWindow::EditorWindow(), and Digikam::ImportUI::ImportUI().
void Digikam::DXmlGuiWindow::setFullScreenOptions | ( | int | options | ) |
Set full-screen options to managed window
References Digikam::DXmlGuiWindow::Private::fsOptions.
Referenced by Digikam::DigikamApp::DigikamApp(), Digikam::EditorWindow::EditorWindow(), and Digikam::ImportUI::ImportUI().
|
static |
|
static |
If we have some local breeze icon resource, prefer it.
Referenced by MAIN_FN().
|
protected |
|
protectedvirtual |
Re-implement this method if you want to manage sidebars visibility in full-screen mode. By default this method do nothing.
|
protected |
|
protectedvirtual |
Re-implement this method if you want to manage thumbbar visibility in full-screen mode. By default this method do nothing.
|
protectedslot |
Referenced by Digikam::EditorWindow::setupStandardActions().
|
protectedvirtual |
Re-implement this method if managed window has a thumbbar. This must return visibility state of it.
void Digikam::DXmlGuiWindow::unminimizeAndActivateWindow | ( | ) |
|
protected |