26 #ifndef CAMITKAPPLICATION_H
27 #define CAMITKAPPLICATION_H
33 #include <QApplication>
39 #include <QTranslator>
44 class ActionExtension;
47 class ComponentExtension;
84 Application(QString
name,
int & argc,
char ** argv,
bool autoloadExtension =
true,
bool registerFileExtension =
false);
94 static QString getName();
111 static QSettings & getSettings();
129 static const QDir getLastUsedDirectory();
132 static void setLastUsedDirectory(QDir);
137 static void addRecentDocument(QFileInfo);
140 static const QList<QFileInfo> getRecentDocuments();
143 static const int getMaxRecentDocuments();
154 static Component * open(
const QString &);
160 static Component * openDirectory(
const QString & dirName,
const QString & pluginName);
194 static bool hasModified();
211 static void clearSelectedComponents();
219 static Action * getAction(QString );
259 static void refresh();
267 static void showStatusBarMessage(QString msg,
int timeout=0);
272 static void resetProgressBar();
279 static void setProgressBarValue(
int);
293 static void vtkProgressFunction(vtkObject* caller,
long unsigned int eventId,
void* clientData,
void* callData);
314 static void saveHistoryAsSXML();
325 static QString getSelectedLanguage();
406 static void setSelected(
Component *component,
bool isSelected);
422 static void removeComponent(
Component *);
438 static QStack<HistoryItem> & getHistory();
451 static QMap<QString,Action*> & getActionMap();
458 void initResources();
465 #endif // CAMITKAPPLICATION_H
The generic/default application.
Definition: Application.h:60
static int maxRecentDocuments
max number of recent document (default 10)
Definition: Application.h:359
static MainWindow * mainWindow
the main window of the CamiTK application
Definition: Application.h:339
int argc
argc given from command line
Definition: Application.h:345
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:184
string name
Definition: select.cpp:111
QTranslator * translator
Provide internationalization support for text output.
Definition: Application.h:362
This Class is the base class for your application.
Definition: MainWindow.h:62
Definition: Action.cpp:40
CAMITK_API QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:95
CAMITK_API QSet< Action * > ActionSet
A set of Action.
Definition: CamiTKAPI.h:92
static QSettings settings
global settings for CamiTK application
Definition: Application.h:342
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
static QList< QFileInfo > recentDocuments
Definition: Application.h:353
CAMITK_API QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:86
#define CAMITK_API
Definition: CamiTKAPI.h:49
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:336
char ** argv
argv given from command line
Definition: Application.h:348
This properties and methods helps registering an applied action in the history of the application...
static QDir lastUsedDirectory
last used directory
Definition: Application.h:356
Definition: canvas_typed/mainwindow.h:69