31#include <wx/aui/aui.h>
40#ifndef _WXMAXIMA_TOOLBAR_H
41#define _WXMAXIMA_TOOLBAR_H
46 explicit ToolBar(wxWindow *parent);
80 if (GetToolEnabled(toolId) == state)
82 wxAuiToolBar::EnableTool(toolId, state);
90 wxAuiToolBar::SetToolBitmap(toolId, bitmap);
97 if (!m_needsInformation)
100 m_needsInformation =
true;
107 if (m_needsInformation)
110 m_needsInformation =
false;
120 plot_slider_id = 5500,
127 tb_animation_startStop,
147 wxBitmap m_followIcon;
148 wxBitmap m_needsInformationIcon;
149 wxBitmap m_PlayButton;
150 wxBitmap m_StopButton;
152 void CanUndo(
bool value)
154 if (value != m_canUndo_old)
157 m_canUndo_old = value;
161 void CanRedo(
bool value)
163 if (value != m_canRedo_old)
166 m_canRedo_old = value;
170 void CanCopy(
bool value)
172 if (value != m_canCopy_old)
175 m_canCopy_old = value;
179 void CanCut(
bool value)
181 if (value != m_canCut_old)
184 m_canCut_old = value;
188 void CanSave(
bool value)
190 if (value != m_canSave_old)
193 m_canSave_old = value;
197 void CanPrint(
bool value)
199 if (value != m_canPrint_old)
202 m_canPrint_old = value;
206 void CanEvalTillHere(
bool value)
208 if (value != m_canEvalTillHere_old)
212 m_canEvalTillHere_old = value;
216 void CanEvalThisCell(
bool value)
218 if (value != m_canEvalThisCell_old)
221 m_canEvalThisCell_old = value;
234 void WorksheetEmpty(
bool value)
236 if (value != m_worksheetEmpty_old)
239 m_worksheetEmpty_old = value;
246 int GetIdealHeight(){
247 return m_needsInformationIcon.GetSize().y;
266 wxBitmap GetEvalAllBitmap(wxSize siz);
267 wxBitmap GetEvalBitmap(wxSize siz);
268 wxBitmap GetPreferencesBitmap(wxSize siz);
269 wxBitmap GetSelectAllBitmap(wxSize siz);
270 wxBitmap GetRestartBitmap(wxSize siz);
271 wxBitmap GetInterruptBitmap(wxSize siz);
272 wxBitmap GetEvalTillHereBitmap(wxSize siz);
273 wxBitmap GetEvalRestBitmap(wxSize siz);
275 wxSize GetOptimalBitmapSize();
282 static std::vector<ToolBarSections::Section>
SectionOrder();
284 static void SectionOrder(
const std::vector<ToolBarSections::Section> &order);
293 void OnSize(wxSizeEvent &event);
294 void OnMouseRightDown(wxMouseEvent &event);
295 void OnMenu(wxCommandEvent &event);
300 GroupType m_defaultCellStyle = GC_TYPE_CODE;
302 wxChoice *m_textStyle =
nullptr;
304 std::size_t m_animationDisplayedIndex = 0;
306 std::size_t m_animationMaxIndex;
307 bool m_canRedo_old =
true;
308 bool m_canUndo_old =
true;
309 bool m_canCopy_old =
true;
310 bool m_canCut_old =
true;
311 bool m_canSave_old =
true;
312 bool m_canPrint_old =
true;
313 bool m_canEvalTillHere_old =
true;
314 bool m_canEvalThisCell_old =
true;
316 bool m_canFormatText_old =
true;
317 bool m_worksheetEmpty_old =
false;
320 bool m_needsInformation =
false;
This file declares the class AnimationCell.
This file defines the class GroupCell that bundles input and output in the worksheet.
GroupType
All types a GroupCell can be of.
Definition: GroupCell.h:43
Character formatting (bold, italic, superscript, ...) of the text in a text cell (GH #492).
std::uint8_t Format
The formatting of one character: a combination of the flags below.
Definition: TextFormat.h:68
Definition: AnimationCell.h:46