26 #ifndef CAMITKAPPLICATION_H
27 #define CAMITKAPPLICATION_H
33 #include <QApplication>
43 class ActionExtension;
82 Application(QString name,
int & argc,
char ** argv,
bool autoloadExtension =
true,
bool registerFileExtension =
false);
92 static QString getName();
109 static QSettings & getSettings();
127 static const QDir getLastUsedDirectory();
130 static void setLastUsedDirectory(QDir);
135 static void addRecentDocument(QFileInfo);
138 static const QList<QFileInfo> getRecentDocuments();
141 static const int getMaxRecentDocuments();
150 static Component * open(
const QString &);
156 static Component * openDirectory(
const QString & dirName,
const QString & pluginName);
190 static bool hasModified();
207 static void clearSelectedComponents();
215 static Action * getAction(QString );
255 static void refresh();
263 static void showStatusBarMessage(QString msg,
int timeout=0);
268 static void resetProgressBar();
275 static void setProgressBarValue(
int);
289 static void vtkProgressFunction(vtkObject* caller,
long unsigned int eventId,
void* clientData,
void* callData);
310 static void saveHistoryAsSXML();
389 static void setSelected(
Component *component,
bool isSelected);
405 static void removeComponent(
Component *);
421 static QStack<HistoryItem> & getHistory();
434 static QMap<QString,Action*> & getActionMap();
444 #endif // CAMITKAPPLICATION_H
The generic/default application.
Definition: Application.h:58
static int maxRecentDocuments
max number of recent document (default 10)
Definition: Application.h:345
static MainWindow * mainWindow
the main window of the CamiTK application
Definition: Application.h:325
int argc
argc given from command line
Definition: Application.h:331
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:184
This Class is the base class for your application.
Definition: MainWindow.h:62
CAMITK_API QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:96
CAMITK_API QSet< Action * > ActionSet
A set of Action.
Definition: CamiTKAPI.h:93
static QSettings settings
global settings for CamiTK application
Definition: Application.h:328
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:292
CAMITK_API QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:87
#define CAMITK_API
Definition: CamiTKAPI.h:49
static QList< QFileInfo > recentDocuments
Definition: Application.h:339
Definition: ExtensionWindow.h:40
This class describes what is a generic Action extension.
Definition: ActionExtension.h:61
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition: HistoryItem.h:61
static QString name
name of the CamiTK application (used to differentiate settings between CamiTK applications) ...
Definition: Application.h:322
char ** argv
argv given from command line
Definition: Application.h:334
This properties and methods helps registering an applied action in the history of the application...
static QDir lastUsedDirectory
last used directory
Definition: Application.h:342
Definition: ExtensionWindow.h:39
Definition: canvas_typed/mainwindow.h:70