Skip to content

Commit

Permalink
implement wxMetroDataViewTreeCtrl and model based on wxWidgets source
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Oct 7, 2023
1 parent 6c76ff6 commit cf514ed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/casewin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ CaseWindow::CaseWindow( wxWindow *parent, Case *c )
szvl->Add(m_finLabel, 0, wxEXPAND | wxALL, 0);

// navigation menu sizers
m_navigationMenu = new wxMetroDataViewCtrl(m_left_panel, ID_TechTree);
m_navigationMenu = new wxMetroDataViewTreeCtrl(m_left_panel, ID_TechTree);
wxBoxSizer* choice_sizer = new wxBoxSizer(wxHORIZONTAL);
choice_sizer->Add(m_navigationMenu, 1, wxALL | wxEXPAND, 0);
m_navigationMenu->SetBackgroundColour(wxColour(243, 243, 243));
Expand Down
2 changes: 1 addition & 1 deletion src/casewin.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class CaseWindow : public wxSplitterWindow, CaseEventListener
wxStaticText *m_techLabel;
wxStaticText* m_finLabel;
wxMetroButton *m_simButton, *m_resultsButton;
wxMetroDataViewCtrl *m_navigationMenu;
wxMetroDataViewTreeCtrl *m_navigationMenu;
wxDataViewItem m_previousPage;

// to allow switching case configurations with P50/P90 and PVUncertainty
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2762,8 +2762,8 @@ ConfigDialog::ConfigDialog( wxWindow *parent, const wxSize &size )
SetBackgroundColour( wxMetroTheme::Colour( wxMT_FOREGROUND ) );
CenterOnParent();

m_pTech = new wxMetroDataViewCtrl(this, ID_TechTree);
m_pFin = new wxMetroDataViewCtrl(this, ID_FinTree);
m_pTech = new wxMetroDataViewTreeCtrl(this, ID_TechTree);
m_pFin = new wxMetroDataViewTreeCtrl(this, ID_FinTree);

wxBoxSizer *choice_sizer = new wxBoxSizer( wxHORIZONTAL );
choice_sizer->Add( m_pTech, 1, wxALL|wxEXPAND, 0 );
Expand Down
2 changes: 1 addition & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ class ConfigDialog : public wxDialog

void UpdateFinTree();

wxMetroDataViewCtrl *m_pTech, *m_pFin;
wxMetroDataViewTreeCtrl *m_pTech, *m_pFin;
wxArrayString m_tnames, m_fnames;
wxString m_techname, m_finname;

Expand Down

0 comments on commit cf514ed

Please sign in to comment.