wxMaxima
Loading...
Searching...
No Matches
StatSidebar.h
Go to the documentation of this file.
1// -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2//
3// Copyright (C) 2004-2015 Andrej Vodopivec <andrej.vodopivec@gmail.com>
4// (C) 2012 Doug Ilijev <doug.ilijev@gmail.com>
5// (C) 2014-2015 Gunter Königsmann <wxMaxima@physikbuch.de>
6//
7// This program is free software; you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation; either version 2 of the License, or
10// (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21//
22// SPDX-License-Identifier: GPL-2.0+
23
27#ifndef STATSIDEBAR_H
28#define STATSIDEBAR_H
29
30#include "precomp.h"
31#include <wx/wx.h>
32#include <wx/button.h>
33#include "EventIDs.h"
34#include <wx/sizer.h>
35#include <wx/panel.h>
36
37class Buttonwrapsizer;
38
39class StatSidebar : public wxScrolled<wxPanel>
40{
41public:
42 explicit StatSidebar(wxWindow *parent, int ID = wxID_ANY);
43
49 void UpdateVirtualSize();
50
51protected:
53 void OnSize(wxSizeEvent &event);
54
55private:
57 Buttonwrapsizer *m_wrapSizer = {};
59 wxSize m_lastVirtualSize;
60};
61
62#endif // STATSIDEBAR_H
This file declares the class EventIDs that contains unique IDs for many events wxMaxima needs.
This class generates a pane containing the last commands that were issued.
Definition: ButtonWrapSizer.h:40
Definition: StatSidebar.h:40
void OnSize(wxSizeEvent &event)
Calls UpdateVirtualSize() whenever the sidebar's size changes.
Definition: StatSidebar.cpp:142
void UpdateVirtualSize()
Grow the virtual height to the wrapped button rows.
Definition: StatSidebar.cpp:123
Definition: CellPointers.h:32