Skip to content

Commit

Permalink
WIP - Writing advanced parameters form
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinGuillaume committed May 24, 2024
1 parent a61ce2e commit 025c4c5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
Binary file not shown.
Binary file modified lib/tool/tools/mdprep/include/tools/mdprep/ui/basic_form.hpp
Binary file not shown.
Binary file modified lib/tool/tools/mdprep/include/tools/mdprep/ui/form_data.hpp
Binary file not shown.
3 changes: 2 additions & 1 deletion lib/tool/tools/mdprep/src/mdprep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
#include <qcombobox.h>
#include <qformlayout.h>
#include <qlineedit.h>
#include <qpushbutton.h>
//

namespace VTX::QT::Mdprep
{


// Class responsible for managing the mdprep main window by coordinating the common form and the md engine
// specifics.
class MainWindow : public UI::QT::QtDockablePanel
Expand Down Expand Up @@ -89,6 +89,7 @@ namespace VTX::QT::Mdprep

_fieldOrganizer.setupUi( qLayoutWindow );
_formBasic.setupUi( _fieldOrganizer.containerParamBasic );
qLayoutWindow->addWidget( new QPushButton( "Button" ) );
}
void _updateFormEngine( int idx ) noexcept
{
Expand Down
Binary file added lib/tool/tools/mdprep/src/ui/advanced_form.cpp
Binary file not shown.
Binary file modified lib/tool/tools/mdprep/src/ui/basic_form.cpp
Binary file not shown.
7 changes: 6 additions & 1 deletion lib/tool/tools/mdprep/src/ui/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ namespace VTX::Tool::Mdprep::ui
{
class NoopForm
{
VTX::Tool::Mdprep::ui::EngineSpecificCommonFormData _data;

public:
NoopForm() = default;
void get( const VTX::Tool::Mdprep::ui::EngineSpecificCommonFormData *& ) const noexcept {}
void get( const VTX::Tool::Mdprep::ui::EngineSpecificCommonFormData *& p_ptr ) const noexcept
{
p_ptr = &_data;
}
void activate() noexcept {}
void deactivate() noexcept {}
};
Expand Down

0 comments on commit 025c4c5

Please sign in to comment.