32#define NUM_VISIBLE_ITEMS 10
76 delete GLObject.first;
85 if (GLObject.first == obj) {
86 GLObject.second->markAsFrontElement();
99 if (GLObject.first == obj) {
100 GLObject.second->deleteGLObject();
113 if (GLObject.first == obj) {
114 GLObject.second->selectGLObject();
127 if (GLObject.first == obj) {
177 grabowner->handle(
this, FXSEL(SEL_COMMAND, ID_UNPOST), ptr);
192 GLObject.first->hide();
221 new FXMenuSeparator(
this);
225 new FXMenuSeparator(
this);
228 for (
const auto& GLObject : objects) {
233 new FXMenuSeparator(
this);
@ MID_CURSORDIALOG_SETFRONTELEMENT
@ MID_CURSORDIALOG_MOVEDOWN
move list down
@ MID_CURSORDIALOG_PROPERTIES
open properties popup
@ MID_CURSORDIALOG_FRONT
remove/select/mark front element
@ MID_CURSORDIALOG_MOVEUP
move list up
@ MID_CURSORDIALOG_DELETEELEMENT
delete element
@ MID_CURSORDIALOG_SELECTELEMENT
select element
FXDEFMAP(GUICursorDialog) GUICursorDialogMap[]
#define NUM_VISIBLE_ITEMS
GUIIcon
An enumeration of icons used by the gui applications.
Dialog for edit rerouter intervals.
void updateList()
update list
long onCmdMoveListDown(FXObject *, FXSelector, void *)
move list down
FXMenuCommand * myMoveUpMenuCommand
menu command for move up list
~GUICursorDialog()
destructor
long onCmdMoveListUp(FXObject *, FXSelector, void *)
move list up
long onCmdSelectElement(FXObject *, FXSelector, void *)
select element
long onCmdProcessFront(FXObject *, FXSelector, void *)
move list down
long onCmdUnpost(FXObject *, FXSelector, void *ptr)
unpost
std::vector< std::pair< FXMenuCommand *, GUIGlObject * > > myMenuCommandGLObjects
container for menu commands and GLObjects
int myListIndex
list index
long onCmdDeleteElement(FXObject *, FXSelector, void *)
delete element
GUIGLObjectPopupMenu::PopupType myType
FOX need this.
GUISUMOAbstractView * myView
pointer to view
void buildDialogElements(GUISUMOAbstractView *view, const FXString text, GUIIcon icon, FXSelector sel, const std::vector< GUIGlObject * > &objects)
build dialog elements
FXMenuCommand * myMoveDownMenuCommand
menu command for move down list
MFXMenuHeader * myMenuHeader
header
long onCmdOpenPropertiesPopUp(FXObject *, FXSelector, void *)
open properties popUp
long onCmdSetFrontElement(FXObject *, FXSelector, void *)
set front element
static FXMenuCommand * buildFXMenuCommand(FXComposite *p, const std::string &text, FXIcon *icon, FXObject *tgt, FXSelector sel, const bool disable=false)
build menu command
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
FXFont * getBoldFont()
get bold front
void replacePopup(GUIGLObjectPopupMenu *popUp)
replace PopUp
GUIMainWindow * getMainWindow() const
get main window
void destroyPopup()
destroys the popup