Showing a plugin in the GUI

Development related to the GMAT core and GUI

Re: Showing a plugin in the GUI

Postby Ratzlaff » Wed Jul 15, 2009 11:21 pm

My plugin now shows up in the right-click context menu. When I add it and then double click the new entry, i get an empty frame:

panel.PNG
panel.PNG (7.22 KiB) Viewed 3957 times
Ratzlaff
 
Posts: 8
Joined: Mon Jun 29, 2009 9:23 pm

Re: Showing a plugin in the GUI

Postby Ratzlaff » Wed Jul 15, 2009 11:25 pm

nt
Last edited by Ratzlaff on Thu Jul 16, 2009 12:19 am, edited 3 times in total.
Ratzlaff
 
Posts: 8
Joined: Mon Jun 29, 2009 9:23 pm

Re: Showing a plugin in the GUI

Postby DJCinSB » Wed Jul 15, 2009 11:32 pm

Does the "ShowScript" button work for the panel that does open?

I'll do a bit of thinking/code poking to see if I see a reason for the exception -- basically, that means looking to see where I missed setting a pointer, I suspect. Does GMAT close if you press the Ignore button, or does it stay up and running? (I'd guess it closes; just trying to confirm.)

If we don't figure something out, I might need to stop by to do some code poking with your plug-in in situ; can't do that for a week or so, though. Are you compiling in the Phoenix building?

- DJC
DJCinSB
 
Posts: 274
Joined: Mon Jun 09, 2008 3:57 pm

Re: Showing a plugin in the GUI

Postby Ratzlaff » Thu Jul 16, 2009 12:18 am

Figured it out, I had not overridden "IsParameterReadOnly". GmatBase was throwing an exception and it wasnt being caught

While debugging it, I changed the marked code in ResourceTree.cpp line 1146
Used to be GmatTree::REPORT_FILE
Code: Select all
      else
      {
         // User subscribers
         AppendItem(itemId, wxT(objName), GmatTree::ICON_REPORT, -1,
                    new GmatTreeItemData(wxT(objName),
                        >>>>>>>>>>>> GmatTree::SUBSCRIBER)); <<<<<<<<<<<<<<
      }
Ratzlaff
 
Posts: 8
Joined: Mon Jun 29, 2009 9:23 pm

Re: Showing a plugin in the GUI

Postby DJCinSB » Thu Jul 16, 2009 1:21 am

Ratzlaff wrote:...
While debugging it, I changed the marked code in ResourceTree.cpp line 1146
Used to be GmatTree::REPORT_FILE
Code: Select all
      else
      {
         // User subscribers
         AppendItem(itemId, wxT(objName), GmatTree::ICON_REPORT, -1,
                    new GmatTreeItemData(wxT(objName),
                        >>>>>>>>>>>> GmatTree::SUBSCRIBER)); <<<<<<<<<<<<<<
      }

Thanks for pointing this out. I've updated the development code to match.
DJCinSB
 
Posts: 274
Joined: Mon Jun 09, 2008 3:57 pm

Previous

Return to Core Development

Who is online

Users browsing this forum: No registered users and 3 guests

cron