26 #ifndef CAMITKAPPLICATION_H
27 #define CAMITKAPPLICATION_H
33 #include <QApplication>
41 class ActionExtension;
70 Application(QString name,
int & argc,
char ** argv,
bool autoloadExtension =
true);
80 static QString getName();
97 static QSettings & getSettings();
115 static const QDir getLastUsedDirectory();
118 static void setLastUsedDirectory(QDir);
123 static void addRecentDocument(QFileInfo);
126 static const QList<QFileInfo> getRecentDocuments();
129 static const int getMaxRecentDocuments();
138 static Component * open(
const QString &);
144 static Component * openDirectory(
const QString & dirName,
const QString & pluginName);
178 static bool hasModified();
195 static void clearSelectedComponents();
203 static Action * getAction(QString );
243 static void refresh();
251 static void showStatusBarMessage(QString msg,
int timeout=0);
256 static void resetProgressBar();
263 static void setProgressBarValue(
int);
277 static void vtkProgressFunction(vtkObject* caller,
long unsigned int eventId,
void* clientData,
void* callData);
353 static void setSelected(
Component *component,
bool isSelected);
369 static void removeComponent(
Component *);
382 static QMap<QString,Action*> & getActionMap();
395 #endif // CAMITKAPPLICATION_H