31#define NUM_VISIBLE_ITEMS 10
75 delete GLObject.first;
84 if (GLObject.first == obj) {
85 GLObject.second->markAsFrontElement();
98 if (GLObject.first == obj) {
99 GLObject.second->deleteGLObject();
112 if (GLObject.first == obj) {
113 GLObject.second->selectGLObject();
126 if (GLObject.first == obj) {
176 grabowner->handle(
this, FXSEL(SEL_COMMAND, ID_UNPOST), ptr);
191 GLObject.first->hide();
220 new FXMenuSeparator(
this);
224 new FXMenuSeparator(
this);
227 for (
const auto& glo : 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
GUISelectedStorage gSelected
A global holder of selected objects.
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
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.