26 #ifndef CAMITKAPPLICATION_H
27 #define CAMITKAPPLICATION_H
33 #include <QApplication>
42 class ActionExtension;
77 Application(QString name,
int & argc,
char ** argv,
bool autoloadExtension =
true,
bool registerFileExtension =
false);
87 static QString getName();
104 static QSettings & getSettings();
122 static const QDir getLastUsedDirectory();
125 static void setLastUsedDirectory(QDir);
130 static void addRecentDocument(QFileInfo);
133 static const QList<QFileInfo> getRecentDocuments();
136 static const int getMaxRecentDocuments();
145 static Component * open(
const QString &);
151 static Component * openDirectory(
const QString & dirName,
const QString & pluginName);
185 static bool hasModified();
202 static void clearSelectedComponents();
210 static Action * getAction(QString );
250 static void refresh();
258 static void showStatusBarMessage(QString msg,
int timeout=0);
263 static void resetProgressBar();
270 static void setProgressBarValue(
int);
284 static void vtkProgressFunction(vtkObject* caller,
long unsigned int eventId,
void* clientData,
void* callData);
378 static void setSelected(
Component *component,
bool isSelected);
394 static void removeComponent(
Component *);
410 static QStack<HistoryItem> & getHistory();
423 static QMap<QString,Action*> & getActionMap();
433 #endif // CAMITKAPPLICATION_H
The generic/default application.
Definition: Application.h:53
static int maxRecentDocuments
max number of recent document (default 10)
Definition: Application.h:334
static MainWindow * mainWindow
the main window of the CamiTK application
Definition: Application.h:314
int argc
argc given from command line
Definition: Application.h:320
Action class is an abstract class that enables you to build a action (generally on a component)...
Definition: Action.h:165
This Class is the base class for your application.
Definition: MainWindow.h:59
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:317
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: Component.h:287
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:328
This class describes what is a generic Action extension.
Definition: ActionExtension.h:57
HistoryItem class describes the entry of an action used in a pipeline, in the history.
Definition: HistoryItem.h:54
static QString name
name of the CamiTK application (used to differentiate settings between CamiTK applications) ...
Definition: Application.h:311
char ** argv
argv given from command line
Definition: Application.h:323
static QDir lastUsedDirectory
last used directory
Definition: Application.h:331