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.
78 lines
1.5 KiB
78 lines
1.5 KiB
#ifndef _KPDF_SHELL_H_ |
|
#define _KPDF_SHELL_H_ |
|
|
|
#ifdef HAVE_CONFIG_H |
|
#include <config.h> |
|
#endif |
|
|
|
#include <kapplication.h> |
|
#include <kparts/mainwindow.h> |
|
|
|
namespace KPDF |
|
{ |
|
|
|
/** |
|
* This is the application "Shell". It has a menubar, toolbar, and |
|
* statusbar but relies on the "Part" to do all the real work. |
|
* |
|
* @short Application Shell |
|
* @author Wilco Greven <greven@kde.org> |
|
* @version 0.1 |
|
*/ |
|
class Shell : public KParts::MainWindow |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
/** |
|
* Default Constructor |
|
*/ |
|
Shell(); |
|
|
|
/** |
|
* Default Destructor |
|
*/ |
|
virtual ~Shell(); |
|
|
|
protected: |
|
/** |
|
* This method is called when it is time for the app to save its |
|
* properties for session management purposes. |
|
*/ |
|
void saveProperties(KConfig*); |
|
|
|
/** |
|
* This method is called when this app is restored. The KConfig |
|
* object points to the session management config file that was saved |
|
* with @ref saveProperties |
|
*/ |
|
void readProperties(KConfig*); |
|
void readSettings(); |
|
void writeSettings(); |
|
|
|
private slots: |
|
void fileOpen(); |
|
void fileSaveAs(); |
|
|
|
void optionsConfigureKeys(); |
|
void optionsConfigureToolbars(); |
|
void slotQuit(); |
|
|
|
void applyNewToolbarConfig(); |
|
public slots: |
|
void openURL( const KURL & url ); |
|
|
|
private: |
|
void setupAccel(); |
|
void setupActions(); |
|
|
|
private: |
|
KParts::ReadOnlyPart* m_part; |
|
KRecentFilesAction* recent; |
|
}; |
|
|
|
} |
|
|
|
#endif |
|
|
|
// vim:ts=2:sw=2:tw=78:et
|
|
|