You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
613 B
39 lines
613 B
#pragma once |
|
|
|
/* |
|
* SPDX-FileCopyrightText: 2003-2007 Craig Drummond <craig@kde.org> |
|
* SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#include <KParts/MainWindow> |
|
#include <KParts/ReadOnlyPart> |
|
|
|
class QAction; |
|
class QUrl; |
|
|
|
namespace KFI |
|
{ |
|
class CViewer : public KParts::MainWindow |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
CViewer(); |
|
~CViewer() override |
|
{ |
|
} |
|
void showUrl(const QUrl &url); |
|
|
|
public Q_SLOTS: |
|
|
|
void fileOpen(); |
|
void configureKeys(); |
|
void enableAction(const char *name, bool enable); |
|
|
|
private: |
|
KParts::ReadOnlyPart *m_preview; |
|
QAction *m_printAct; |
|
QAction *m_openAct; |
|
}; |
|
|
|
}
|
|
|