Mercurial > octave
comparison libinterp/corefcn/graphics.in.h @ 26869:992f55ef87f5
Use an uitoolbar and ui*tools to build the default figure toolbar (bug #55795)
* Figure.[cc,h] (mouse_mode_to_string, mouse_mode_from_string): Remove functions.
(createFigureToolBarAndMenuBar, updateFigureToolBarAndMenuBar): Remove methods.
(Figure::Figure): Instantiate the menubar here. Simplify size handling now
that the toolbar is created in addCustomToolBar.
(Figure::addCustomToolBar): Add optional argument to signal if the toolbar
is the default one.
(Figure::autoAxes, Figrue::toggleGrid, Figure::toggleAxes): Remove methods.
* GLCanvas.[cc,h] (GLCanvas::autoAxes, GLCanvas::toggleGrid,
GLCanvas::toggleAxes): Ditto.
* Canvas.[cc,h] (Canvas::canvasAutoAxes, Canvas::canvasToggleGrid,
Canvas::canvasToggleAxes): Ditto.
(Canvas::setCursor): Use resourse_manager to retrieve icons.
* MouseModeActionGroup.[cc, h]: Remove unnecessary class file.
* __add_default_menu__.m: Add default toobar and associated buttons.
* libgui/graphics/qthandles.qrc: Remove file
* libgui/graphics/images: Remove directory.
* libgui/graphics/module.mk: Update to eliminate the Crystal icons resources.
* libgui/src/resources.qrc: Include new figure-* png icons
* libgui/src/module.mk: Include new figure-* png icons
* libgui/src/icons/icons_license: Document the origin of figure-* icons
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Thu, 07 Mar 2019 22:53:33 +0100 |
parents | 0adb232f93b9 |
children | 6e019db9c0a6 |
comparison
equal
deleted
inserted
replaced
26868:23894ad6f7d1 | 26869:992f55ef87f5 |
---|---|
5982 bool_property enable , "on" | 5982 bool_property enable , "on" |
5983 bool_property separator , "off" | 5983 bool_property separator , "off" |
5984 string_property tooltipstring , "" | 5984 string_property tooltipstring , "" |
5985 | 5985 |
5986 // Octave-specific properties | 5986 // Octave-specific properties |
5987 string_property __named_icon__ , "" | |
5987 any_property __object__ h , Matrix () | 5988 any_property __object__ h , Matrix () |
5988 END_PROPERTIES | 5989 END_PROPERTIES |
5989 | 5990 |
5990 protected: | 5991 protected: |
5991 void init (void) | 5992 void init (void) |
6045 bool_property separator , "off" | 6046 bool_property separator , "off" |
6046 bool_property state , "off" | 6047 bool_property state , "off" |
6047 string_property tooltipstring , "" | 6048 string_property tooltipstring , "" |
6048 | 6049 |
6049 // Octave-specific properties | 6050 // Octave-specific properties |
6051 string_property __named_icon__ , "" | |
6050 any_property __object__ h , Matrix () | 6052 any_property __object__ h , Matrix () |
6051 END_PROPERTIES | 6053 END_PROPERTIES |
6052 | 6054 |
6053 protected: | 6055 protected: |
6054 void init (void) | 6056 void init (void) |