move the GUI stuff out of Generator in an own GuiInterface, and adapt the ghostscript generator to its usage; renamed also some methods to more Qt4-ish names.
svn path=/trunk/playground/graphics/okular/; revision=619044remotes/origin/KDE/4.0
parent
1633d45c4a
commit
d9a844d67c
8 changed files with 81 additions and 38 deletions
@ -0,0 +1,42 @@ |
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2007 by Pino Toscano <pino@kde.org> * |
||||||
|
* * |
||||||
|
* This program is free software; you can redistribute it and/or modify * |
||||||
|
* it under the terms of the GNU General Public License as published by * |
||||||
|
* the Free Software Foundation; either version 2 of the License, or * |
||||||
|
* (at your option) any later version. * |
||||||
|
***************************************************************************/ |
||||||
|
|
||||||
|
#ifndef _OKULAR_GUIINTERFACE_H_ |
||||||
|
#define _OKULAR_GUIINTERFACE_H_ |
||||||
|
|
||||||
|
#include "okular_export.h" |
||||||
|
|
||||||
|
class QToolBox; |
||||||
|
class KActionCollection; |
||||||
|
|
||||||
|
namespace Okular { |
||||||
|
|
||||||
|
/**
|
||||||
|
* @short Abstract interface for user interface control |
||||||
|
* |
||||||
|
* This interface defines an way to interact with the Okular user interface, |
||||||
|
* eg adding actions in the menus. |
||||||
|
*/ |
||||||
|
class OKULAR_EXPORT GuiInterface |
||||||
|
{ |
||||||
|
public: |
||||||
|
virtual ~GuiInterface() {} |
||||||
|
|
||||||
|
virtual QString xmlFile() const = 0; |
||||||
|
|
||||||
|
virtual void setupGui( KActionCollection *, QToolBox * ) = 0; |
||||||
|
|
||||||
|
virtual void freeGui() = 0; |
||||||
|
}; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
Q_DECLARE_INTERFACE( Okular::GuiInterface, "org.kde.okular.GuiInterface/0.1" ) |
||||||
|
|
||||||
|
#endif |
||||||
Loading…
Reference in new issue