wxMaxima
Loading...
Searching...
No Matches
ToolBarSections.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) 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
35#ifndef WXMAXIMA_TOOLBARSECTIONS_H
36#define WXMAXIMA_TOOLBARSECTIONS_H
37
38#include <vector>
39#include <wx/string.h>
40
41namespace ToolBarSections {
42
48enum class Section {
49 New,
50 OpenSave,
51 Print,
52 UndoRedo,
53 Options,
54 CopyPaste,
55 SelectAll,
56 Search,
58 Evaluate,
59 HideCode,
60 CellStyle,
62 Animation,
64 Help
65};
66
68const std::vector<Section> &DefaultOrder();
69
71wxString Key(Section section);
72
74wxString VisibilityConfigKey(Section section);
75
77bool ShownByDefault(Section section);
78
90std::vector<Section> ParseOrder(const wxString &stored);
91
93wxString OrderToString(const std::vector<Section> &order);
94
102bool SeparatorBetween(Section left, Section right);
103
104} // namespace ToolBarSections
105
106#endif // WXMAXIMA_TOOLBARSECTIONS_H
Section
A section of the main toolbar.
Definition: ToolBarSections.h:48
@ New
The "New document" button.
@ Search
The "Find and replace" button.
@ Print
The "Print" button.
@ FlexibleSpace
Empty space that pushes everything after it to the right.
@ OpenSave
The "Open" and "Save" buttons.
@ Help
The "Help" button.
@ SelectAll
The "Select all" button.
@ CopyPaste
"Cut", "Copy" and "Paste"
@ UndoRedo
The "Undo" and "Redo" buttons.
@ Evaluate
The four evaluation buttons.
@ CellStyle
The drop-down list that sets the type of the current cell.
@ Animation
The animation start/stop button and the animation slider.
@ TextFormat
Bold, italic, underline and strikethrough for text cells.
@ Options
The button that opens the configuration dialogue.
@ HideCode
The "Hide code" button.
@ MaximaControl
"Restart Maxima", "Interrupt" and "Follow"