wxMaxima
Loading...
Searching...
No Matches
PerformanceSidebar.h
1// -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2//
3// Copyright (C) 2026 Gunter Königsmann <wxMaxima@physikbuch.de>
4//
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//
20// SPDX-License-Identifier: GPL-2.0+
21
22#ifndef PERFORMANCESIDEBAR_H
23#define PERFORMANCESIDEBAR_H
24
25#include <wx/wx.h>
26#include <wx/panel.h>
27#include <wx/stattext.h>
28#include <map>
29
30class PerformanceSidebar : public wxScrolled<wxPanel>
31{
32public:
33 explicit PerformanceSidebar(wxWindow *parent, int ID = wxID_ANY);
34 void UpdateContents();
35
36private:
37 std::map<wxString, wxStaticText*> m_valueLabels;
38 void AddStat(wxSizer* sizer, const wxString& label, const wxString& key);
39};
40
41#endif // PERFORMANCESIDEBAR_H
Definition: PerformanceSidebar.h:31
Definition: CellPointers.h:32