26#ifndef __CAMITK_EXTENSION_EDITOR__
27#define __CAMITK_EXTENSION_EDITOR__
59 CamiTKExtensionEditor(
const QString& camitkFilePath,
const QString& newExtensionName = QString(),
const QString& language = QString(),
const QString& cppGenerationType = QString(), QWidget* parent =
nullptr);
82 void showMessage(
const QString& message,
int durationMilliseconds = 2000,
bool warning =
false);
94 QLabel* statusBarLabel;
95 QTimer* statusBarTimer;
96 QPushButton* registerButton;
97 QPushButton* initializeButton;
98 bool hasUnsavedChanges;
102 QString camitkFilePath;
111 void updateButtonStatus(
bool initializationWasSuccessful =
false);
Presenter for CMakeProjectManager.
Definition CMakeProjectManagerPresenter.h:45
void registerClicked()
called when the user clicks on "Register/Unregister"
Definition CamiTKExtensionEditor.cpp:302
void closeEvent(QCloseEvent *event) override
called when the widget is being closed
Definition CamiTKExtensionEditor.cpp:118
CamiTKExtensionEditor(const QString &camitkFilePath, const QString &newExtensionName=QString(), const QString &language=QString(), const QString &cppGenerationType=QString(), QWidget *parent=nullptr)
Constructor.
Definition CamiTKExtensionEditor.cpp:51
virtual ~CamiTKExtensionEditor()
Destructor.
Definition CamiTKExtensionEditor.cpp:114
void saveClicked()
called when the user clicks on "Save"
Definition CamiTKExtensionEditor.cpp:179
void initializeClicked()
called when the user clicks on "Initialize/Update"
Definition CamiTKExtensionEditor.cpp:256
void extensionGeneratorPresenterClosed()
sent when the window is being closed
void closeClicked()
called when the user clicks on "Close" or use the close button in the window manager title bar
Definition CamiTKExtensionEditor.cpp:250
void showMessage(const QString &message, int durationMilliseconds=2000, bool warning=false)
show a message for the given time (can be a warning that is shown in red)
Definition CamiTKExtensionEditor.cpp:162
void dataModelUpdated()
called when the CamiTK extension model was updated in the GUI (shows a "*" in the title bar)
Definition CamiTKExtensionEditor.cpp:156
Presenter for a CamiTK extension file model.
Definition CamiTKExtensionModelPresenter.h:47