Skip to content

Commit

Permalink
WIP - splitting field placer responsibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinGuillaume committed Jun 11, 2024
1 parent 869919e commit 1c3e51c
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 5 deletions.
Binary file not shown.
Binary file modified lib/tool/tools/mdprep/include/tools/mdprep/gateway/shared.hpp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified lib/tool/tools/mdprep/src/gateway/backend_gromacs.cpp
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/tool/tools/mdprep/src/mdprep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace VTX::QT::Mdprep

{
const VTX::Tool::Mdprep::ui::EngineSpecificCommonInformation * engineSpecificData = nullptr;
_formsMd[ _mdEngineCurrentIdx ]->get( engineSpecificData );
//_formsMd[ _mdEngineCurrentIdx ]->get( engineSpecificData );
if ( engineSpecificData )
_formBasic.update( *engineSpecificData );
}
Expand Down
Binary file modified lib/tool/tools/mdprep/src/ui/basic_form_settings_dialog.cpp
Binary file not shown.
Binary file modified lib/tool/tools/mdprep/src/ui/field_placer_gromacs.cpp
Binary file not shown.
11 changes: 7 additions & 4 deletions lib/tool/tools/mdprep/src/ui/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
#include "tools/mdprep/gateway/backend_gromacs.hpp"
#include "tools/mdprep/gateway/form_data.hpp"
#include "tools/mdprep/gateway/shared.hpp"
#include "tools/mdprep/ui/shared.hpp"
//
#include "tools/mdprep/ui/md_engine_specific_field_placer.hpp"
Expand Down Expand Up @@ -48,22 +49,24 @@ namespace VTX::Tool::Mdprep::ui

namespace
{

class NoopForm
{
VTX::Tool::Mdprep::ui::EngineSpecificCommonInformation _data;
Gateway::EngineSpecificCommonInformation _data;

public:
NoopForm() = default;
inline void
get( MdEngineSpecificFieldPlacer & p_ptr, const VTX::Tool::Mdprep::ui::E_FIELD_SECTION & ) noexcept
{
}
inline void get( const VTX::Tool::Mdprep::ui::EngineSpecificCommonInformation *& p_ptr ) const noexcept
inline void get( const Gateway::EngineSpecificCommonInformation *& p_ptr ) const noexcept
{
p_ptr = &_data;
}
inline void activate() noexcept {}
inline void deactivate() noexcept {}
inline void activate() noexcept {}
inline void deactivate() noexcept {}
friend inline void get( const NoopForm &, Gateway::EngineSpecificCommonInformation & ) noexcept {}
};
} // namespace

Expand Down

0 comments on commit 1c3e51c

Please sign in to comment.