From 025c4c57532eff731dafbb6f790ac131796e2e43 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 24 May 2024 12:19:30 +0200 Subject: [PATCH] WIP - Writing advanced parameters form --- .../include/tools/mdprep/ui/advanced_form.hpp | Bin 0 -> 1960 bytes .../include/tools/mdprep/ui/basic_form.hpp | Bin 3646 -> 3538 bytes .../include/tools/mdprep/ui/form_data.hpp | Bin 3288 -> 3396 bytes lib/tool/tools/mdprep/src/mdprep.cpp | 3 ++- .../tools/mdprep/src/ui/advanced_form.cpp | Bin 0 -> 284 bytes lib/tool/tools/mdprep/src/ui/basic_form.cpp | Bin 19942 -> 21432 bytes lib/tool/tools/mdprep/src/ui/main_window.cpp | 7 ++++++- 7 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 lib/tool/tools/mdprep/include/tools/mdprep/ui/advanced_form.hpp create mode 100644 lib/tool/tools/mdprep/src/ui/advanced_form.cpp diff --git a/lib/tool/tools/mdprep/include/tools/mdprep/ui/advanced_form.hpp b/lib/tool/tools/mdprep/include/tools/mdprep/ui/advanced_form.hpp new file mode 100644 index 0000000000000000000000000000000000000000..86667a2c7c88736149456ad97b4a8e219229fef1 GIT binary patch literal 1960 zcmcJQZEG4q6ov2CE%ZMO2qh_nez$4CXaa$>O*Gnm6Lq(#RNY0_QYiWBZJsl;8(mq9 z=?lxwjx+b=+;i@XzkfAsYF}(&u_b(+4S5E3W1son*hikrtyz!xd+XShb?uCCXnnh2 zY_T?A{9tX?JFJ}J*~M1zp4&5P6d9)EO8#S>kV{!6HnX+Q>gm@Sa+3Z@gXArcIQ&jTujQf7IGs5_3$ov)bJrk(WNxZSDRi_F}um zzeFIULOy40Wf`-H=Q8Nkv?hwBJTqoZxR0?}Vv+gZYvL)wPd`RPQ2sSBa;lc~6%m(3 z{2ad}HZ9h_vnDqxO$3$ z&R*boO!o&ZL*VVy zoW7;KV&~5*RLm+yoo=yvXs?G_kN4CjrB`6oIo3&6ef!lFdka)cxHEL3vIp)W&cued zaPAfFP_(74RnF>j1eCLopC4Fa$D$Gh{NPFr+i2GL&rgWMt-YM9|yN7Ln?zgg93vlgZ1QEcKykxI6~0HHb-&(Vv_V@C}SuADpX*w1!4mR gJs>tibwhGPAIIc>>=Bcna999oo6TXIznCT;;AsH>yATY5 diff --git a/lib/tool/tools/mdprep/src/mdprep.cpp b/lib/tool/tools/mdprep/src/mdprep.cpp index 6f2344867..4f08dfd99 100644 --- a/lib/tool/tools/mdprep/src/mdprep.cpp +++ b/lib/tool/tools/mdprep/src/mdprep.cpp @@ -12,12 +12,12 @@ #include #include #include +#include // 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 @@ -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 { diff --git a/lib/tool/tools/mdprep/src/ui/advanced_form.cpp b/lib/tool/tools/mdprep/src/ui/advanced_form.cpp new file mode 100644 index 0000000000000000000000000000000000000000..991e1b4b3a7bcd0196152671351256784247b192 GIT binary patch literal 284 zcmbu4F%H5o5Co@2;tx^i@dqNl5*ZQ%k^vJ4&j-dSfF>2XYPGv_cdzG)BWHFbMml;b z8m_9yR+U(DV8fCHbIH>0olesICm#qiz1rNxN!-kwY-R=tSv5)t>~#m7Rxg^46E~Zv WC+0uwDDxq)d|j??KikT$-yLrQPB7vC literal 0 HcmV?d00001 diff --git a/lib/tool/tools/mdprep/src/ui/basic_form.cpp b/lib/tool/tools/mdprep/src/ui/basic_form.cpp index 4f0ccbffd9465acd29186c29ec8d0b5e99642531..6570e3b883c18446b2f0f8bf65004f7049fe9248 100644 GIT binary patch delta 951 zcma)4OK1~O6ur|*>g3Z*)8;pmlmvgBBuxSl4VaEqQ!SHHOvpl9M5C!hktS_p5lj$t zCk1JbxY3O(x5Zi5MK^8*!Geej(Yh%v#D%zWA-e3K?^b8N!$V@!@7O6tlsYC(T6Jcx(P0JAq&{bBQr3I?7xWwXHbcJrx49gC)Ri#U; zTEiEIACLF-c)cHp~M zh3XM_o*J#c=DcUP1j1>*f%)puF=br#TDvgWZI)kN9Wjr(xRYgBbhZ!*JH6M};>R14 z8&Q`TkEDZK0I#IRV7u!8$=jXZ_ua*;v>)q24t0kQdH*WMGlgW-<7VW-Qy;yZS1e^T_|~htAVHn{o-k(-T^1_@mX*wgKA7h_DF!_!Qu8)xgnp(r`E I=+qkb2OIj_+5i9m delta 396 zcmdn7oblOg#tl6pll_GB7~>}!>S<1XA`&q9k&xQt4$+dydFD2()(pH1T$8!Qwog7H z<}{f@++%W(xYOhrEIgB6Na{?!ATBgnLn@Eac=CU4(aAXy0dScg5+Iqh$xJ*#KyjzZ zrzH8Ha&|!RhRJ+9Y?C)hiNMt}NrTiEOm34F0Lt-AmJ<`3yiZz%6KFdFCkRe{EL{t7 z5vKx!CIiG(#WMAi-GqWBXUJ{<(q@}I6z}oyD=?HWWH4kh6f@{D*fBsnC1I{Ld4itC zUbvndfj#z9-Bx zd4o0AWRC!W$!*RNlVcp!CNFS`nEXM8Yx5K5C)|@0oYf{r1c*$o^3ag%)&K>> Irl1{+060c_V*mgE diff --git a/lib/tool/tools/mdprep/src/ui/main_window.cpp b/lib/tool/tools/mdprep/src/ui/main_window.cpp index 312829d83..27cfdbeb5 100644 --- a/lib/tool/tools/mdprep/src/ui/main_window.cpp +++ b/lib/tool/tools/mdprep/src/ui/main_window.cpp @@ -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 {} };