Editor of CamiTK extension file. More...
#include <CamiTKExtensionEditor.h>
Inheritance diagram for CamiTKExtensionEditor:
Collaboration diagram for CamiTKExtensionEditor:Public Slots | |
| void | closeClicked () |
| called when the user clicks on "Close" or use the close button in the window manager title bar | |
| void | dataModelUpdated () |
| called when the CamiTK extension model was updated in the GUI (shows a "*" in the title bar) | |
| void | initializeClicked () |
| called when the user clicks on "Initialize/Update" | |
| void | registerClicked () |
| called when the user clicks on "Register/Unregister" | |
| void | saveClicked () |
| called when the user clicks on "Save" | |
| 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) | |
Signals | |
| void | extensionGeneratorPresenterClosed () |
| sent when the window is being closed | |
Public Member Functions | |
| CamiTKExtensionEditor (const QString &camitkFilePath, const QString &newExtensionName=QString(), const QString &language=QString(), const QString &cppGenerationType=QString(), QWidget *parent=nullptr) | |
| Constructor. | |
| virtual | ~CamiTKExtensionEditor () |
| Destructor. | |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *event) override |
| called when the widget is being closed | |
Editor of CamiTK extension file.
This class uses
| CamiTKExtensionEditor::CamiTKExtensionEditor | ( | const QString & | camitkFilePath, |
| const QString & | newExtensionName = QString(), |
||
| const QString & | language = QString(), |
||
| const QString & | cppGenerationType = QString(), |
||
| QWidget * | parent = nullptr |
||
| ) |
Constructor.
| camitkFilePath | path to the CamiTK extension file to edit (can be empty for a new extension) |
| newExtensionName | the extension name ("action", "component", or "viewer"), needed for creating of a new extension |
| language | the programming language for the extension |
| cppGenerationType | for C++ language, extension can be either generated as Standard or Hotplug extension |
References closeClicked(), dataModelUpdated(), CamiTKExtensionModelPresenter::dataModelUpdated(), initializeClicked(), registerClicked(), saveClicked(), showMessage(), and CamiTKExtensionModelPresenter::showMessage().
Here is the call graph for this function:
|
virtual |
Destructor.
|
slot |
called when the user clicks on "Close" or use the close button in the window manager title bar
References showMessage().
Referenced by CamiTKExtensionEditor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotected |
called when the widget is being closed
References extensionGeneratorPresenterClosed(), and saveClicked().
Here is the call graph for this function:
|
slot |
called when the CamiTK extension model was updated in the GUI (shows a "*" in the title bar)
Referenced by CamiTKExtensionEditor().
Here is the caller graph for this function:
|
signal |
sent when the window is being closed
Referenced by closeEvent().
Here is the caller graph for this function:
|
slot |
called when the user clicks on "Initialize/Update"
References ExtensionBuilderPresenter::allStagesFinished(), ExtensionBuilder::Check_System, ExtensionBuilderPresenter::cMakeProjectManagerPresenterClosed(), ExtensionBuilder::Generate_Source_Files, saveClicked(), and showMessage().
Referenced by CamiTKExtensionEditor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
slot |
called when the user clicks on "Register/Unregister"
References camitk::Application::getAction(), camitk::Action::setParameterValue(), showMessage(), and camitk::Action::trigger().
Referenced by CamiTKExtensionEditor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
slot |
called when the user clicks on "Save"
References CAMITK_WARNING, CamiTKExtensionModelPresenter::getExtensionName(), camitk::Application::getLastUsedDirectory(), saveClicked(), CamiTKExtensionModelPresenter::saveExtensionFile(), camitk::Application::setLastUsedDirectory(), and showMessage().
Referenced by CamiTKExtensionEditor(), closeEvent(), initializeClicked(), and saveClicked().
Here is the call graph for this function:
Here is the caller graph for this function:
|
slot |
show a message for the given time (can be a warning that is shown in red)
Referenced by CamiTKExtensionEditor(), closeClicked(), initializeClicked(), registerClicked(), and saveClicked().
Here is the caller graph for this function: