Work on the graphical interface requirements tree

This commit is contained in:
Sylvain Schneider
2026-03-17 17:11:02 +01:00
parent 806aeb4824
commit 89f277d013
10 changed files with 237 additions and 29 deletions

View File

@@ -1,5 +1,7 @@
#include "requirementDetailPanel.h"
#include "resources/resources.h"
#include <wx/statline.h>
using namespace std;
@@ -24,9 +26,9 @@ void RequirementDetailPanel::createControls()
const auto mainPanel = new wxScrolledWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL);
mainPanel->SetScrollRate(0, 10); // Set the scroll rate for the panel (vertical only)
const auto closeButton = new wxButton(this, wxID_ANY, _("Close"));
const auto saveButton = new wxButton(this, wxID_ANY, _("Save"));
const auto discardButton = new wxButton(this, wxID_ANY, _("Discard"));
const auto closeButton = new wxBitmapButton(this, wxID_ANY, icon_xmark_24x24(), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | wxBORDER_NONE);
const auto saveButton = new wxBitmapButton(this, wxID_ANY, icon_floppy_disk_24x24(), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | wxBORDER_NONE);
const auto discardButton = new wxBitmapButton(this, wxID_ANY, icon_rotate_left_24x24(), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | wxBORDER_NONE);
// Controls positioning
const auto ctrlSizer = new wxBoxSizer(wxVERTICAL);