|
Krita Source Code Documentation
|
A widget for displaying if no documents are open. This will display in the MDI area. More...
#include <KisWelcomePageWidget.h>
Inheritance diagram for KisWelcomePageWidget:Public Slots | |
| void | showDropAreaIndicator (bool show) |
| void | slotUpdateThemeColors () |
Public Member Functions | |
| KisWelcomePageWidget (QWidget *parent) | |
| void | setMainWindow (KisMainWindow *m_mainWindow) |
| ~KisWelcomePageWidget () override | |
Protected Member Functions | |
| void | changeEvent (QEvent *event) override |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dragLeaveEvent (QDragLeaveEvent *event) override |
| void | dragMoveEvent (QDragMoveEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
| bool | eventFilter (QObject *watched, QEvent *event) override |
Private Slots | |
| bool | isDevelopmentBuild () |
| QFont | largerFont () |
| void | recentDocumentClicked (QModelIndex index) |
| void | slotNewFileClicked () |
| void | slotOpenFileClicked () |
| void | slotRecentDocContextMenuRequest (const QPoint &pos) |
| void | slotRecentFilesModelIsUpToDate () |
| void | slotScrollerStateChanged (QScroller::State state) |
Private Member Functions | |
| void | setupNewsLangSelection (QMenu *newsOptionMenu) |
| void | showDevVersionHighlight () |
Private Attributes | |
| const QString | analyticsString = "pk_campaign=startup-sceen&pk_kwd=" |
| QColor | backgroundColor |
| QColor | blendedColor |
| QString | blendedStyle |
| KisMainWindow * | m_mainWindow {nullptr} |
| bool | m_networkIsAllowed {false} |
| QScopedPointer< RecentItemDelegate > | recentItemDelegate |
| QColor | textColor |
A widget for displaying if no documents are open. This will display in the MDI area.
Definition at line 37 of file KisWelcomePageWidget.h.
|
explicit |
Definition at line 116 of file KisWelcomePageWidget.cpp.
References connect(), KisKineticScroller::createPreconfiguredScroller(), KisRecentDocumentsModelWrapper::ICON_SIZE_LENGTH, KisWindowsPackageUtils::isRunningInPackage(), largerFont(), KisIconUtils::loadIcon(), KisUsageLogger::log(), m_networkIsAllowed, KisConfig::readEntry(), setupNewsLangSelection(), slotRecentDocContextMenuRequest(), and slotScrollerStateChanged().
|
override |
Definition at line 243 of file KisWelcomePageWidget.cpp.
|
overrideprotected |
Definition at line 475 of file KisWelcomePageWidget.cpp.
References largerFont().
|
overrideprotected |
Definition at line 413 of file KisWelcomePageWidget.cpp.
References showDropAreaIndicator().
|
overrideprotected |
Definition at line 469 of file KisWelcomePageWidget.cpp.
References KisMainWindow::dragLeave(), m_mainWindow, and showDropAreaIndicator().
|
overrideprotected |
Definition at line 456 of file KisWelcomePageWidget.cpp.
References KisMainWindow::dragMoveEvent(), and m_mainWindow.
|
overrideprotected |
Definition at line 425 of file KisWelcomePageWidget.cpp.
References KisRemoteFileFetcher::fetchFile(), KisMainWindow::installBundle(), m_mainWindow, KisMainWindow::None, KisMainWindow::openDocument(), and showDropAreaIndicator().
|
overrideprotected |
Definition at line 483 of file KisWelcomePageWidget.cpp.
|
privateslot |
Definition at line 642 of file KisWelcomePageWidget.cpp.
References KritaVersionWrapper::isDevelopersBuild().
|
privateslot |
Definition at line 811 of file KisWelcomePageWidget.cpp.
|
privateslot |
Definition at line 620 of file KisWelcomePageWidget.cpp.
References m_mainWindow, KisMainWindow::None, and KisMainWindow::openDocument().
| void KisWelcomePageWidget::setMainWindow | ( | KisMainWindow * | m_mainWindow | ) |
Definition at line 247 of file KisWelcomePageWidget.cpp.
References KisActionManager::actionByName(), KisViewManager::actionManager(), analyticsString, connect(), KisRecentDocumentsModelWrapper::instance(), m_mainWindow, KisRecentDocumentsModelWrapper::model(), recentDocumentClicked(), slotNewFileClicked(), slotOpenFileClicked(), slotRecentFilesModelIsUpToDate(), slotUpdateThemeColors(), and KisMainWindow::viewManager.
|
private |
Definition at line 518 of file KisWelcomePageWidget.cpp.
References connect(), KisConfig::readList(), and KisConfig::writeList().
|
private |
Definition at line 601 of file KisWelcomePageWidget.cpp.
References analyticsString, blendedColor, and isDevelopmentBuild().
|
slot |
if a document is placed over this area, a dotted line will appear as an indicator that it is a droppable area. KisMainwindow is what triggers this
Definition at line 281 of file KisWelcomePageWidget.cpp.
References backgroundColor, KisPaintingTweaks::blendColors(), blendedColor, and textColor.
|
privateslot |
Definition at line 647 of file KisWelcomePageWidget.cpp.
References m_mainWindow, and KisMainWindow::slotFileNew().
|
privateslot |
Definition at line 652 of file KisWelcomePageWidget.cpp.
References m_mainWindow, and KisMainWindow::slotFileOpen().
|
privateslot |
Definition at line 626 of file KisWelcomePageWidget.cpp.
References m_mainWindow, and KisMainWindow::removeRecentFile().
|
privateslot |
Once all files in the recent documents model are checked, cleanup the UI if the model is empty
Definition at line 657 of file KisWelcomePageWidget.cpp.
References KisRecentDocumentsModelWrapper::instance(), and KisRecentDocumentsModelWrapper::model().
|
inlineprivateslot |
Definition at line 71 of file KisWelcomePageWidget.h.
References KisKineticScroller::updateCursor().
|
slot |
Definition at line 297 of file KisWelcomePageWidget.cpp.
References analyticsString, backgroundColor, KisPaintingTweaks::blendColors(), blendedColor, blendedStyle, KisIconUtils::loadIcon(), showDevVersionHighlight(), showDropAreaIndicator(), and textColor.
|
private |
help us see how many people are clicking startup screen links you can see the results in Matomo (stats.kde.org) this will be listed in the "Acquisition" section of Matomo just append some text to this to associate it with an event/page
Definition at line 116 of file KisWelcomePageWidget.h.
|
private |
Definition at line 121 of file KisWelcomePageWidget.h.
|
private |
Definition at line 122 of file KisWelcomePageWidget.h.
|
private |
Definition at line 123 of file KisWelcomePageWidget.h.
|
private |
Definition at line 110 of file KisWelcomePageWidget.h.
|
private |
Definition at line 129 of file KisWelcomePageWidget.h.
|
private |
Definition at line 131 of file KisWelcomePageWidget.h.
|
private |
Definition at line 120 of file KisWelcomePageWidget.h.