Skip to content

Commit

Permalink
Adding step number and forcefield fields to gromacs UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinGuillaume committed May 22, 2024
1 parent dc93ce2 commit a841f22
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Binary file modified lib/tool/tools/mdprep/include/tools/mdprep/gromacs/pack.hpp
Binary file not shown.
Binary file modified lib/tool/tools/mdprep/include/tools/mdprep/ui/basic_form.hpp
Binary file not shown.
8 changes: 7 additions & 1 deletion lib/tool/tools/mdprep/src/mdprep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace VTX::QT::Mdprep
QWidget * const mainWidget = _instantiateMainWidget( PREFERRED_SIZE, PREFERRED_SIZE );

UI::QT::QtDockablePanel::_setupUi( p_name );

this->setWindowIcon( QIcon( ":/sprite/icon_tool_mdprep_mainButton.png" ) );
this->setWindowTitle( "Molecular Dynamics Preparation" );

setWindowState( Qt::WindowState::WindowActive );
Expand Down Expand Up @@ -79,6 +79,12 @@ namespace VTX::QT::Mdprep
{ _formBasic.layoutFieldsMdEngine(), _formBasic.layoutFieldsMdEngine() }
);
_formsMd[ _mdEngineCurrentIdx ]->activate();

const VTX::Tool::Mdprep::ui::EngineSpecificCommonFormData * engineSpecificData = nullptr;
_formsMd[ _mdEngineCurrentIdx ]->get( engineSpecificData );
if ( engineSpecificData )
_formBasic.update( *engineSpecificData );

VTX::VTX_DEBUG( "info from Mdprep::MainWindow::_updateFormEngine({})", idx );
}
virtual void _setupSlots()
Expand Down
Binary file modified lib/tool/tools/mdprep/src/ui/basic_form.cpp
Binary file not shown.
2 changes: 2 additions & 0 deletions lib/tool/tools/mdprep/src/ui/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ namespace VTX::Tool::Mdprep::ui

void MdFieldsOrganizer::setupUi( QLayout * p_layout ) noexcept
{
// At first IU wanted to put all advanced settings in a collapsible panel but it seems unintuitive to create one
// with Qt so I decided to make tabs instead. But it shall be easy to change in the future if we want to.
QTabWidget * wTab = new QTabWidget();
p_layout->addWidget( wTab );

Expand Down

0 comments on commit a841f22

Please sign in to comment.