wxMaxima
Loading...
Searching...
No Matches
DrawSidebar.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 DRAWSIDEBAR_H
28#define DRAWSIDEBAR_H
29
30#include "precomp.h"
31#include <wx/wx.h>
32#include <wx/button.h>
33#include "EventIDs.h"
34#include "ButtonWrapSizer.h"
35#include <wx/panel.h>
36
38class DrawSidebar: public wxScrolled<wxPanel>
39{
40public:
41 explicit DrawSidebar(wxWindow *parent, int id = wxID_ANY);
49 void SetDimensions(int dimensions);
50 int GetDimensions() const { return m_dimensions; }
51protected:
52 void OnSize(wxSizeEvent &event);
53private:
54 Buttonwrapsizer *m_grid;
55 wxButton *m_draw_setup2d;
56 wxButton *m_draw_setup3d;
57 wxButton *m_draw_explicit;
58 wxButton *m_draw_implicit;
59 wxButton *m_draw_parametric;
60 wxButton *m_draw_points;
61 wxButton *m_draw_fgcolor;
62 wxButton *m_draw_fillcolor;
63 wxButton *m_draw_title;
64 wxButton *m_draw_key;
65 wxButton *m_draw_grid;
66 wxButton *m_draw_axis;
67 wxButton *m_draw_contour;
68 wxButton *m_draw_accuracy;
69 int m_dimensions;
70};
71
72#endif // DRAWSIDEBAR_H
This file contains the definition of the class Buttonwrapsizer that allows to select arbitrary unicod...
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
The class for the sidebar with the draw commands.
Definition: DrawSidebar.h:39
void SetDimensions(int dimensions)
Tell the sidebar if we currently are inside a 2D or a 3D plot command.
Definition: DrawSidebar.cpp:116
Definition: CellPointers.h:32