Skip to content

Commit

Permalink
apps/radar/Lucid - linking zooms actions to rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dixon committed Jan 22, 2025
1 parent 07dcb25 commit 87212da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions codebase/apps/radar/src/Lucid/GuiManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,7 @@ void GuiManager::_populateZoomsMenu()

// create item for this entry

ZoomMenuItem *item = new ZoomMenuItem;
item->setManager(this);
ZoomMenuItem *item = new ZoomMenuItem(nullptr, this);
item->setZoomParams(&zparams);
item->setZoomIndex(izoom);

Expand Down
6 changes: 4 additions & 2 deletions codebase/apps/radar/src/Lucid/ZoomMenuItem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@

// Constructor

ZoomMenuItem::ZoomMenuItem(QObject *parent) :
ZoomMenuItem::ZoomMenuItem(QObject *parent,
GuiManager *manager) :
_parent(parent),
_manager(manager),
_zoomParams(NULL),
_zoomIndex(-1),
_act(NULL)

{
_manager = NULL;
// _manager = NULL;
}

// destructor
Expand Down
4 changes: 2 additions & 2 deletions codebase/apps/radar/src/Lucid/ZoomMenuItem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ class DLL_EXPORT ZoomMenuItem : public QObject {

// constructor

ZoomMenuItem(QObject *parent = nullptr);
ZoomMenuItem(QObject *parent,
GuiManager *manager);

// destructor

virtual ~ZoomMenuItem();

// set

void setManager(GuiManager *val) { _manager = val; }
void setZoomParams(Params::zoom_level_t *val) { _zoomParams = val; }
void setZoomIndex(int val) { _zoomIndex = val; }
void setAction(QAction *val) { _act = val; }
Expand Down

0 comments on commit 87212da

Please sign in to comment.