Move the definition of the 'EmbedMode' enum to 'part.h'

remotes/origin/textfind-and-transparency
Michel Ludwig 15 years ago
parent 00b01aa987
commit d7e116f2d7
  1. 2
      conf/dlggeneral.h
  2. 2
      conf/preferencesdialog.h
  3. 14
      core/global.h
  4. 14
      part.h

@ -12,7 +12,7 @@
#include <qwidget.h>
#include "core/global.h"
#include "part.h"
class Ui_DlgGeneralBase;

@ -11,8 +11,8 @@
#define _PREFERENCESDIALOG_H
#include <kconfigdialog.h>
#include "part.h"
#include "settings.h"
#include "core/global.h"
class QWidget;
class KConfigSkeleton;

@ -78,20 +78,6 @@ enum ScriptType
JavaScript = 0 ///< JavaScript code
};
/**
* Describes the possible embedding modes of the part
*
* @since 0.14 (KDE 4.8)
*/
enum EmbedMode
{
UnknownEmbedMode,
NativeShellMode, // embedded in the native Okular' shell
PrintPreviewMode, // embedded to show the print preview of a document
KHTMLPartMode, // embedded in KHTML
ViewerWidgetMode, // the part acts as a widget that can display all kinds of documents
};
}
#endif

@ -66,6 +66,20 @@ namespace Okular
class BrowserExtension;
class ExportFormat;
/**
* Describes the possible embedding modes of the part
*
* @since 0.14 (KDE 4.8)
*/
enum EmbedMode
{
UnknownEmbedMode,
NativeShellMode, // embedded in the native Okular' shell
PrintPreviewMode, // embedded to show the print preview of a document
KHTMLPartMode, // embedded in KHTML
ViewerWidgetMode, // the part acts as a widget that can display all kinds of documents
};
/**
* This is a "Part". It that does all the real work in a KPart
* application.

Loading…
Cancel
Save