26 #ifndef CAMITKAPPLICATION_H 27 #define CAMITKAPPLICATION_H 33 #include <QApplication> 39 #include <QTranslator> 44 class ActionExtension;
47 class ComponentExtension;
95 Application(QString name,
int & argc,
char ** argv,
bool autoloadExtension =
true,
bool registerFileExtension =
false);
105 static QString getName();
122 static QSettings & getSettings();
140 static const QDir getLastUsedDirectory();
143 static void setLastUsedDirectory(QDir);
148 static void addRecentDocument(QFileInfo);
151 static const QList<QFileInfo> getRecentDocuments();
154 static const int getMaxRecentDocuments();
165 static Component * open(
const QString &);
171 static Component * openDirectory(
const QString & dirName,
const QString & pluginName);
205 static bool hasModified();
222 static void clearSelectedComponents();
230 static Action * getAction(QString );
275 static void refresh();
283 static void showStatusBarMessage(QString msg,
int timeout=0);
288 static void resetProgressBar();
295 static void setProgressBarValue(
int);
309 static void vtkProgressFunction(vtkObject* caller,
long unsigned int eventId,
void* clientData,
void* callData);
330 static void saveHistoryAsSXML();
339 static QString getSelectedLanguage();
353 return autoloadLastOpenedComponentsProperty;
360 return defaultTargetedComponentProperty;
453 static void setSelected(
Component *component,
bool isSelected);
469 static void removeComponent(
Component *);
485 static QStack<HistoryItem> & getHistory();
498 static QMap<QString,Action*> & getActionMap();
505 void initResources();
512 void createProperties();
545 #endif // CAMITKAPPLICATION_H The generic/default application.
Definition: Application.h:62
static int maxRecentDocuments
max number of recent document (default 10)
Definition: Application.h:406
static MainWindow * mainWindow
the main window of the CamiTK application
Definition: Application.h:386
int argc
argc given from command line
Definition: Application.h:392
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:208
Property * getAutoloadLastOpenedComponentsProperty()
Get the CamiTK property associated with auto loading last opened component when the application start...
Definition: Application.h:352
QTranslator * translator
Provide internationalization support for text output.
Definition: Application.h:409
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
Definition: Application.h:68
Property * autoloadLastOpenedComponentsProperty
The CamiTK property to open the last components the application opened during its last session...
Definition: Application.h:522
static QSettings settings
global settings for CamiTK application
Definition: Application.h:389
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:400
CAMITK_API QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:86
#define CAMITK_API
Definition: CamiTKAPI.h:49
This class describes a property object.
Definition: PropertyObject.h:50
This class describes what is a generic Action extension.
Definition: ActionExtension.h:61
Property * getDefaultTargetedComponentProperty()
Get the CamiTK property associated with the new component frame policy.
Definition: Application.h:359
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition: HistoryItem.h:61
Definition: Application.h:69
static QString name
name of the CamiTK application (used to differentiate settings between CamiTK applications) ...
Definition: Application.h:383
char ** argv
argv given from command line
Definition: Application.h:395
TargetPositionningMethods
Definition: Application.h:67
This properties and methods helps registering an applied action in the history of the application...
static QDir lastUsedDirectory
last used directory
Definition: Application.h:403
Definition: canvas_typed/mainwindow.h:69
Property * defaultTargetedComponentProperty
The CamiTK property for selecting the frame policy.
Definition: Application.h:517
PropertyObject * propertyObject
A simple QObject that holds the CamiTK level properties of the application.
Definition: Application.h:533
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:260