2
Gwenview - A simple image viewer for KDE
3
Copyright (C) 2000-2002 Aur�lien G�teau
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
as published by the Free Software Foundation; either version 2
8
of the License, or (at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
#include <kdockwidget.h>
34
class StatusBarProgress;
37
class MainWindow : public KDockMainWindow {
43
FileView* fileView() const { return mFileView; }
44
PixmapView* pixmapView() const { return mPixmapView; }
47
void setPath(QString);
48
void setFilename(QString);
51
KDockWidget* mFolderDock;
52
KDockWidget* mFileDock;
53
KDockWidget* mPixmapDock;
54
StatusBarProgress* mProgress;
58
PixmapView* mPixmapView;
61
QString mFolder,mFilename;
69
KAction* mOpenWithEditor;
70
KAction* mShowConfigDialog;
71
KAction* mShowKeyDialog;
72
KAction* mToggleFullScreen;
81
void createFileViewPopupMenu();
82
void createScrollPixmapViewPopupMenu();
86
void toggleFullScreen();
87
void showConfigDialog();
91
void openWithEditor();
95
* Update both folder and file status bar
97
void updateStatusBar();
100
* Update only file status bar, allows setting file info
101
* when folder info is not available yet
103
void updateFileStatusBar();
105
void thumbnailUpdateStarted(int);
106
void thumbnailUpdateEnded();
107
void thumbnailUpdateProcessedOne();
110
* Allow quitting full screen mode by pressing Escape key.
112
void escapePressed();