digiKam
|
Classes | |
class | Private |
Public Member Functions | |
QList< QAction * > | allActions () const |
void | cleanupActions () |
QString | configGroupName () const |
void | createFullScreenAction (const QString &name) |
void | createHelpActions (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) |
~DXmlGuiWindow () override | |
Static Public Member Functions | |
static QAction * | buildStdAction (StdActionType type, const QObject *const recvr, const char *const slot, QObject *const parent) |
static void | openHandbook () |
static void | restoreWindowSize (QWindow *const win, const KConfigGroup &group) |
static void | saveWindowSize (QWindow *const win, KConfigGroup &group) |
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 |
Data container to use in managed 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 |
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 | ( | 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::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::QueueMgrWindow, Digikam::ImportUI, Digikam::LightTableWindow, Digikam::ImageWindow, ShowFoto::Showfoto, and Digikam::DigikamApp.
Referenced by Digikam::DPluginEditor::infoIface(), and Digikam::DPluginGeneric::infoIface().
|
overrideprotected |
References Digikam::DXmlGuiWindow::Private::fullScreenAction, and fullScreenIsActive().
|
static |
void Digikam::DXmlGuiWindow::readFullScreenSettings | ( | const KConfigGroup & | group | ) |
Read full-screen settings from KDE config file.
References 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 |
|
static |
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 |
If we have some local breeze icon resource, prefer it.
|
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.
|
protected |