Drake Designer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
ddPythonManager.h
Go to the documentation of this file.
1 #ifndef __ddPythonManager_h
2 #define __ddPythonManager_h
3 
4 #include <ctkAbstractPythonManager.h>
5 #include "ddAppConfigure.h"
6 
7 
8 class ctkPythonConsole;
9 
10 class DD_APP_EXPORT ddPythonManager : public ctkAbstractPythonManager
11 {
12  Q_OBJECT
13 
14 public:
15 
16  ddPythonManager(QObject* parent=0);
17  virtual ~ddPythonManager();
18 
19  void setupConsole(QWidget* parent);
20 
21  ctkPythonConsole* consoleWidget() const;
22 
23  static QString appSitePackagesDir();
24 
25  void setSysArgv(const QStringList& args);
26 
27 public slots:
28 
29  void showConsole();
30  void onExecuteFile(const QString& filename);
31  void handleCommandLineArgs();
32 
33 protected:
34 
35  virtual void preInitialization();
36 
37  virtual QStringList pythonPaths();
38 
39  virtual void executeInitializationScripts();
40 
41  void setupConsoleShortcuts();
42 
43  class ddInternal;
44  ddInternal* Internal;
45 
46  Q_DISABLE_COPY(ddPythonManager);
47 };
48 
49 #endif
ddInternal * Internal
#define DD_APP_EXPORT