Mudbox/plugin.h Source File

plugin.h
Go to the documentation of this file.
1 
2 //**************************************************************************/
3 // Copyright (c) 2008 Autodesk, Inc.
4 // All rights reserved.
5 //
6 // Use of this software is subject to the terms of the Autodesk license
7 // agreement provided at the time of installation or download, or which
8 // otherwise accompanies this software in either electronic or hard copy form.
9 //
10 //**************************************************************************/
11 // DESCRIPTION:
12 // CREATED: October 2008
13 //**************************************************************************/
14 
15 namespace mudbox {
16 
30 {
31  typedef void initializer( void );
32 
34  Plugin( void ) {};
35 
37  Plugin( const QString &sName, const QString &sDescription, const QString &sAuthor, const QString &sURL, const QString &sCompileTime, initializer *fFunc = 0 );
38 
40  static void SetVersion( const QString& sName, const QString &sVersion );
41 
48  initializer *m_pInitializer;
50 };
51 
57 {
58 public:
60  virtual void Start() = 0;
61 
63  virtual void Stop() = 0;
64 
66  virtual bool IsEnabled() = 0;
67 
69  virtual QWidget* CreateWidget(QWidget *parent, QString name) = 0;
70 
72  virtual QWidget* Widget() = 0;
73 
75  virtual QString Name();
76 
78  virtual QString Title();
79 
81  virtual bool AddToWindowMenu();
82 
83 protected:
87 };
88 
94 {
95 public:
96  WebBrowserPlugin(const QString name, const QString title);
97 
99  typedef enum
100  {
101  eNavNone = 0,
107  } NavigationPoints;
108 
110  typedef enum
111  {
115  } FileType;
116 
118  virtual void Navigate(const NavigationPoints nav) = 0;
119 
121  virtual void Upload(const QStringList &files, const FileType fileType) = 0;
122 
124  virtual void GetFileList(const FileType fileType, QFileInfoList &fileList, QString filter = "") = 0;
125 };
126 
127 }; // end of namespace mudbox
WebBrowserPlugin is a base class to implement the web browser based plugins.
Definition: plugin.h:93
QString m_sDescription
A brief description of what it does.
Definition: plugin.h:43
QString m_sAuthor
The name of the plug-in's author.
Definition: plugin.h:44
QString m_sName
The name of the plug-in.
Definition: plugin.h:42
void initializer(void)
Definition: plugin.h:31
WindowPlugin is an interface to implement window based plugins.
Definition: plugin.h:56
QString m_name
Definition: plugin.h:84
QString m_sVersion
The version of the plug-in.
Definition: plugin.h:49
This class holds all the information Mudbox needs about a plugin.
Definition: plugin.h:29
initializer * m_pInitializer
A pointer to the initializer funtion of the plug-in.
Definition: plugin.h:48
QString m_title
Definition: plugin.h:85
GLuint const GLchar * name
Definition: GLee.h:1704
Class: ConvolutionKernel.
Definition: array.h:15
QString m_sPluginFolder
The path of the folder that the plug-in was loaded from (set at load time)
Definition: plugin.h:47
Plugin(void)
Null constructor.
Definition: plugin.h:34
GLenum filter
Definition: GLee.h:3431
QString m_sURL
A URL that contains information related to the plug-in (if any)
Definition: plugin.h:45
QString m_sCompileTime
The date and time that the plugin was loaded (generated automatically)
Definition: plugin.h:46
#define MBDLL_DECL
Definition: dllinterface.h:35
bool m_addToWindowMenu
Definition: plugin.h:86