Hi
I have a general question about the possibilities for expanding gedi with one's own menu items.
I understand this example given in the OA help.
main()
{
int id = moduleAddMenu("MyTools");
int id2 = moduleAddSubMenu("MyTools2", id);
int tb = moduleAddToolBar("toolbar1");
DebugN(id, id2, tb);
int id3 = moduleAddAction("Find in Files", "", "Ctrl+I", id, -1, "find");
int id4 = moduleAddAction("action 2", "undo", "", id, tb, "action2");
int id5 = moduleAddAction("action 3", "redo", "", id2, tb, "action3");
moduleAddDockModule("myDock", "projAdmin/console.pnl");
}
void find()
{
ModuleOnWithPanel("Find", -2, -2, 100, 200, 1, 1, "", "grep.pnl", "", makeDynString());
}
Is possible to write actions like?
- For every object in the panel being edited
if objectName like "valve" then select/delete/send to back etc
OR
- copy and paste selected object and rename.
I'm just hoping to find out if this sort of thing is done and if so is there a doc on the topic.
Many thanks
Colm
Gedi Expandability
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Gedi Expandability
Altough you can address the shapes inside the panel im Gedi, there is currently no functionality to allow you to trigger
the mentioned actions in gedi, but that sounds like a nice idea.
Example to address the shapes in the panel from the callback in a gedi extension script:
the mentioned actions in gedi, but that sounds like a nice idea.
Example to address the shapes in the panel from the callback in a gedi extension script:
Code: Select all
work()
{
dyn_string shapeNames = getShapes(myModuleName(), rootPanel(), "");
for (int i = 1; i- Colm
- Posts:2
- Joined: Fri Nov 02, 2018 3:31 pm
Re: Gedi Expandability
Thanks a million Martin
I think I will be able to achieve what I need working with the panel xml files.
Have a great day.
Colm
I think I will be able to achieve what I need working with the panel xml files.
Have a great day.
Colm