Work on the graphical interface for presenting requirements details

This commit is contained in:
Sylvain Schneider
2026-03-13 16:34:34 +01:00
parent 25fc14d6bd
commit 03d2e94f8b
17 changed files with 859 additions and 82 deletions

View File

@@ -3,6 +3,7 @@
#include "bars/menuBar.h"
#include "bars/statusBar.h"
#include "bars/toolBar.h"
#include "requirementsPanel/requirementsPanel.h"
#include <filesystem>
@@ -18,7 +19,6 @@ using namespace gui;
MainFrame::MainFrame(dBus::Bus &bus)
: wxFrame(nullptr, wxID_ANY, _("kwa.Fr"), wxDefaultPosition, wxDefaultSize)
, dBus::wxNode(this, bus)
, m_bus(bus)
{
// Initialization
SetIcon(wxICON(AAAA_ICON));
@@ -36,6 +36,8 @@ MainFrame::MainFrame(dBus::Bus &bus)
CenterOnScreen();
subscribe(dBus::makeID("log.message"));
// Iconize();
}
//--------------------------------------------------------------
/* Creating controls */
@@ -46,7 +48,10 @@ void MainFrame::createControls()
const auto framePanel = new wxPanel(this /*, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSIMPLE_BORDER*/);
m_toolBar = new ToolBar(framePanel);
m_pageNotebook = new wxNotebook(framePanel, wxID_ANY);
m_pageNotebook = new wxNotebook(framePanel, wxID_ANY);
m_requirementsPanel = new RequirementsPanel(m_pageNotebook, m_bus);
m_pageNotebook->AddPage(m_requirementsPanel, "Requirements", true);
// Controls positioning
const auto mainSizer = new wxBoxSizer(wxVERTICAL);