Esempio n. 1
0
//------------------------------------------------------------------------------
void OutputTree::ShowMenu(wxTreeItemId itemId, const wxPoint& pt)
{
   GmatTreeItemData *treeItem = (GmatTreeItemData *)GetItemData(itemId);
   theSubscriberName = treeItem->GetName();
   GmatTree::ItemType itemType = treeItem->GetItemType();
   
   #if DEBUG_OUTPUT_TREE
   MessageInterface::ShowMessage
      ("OutputTree::ShowMenu() theSubscriberName=%s\n", theSubscriberName.c_str());
   #endif
   
#if wxUSE_MENUS
   wxMenu menu;
   
   if (itemType == GmatTree::OUTPUT_REPORT)
   {
	   if (GmatGlobal::Instance()->GetRunMode() == GmatGlobal::TESTING)
	   {
		  menu.Append(POPUP_COMPARE_TEXT_LINES, wxT("Compare Text Lines"));
		  menu.Append(POPUP_COMPARE_NUMERIC_LINES, wxT("Compare Lines Numerically"));
		  menu.Append(POPUP_COMPARE_NUMERIC_COLUMNS, wxT("Compare Columns Numerically"));
	   }
   }
   
   PopupMenu(&menu, pt);
#endif // wxUSE_MENUS
}
Esempio n. 2
0
//------------------------------------------------------------------------------
void OutputTree::ShowMenu(wxTreeItemId itemId, const wxPoint& pt)
{
   GmatTreeItemData *treeItem = (GmatTreeItemData *)GetItemData(itemId);
   theSubscriberName = treeItem->GetName();
   GmatTree::ItemType itemType = treeItem->GetItemType();
   
   #if DEBUG_OUTPUT_TREE
   MessageInterface::ShowMessage
      (wxT("OutputTree::ShowMenu() theSubscriberName=%s\n"), theSubscriberName.c_str());
   #endif
   
#if wxUSE_MENUS
   wxMenu menu;
   
   if (itemType == GmatTree::OUTPUT_REPORT)
   {
      menu.Append(POPUP_COMPARE_NUMERIC_VALUES, wxT("Compare Numeric Values"));
      menu.Append(POPUP_COMPARE_TEXT_LINES, wxT("Compare Text Lines"));
   }
   
   PopupMenu(&menu, pt);
#endif // wxUSE_MENUS
}