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