Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/KisMainWindow.cpp
Context not available. | |||||
253 | KisAction *toggleDockers {0}; | 253 | KisAction *toggleDockers {0}; | ||
---|---|---|---|---|---|
254 | KisAction *toggleDockerTitleBars {0}; | 254 | KisAction *toggleDockerTitleBars {0}; | ||
255 | KisAction *toggleDetachCanvas {0}; | 255 | KisAction *toggleDetachCanvas {0}; | ||
256 | KisAction *resetConfigurations {0}; | ||||
256 | KisAction *fullScreenMode {0}; | 257 | KisAction *fullScreenMode {0}; | ||
257 | KisAction *showSessionManager {0}; | 258 | KisAction *showSessionManager {0}; | ||
258 | 259 | | |||
Context not available. | |||||
2005 | } | 2006 | } | ||
2006 | } | 2007 | } | ||
2007 | 2008 | | |||
2009 | | ||||
2008 | void KisMainWindow::slotConfigureToolbars() | 2010 | void KisMainWindow::slotConfigureToolbars() | ||
2009 | { | 2011 | { | ||
2010 | saveWindowState(); | 2012 | saveWindowState(); | ||
Context not available. | |||||
2014 | applyToolBarLayout(); | 2016 | applyToolBarLayout(); | ||
2015 | } | 2017 | } | ||
2016 | 2018 | | |||
2019 | void KisMainWindow::slotResetConfigurations() | ||||
2020 | { | ||||
2021 | //KisApplication.askClearConfig(); | ||||
2022 | KisApplication *kisApp = static_cast<KisApplication*>(qApp); | ||||
2023 | kisApp->askClearConfig(); | ||||
2024 | } | ||||
2025 | | ||||
2017 | void KisMainWindow::slotNewToolbarConfig() | 2026 | void KisMainWindow::slotNewToolbarConfig() | ||
2018 | { | 2027 | { | ||
2019 | applyMainWindowSettings(d->windowStateConfig); | 2028 | applyMainWindowSettings(d->windowStateConfig); | ||
Context not available. | |||||
2708 | 2717 | | |||
2709 | d->importAnimation = actionManager->createAction("file_import_animation"); | 2718 | d->importAnimation = actionManager->createAction("file_import_animation"); | ||
2710 | connect(d->importAnimation, SIGNAL(triggered()), this, SLOT(importAnimation())); | 2719 | connect(d->importAnimation, SIGNAL(triggered()), this, SLOT(importAnimation())); | ||
2720 | | ||||
2711 | 2721 | | |||
2712 | d->closeAll = actionManager->createAction("file_close_all"); | 2722 | d->closeAll = actionManager->createAction("file_close_all"); | ||
2713 | connect(d->closeAll, SIGNAL(triggered()), this, SLOT(slotFileCloseAll())); | 2723 | connect(d->closeAll, SIGNAL(triggered()), this, SLOT(slotFileCloseAll())); | ||
Context not available. | |||||
2740 | d->toggleDockers->setChecked(true); | 2750 | d->toggleDockers->setChecked(true); | ||
2741 | connect(d->toggleDockers, SIGNAL(toggled(bool)), SLOT(toggleDockersVisibility(bool))); | 2751 | connect(d->toggleDockers, SIGNAL(toggled(bool)), SLOT(toggleDockersVisibility(bool))); | ||
2742 | 2752 | | |||
2753 | d->resetConfigurations = actionManager->createAction("reset_configurations"); | ||||
2754 | connect(d->resetConfigurations, SIGNAL(triggered()), this, SLOT(slotResetConfigurations())); | ||||
2755 | | ||||
2743 | d->toggleDetachCanvas = actionManager->createAction("view_detached_canvas"); | 2756 | d->toggleDetachCanvas = actionManager->createAction("view_detached_canvas"); | ||
2744 | d->toggleDetachCanvas->setChecked(false); | 2757 | d->toggleDetachCanvas->setChecked(false); | ||
2745 | connect(d->toggleDetachCanvas, SIGNAL(toggled(bool)), SLOT(setCanvasDetached(bool))); | 2758 | connect(d->toggleDetachCanvas, SIGNAL(toggled(bool)), SLOT(setCanvasDetached(bool))); | ||
Context not available. |