2
Gwenview: an image viewer
3
Copyright 2007 Aurélien Gâteau <agateau@kde.org>
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef DOCUMENTPANEL_H
21
#define DOCUMENTPANEL_H
24
#include <lib/document/document.h>
34
class KActionCollection;
41
class ThumbnailBarView;
43
struct DocumentPanelPrivate;
46
* Holds the active document view and associated widgetry.
48
class DocumentPanel : public QWidget {
51
static const int MaxViewCount;
53
DocumentPanel(QWidget* parent, SlideShow*, KActionCollection*);
56
ThumbnailBarView* thumbnailBar() const;
67
void setFullScreenMode(bool fullScreen);
69
bool isFullScreenMode() const;
71
void setNormalPalette(const QPalette&);
73
int statusBarHeight() const;
75
virtual QSize sizeHint() const;
78
* Returns the url of the current document, or an invalid url if unknown
82
void openUrl(const KUrl& url);
85
* Opens up to MaxViewCount urls, and set currentUrl as the current one
87
void openUrls(const KUrl::List& urls, const KUrl& currentUrl);
91
Document::Ptr currentDocument() const;
96
* Returns the image view, if the current adapter has one.
98
ImageView* imageView() const;
101
* Returns the document view
103
DocumentView* documentView() const;
108
* Emitted when the part has finished loading
112
void previousImageRequested();
114
void nextImageRequested();
116
void toggleFullScreenRequested();
118
void captionUpdateRequested(const QString&);
121
void setThumbnailBarVisibility(bool visible);
123
void showContextMenu();
125
void slotViewFocused(DocumentView*);
127
void trashView(Gwenview::DocumentView*);
128
void deselectView(DocumentView*);
131
friend struct DocumentPanelPrivate;
132
DocumentPanelPrivate* const d;
137
#endif /* DOCUMENTPANEL_H */