26 #ifndef CAMITKAPPLICATION_H 27 #define CAMITKAPPLICATION_H 34 #include <QApplication> 40 #include <QTranslator> 45 class ActionExtension;
48 class ComponentExtension;
97 Application(QString name,
int& argc,
char** argv,
bool autoloadExtension =
true,
bool registerFileExtension =
false);
107 bool notify(QObject*, QEvent*)
override;
110 static QString getName();
127 static QSettings& getSettings();
145 static const QDir getLastUsedDirectory();
148 static void setLastUsedDirectory(QDir);
153 static void addRecentDocument(QFileInfo);
156 static const QList<QFileInfo> getRecentDocuments();
159 static const int getMaxRecentDocuments();
176 static Component* openDirectory(
const QString& dirName,
const QString& pluginName);
210 static bool hasModified();
227 static void clearSelectedComponents();
235 static Action* getAction(QString);
280 static void refresh();
288 static void showStatusBarMessage(QString msg,
int timeout = 0);
293 static void resetProgressBar();
300 static void setProgressBarValue(
int);
314 static void vtkProgressFunction(vtkObject* caller,
long unsigned int,
void*,
void*);
335 static void saveHistoryAsSXML();
344 static QString getSelectedLanguage();
430 static void setSelected(
Component* component,
bool isSelected);
457 static void applyPropertyValues();
471 static QStack<HistoryItem>& getHistory();
484 static QMap<QString, Action*>& getActionMap();
491 static void initResources();
499 static void createProperties();
518 bool eventFilter(QObject*
object, QEvent* event)
override;
527 #endif // CAMITKAPPLICATION_H The generic/default application.
Definition: Application.h:63
static int maxRecentDocuments
max number of recent document (default 10)
Definition: Application.h:383
static MainWindow * mainWindow
the main window of the CamiTK application
Definition: Application.h:366
static int argc
argc given from command line
Definition: Application.h:369
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:207
TargetPositionningPolicy
: Policy to determine how a newly instanciated component's frame should be initialized regarding of i...
Definition: Application.h:69
New component has no parent frame (parent frame is set to nullptr), and its frame is copied from its ...
Definition: Application.h:70
This Class is the base class for your application.
Definition: MainWindow.h:62
Definition: Action.cpp:36
static QSettings settings
global settings for CamiTK application
Definition: Application.h:454
static PropertyObject * propertyObject
A simple QObject that holds the CamiTK level properties of the application.
Definition: Application.h:510
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:298
static QList< QFileInfo > recentDocuments
Definition: Application.h:377
#define CAMITK_API
Definition: CamiTKAPI.h:49
This class describes a property object.
Definition: PropertyObject.h:71
This class describes what is a generic Action extension.
Definition: ActionExtension.h:59
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition: HistoryItem.h:61
QList< Action * > ActionList
A list of Action.
Definition: CamiTKAPI.h:95
static char ** argv
argv given from command line
Definition: Application.h:372
QSet< Action * > ActionSet
A set of Action.
Definition: CamiTKAPI.h:92
static QString name
name of the CamiTK application (used to differentiate settings between CamiTK applications) ...
Definition: Application.h:363
New component has no parent frame (parent frame is therefore set to nullptr) and transform is Id...
Definition: Application.h:71
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:89
static QTranslator * translator
Provide internationalization support for text output.
Definition: Application.h:386
This properties and methods helps registering an applied action in the history of the application...
static QDir lastUsedDirectory
last used directory
Definition: Application.h:380
Definition: canvas_typed/mainwindow.h:69