36
37
class ContextManager;
37
38
class MessageBubble;
39
class MainWindow : public KXmlGuiWindow {
40
class MainWindow : public KXmlGuiWindow
45
* Defines the url to display when the window is shown for the first time.
47
void setInitialUrl(const KUrl&);
49
void startSlideShow();
51
DocumentPanel* documentPanel() const;
53
ContextManager* contextManager() const;
55
bool currentDocumentIsRasterImage() const;
57
void setDistractionFreeMode(bool);
59
void showMessageBubble(MessageBubble*);
47
* Defines the url to display when the window is shown for the first time.
49
void setInitialUrl(const KUrl&);
51
void startSlideShow();
53
ViewMainPage* documentPanel() const;
55
ContextManager* contextManager() const;
57
bool currentDocumentIsRasterImage() const;
59
void setDistractionFreeMode(bool);
61
void showMessageBubble(MessageBubble*);
64
void showStartMainPage();
65
* Go to url, without changing current mode
67
void goToUrl(const KUrl&);
67
* Go to url, without changing current mode
69
void goToUrl(const KUrl&);
70
void viewModeChanged();
72
void viewModeChanged();
73
virtual void setCaption(const QString&);
75
virtual void setCaption(const QString&);
75
virtual void setCaption(const QString&, bool modified);
77
virtual void setCaption(const QString&, bool modified);
78
virtual bool queryClose();
79
virtual bool queryExit();
80
virtual QSize sizeHint() const;
81
virtual void showEvent(QShowEvent*);
82
virtual void resizeEvent(QResizeEvent*);
83
virtual void saveProperties(KConfigGroup&);
84
virtual void readProperties(const KConfigGroup&);
80
virtual bool queryClose();
81
virtual bool queryExit();
82
virtual QSize sizeHint() const;
83
virtual void showEvent(QShowEvent*);
84
virtual void resizeEvent(QResizeEvent*);
85
virtual void saveProperties(KConfigGroup&);
86
virtual void readProperties(const KConfigGroup&);
87
void setActiveViewModeAction(QAction* action);
88
void openDirUrl(const KUrl&);
89
void slotThumbnailViewIndexActivated(const QModelIndex&);
91
void slotStartPageUrlSelected(const KUrl&);
94
void toggleSideBar(bool visible);
95
void updateToggleSideBarAction();
96
void slotModifiedDocumentListChanged();
99
* Init all the file list stuff. This should only be necessary when
100
* Gwenview is started with an image as a parameter (in this case we load
101
* the image before looking at the content of the image folder)
103
void slotPartCompleted();
106
* If an image is loaded but there is no item selected for it in the file
107
* view, this function will select the corresponding item if it comes up in
110
void slotDirModelNewItems();
113
* If no image is selected, select the first one available.
115
void slotDirListerCompleted();
117
void slotSelectionChanged();
123
void updatePreviousNextActions();
125
void reduceLevelOfDetails();
126
void toggleFullScreen(bool);
127
void toggleSlideShow();
128
void updateSlideShowAction();
131
void saveCurrentAs();
135
void showDocumentInFullScreen(const KUrl&);
137
void showConfigDialog();
141
void preloadNextUrl();
143
void toggleMenuBar();
89
void setActiveViewModeAction(QAction* action);
90
void openDirUrl(const KUrl&);
91
void slotThumbnailViewIndexActivated(const QModelIndex&);
93
void slotStartMainPageUrlSelected(const KUrl&);
96
void toggleSideBar(bool visible);
97
void updateToggleSideBarAction();
98
void slotModifiedDocumentListChanged();
101
* Init all the file list stuff. This should only be necessary when
102
* Gwenview is started with an image as a parameter (in this case we load
103
* the image before looking at the content of the image folder)
105
void slotPartCompleted();
108
* If an image is loaded but there is no item selected for it in the file
109
* view, this function will select the corresponding item if it comes up in
112
void slotDirModelNewItems();
115
* If no image is selected, select the first one available.
117
void slotDirListerCompleted();
119
void slotSelectionChanged();
125
void updatePreviousNextActions();
127
void reduceLevelOfDetails();
128
void toggleFullScreen(bool);
129
void toggleSlideShow();
130
void updateSlideShowAction();
133
void saveCurrentAs();
137
void showDocumentInFullScreen(const KUrl&);
139
void showConfigDialog();
143
void preloadNextUrl();
145
void toggleMenuBar();
147
MainWindow::Private* const d;
149
MainWindow::Private* const d;
149
void openSelectedDocuments();
151
void openSelectedDocuments();