示例#1
0
void CBOINCBitmapComboBox::OnSelection(wxCommandEvent& event) {
    Refresh();      // To draw the bitmap
    event.Skip();
}
示例#2
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnProjectoptions( wxCommandEvent& event )
{
    event.Skip();
}
示例#3
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnRebuildall( wxCommandEvent& event )
{
    event.Skip();
}
示例#4
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnIncrsearch( wxCommandEvent& event )
{
    event.Skip();
}
示例#5
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnProjectadd( wxCommandEvent& event )
{
    event.Skip();
}
示例#6
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnCloseproject( wxCommandEvent& event )
{
    event.Skip();
}
示例#7
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnFindnext( wxCommandEvent& event )
{
    event.Skip();
}
示例#8
0
void LLDBPlugin::OnWorkspaceLoaded(wxCommandEvent& event)
{
    event.Skip();
}
示例#9
0
void LLDBPlugin::OnInitDone(wxCommandEvent& event)
{
    event.Skip();
}
void SaveSelectionDlg::OnCancelClick( wxCommandEvent& event )
{
	event.Skip();
	EndDialog(wxID_CANCEL);
}
示例#11
0
void InterpreterDisAsmFrame::HandleCommand(wxCommandEvent& event)
{
	CPUThread* thr = (CPUThread*)event.GetClientData();
	event.Skip();

	if(!thr)
	{
		switch(event.GetId())
		{
		case DID_STOPPED_EMU:
			UpdateUnitList();
		break;

		case DID_PAUSED_EMU:
			//DoUpdate();
		break;
		}
	}
	else if(CPU && thr->GetId() == CPU->GetId())
	{
		switch(event.GetId())
		{
		case DID_PAUSE_THREAD:
			m_btn_run->Disable();
			m_btn_step->Disable();
			m_btn_pause->Disable();
		break;

		case DID_PAUSED_THREAD:
			m_btn_run->Enable();
			m_btn_step->Enable();
			m_btn_pause->Disable();
			DoUpdate();
		break;

		case DID_START_THREAD:
		case DID_EXEC_THREAD:
		case DID_RESUME_THREAD:
			m_btn_run->Disable();
			m_btn_step->Disable();
			m_btn_pause->Enable();
		break;

		case DID_REMOVE_THREAD:
		case DID_STOP_THREAD:
			m_btn_run->Disable();
			m_btn_step->Disable();
			m_btn_pause->Disable();

			if(event.GetId() == DID_REMOVE_THREAD)
			{
				//m_choice_units->SetSelection(-1);
				//wxCommandEvent event;
				//event.SetInt(-1);
				//event.SetClientData(nullptr);
				//OnSelectUnit(event);
				UpdateUnitList();
				//DoUpdate();
			}
		break;
		}
	}
	else
	{
		switch(event.GetId())
		{
		case DID_CREATE_THREAD:
			UpdateUnitList();
			if(m_choice_units->GetSelection() == -1)
			{
				//m_choice_units->SetSelection(0);
				//wxCommandEvent event;
				//event.SetInt(0);
				//event.SetClientData(&Emu.GetCPU().GetThreads()[0]);
				//OnSelectUnit(event);
			}
		break;

		case DID_REMOVED_THREAD:
			UpdateUnitList();
		break;
		}
	}
}
示例#12
0
/*---------------------------------------------------------------------------*/
void wxDropObject::OnObjTypeSelected( wxCommandEvent& event )
{
   PopulateNameList((wxSQLiteObjectType)m_ChoiceObjType->GetSelection());
   event.Skip();
}
void PythonIOCtrl::OnTextChange(wxCommandEvent &e)
{
//    if(m_line_entry_mode && this->GetInsertionPoint()<m_line_entry_point)
//        return;
    e.Skip(true);
}
示例#14
0
void MyFrame::OnToggleBell(wxCommandEvent& event)
{
    m_silent = !m_silent;
    wxValidator::SuppressBellOnError(m_silent);
    event.Skip();
}
示例#15
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnSaveprojectas( wxCommandEvent& event )
{
    event.Skip();
}
示例#16
0
void MainWindow::OnChangeForm(wxCommandEvent& event)
{
	int id=event.GetId();
	wxTreeItemId itemId = tree->GetSelection();
	NodeTree *itemData = itemId.IsOk() ? (NodeTree *) tree->GetItemData(itemId):NULL;
	
	if ((id==ID_MODIFYFACE)&&(itemData->pointer.facesetpart))
	{
		typ=1;
		vsele=new FaceSelection(this,wxID_ANY,wxString("FaceSetPart"),itemData->pointer.facesetpart);
		vsele->Show(true);
		editionVisible=true;
		vsele->MakeModal(true);
		return;
	}

	if((id==ID_CHANGEFORM)&&(itemData->pointer.prismaticpart))
	{
		typ=2;
		view=new globalView(this,wxID_ANY,wxT("Edit Prism"));
		view->Show(true);
		editionVisible=true;
		view->MakeModal(true);
		view->LoadFace(itemData->pointer.prismaticpart->getPolygonalBase());
		return;
	}

	if(id==ID_SELECTEDFACE)
	{
		vsele->Show(false);
		vsele->MakeModal(false);
		ini= new InitialProperties(this,itemData,wxT("Properties"),ID_ADDFACESET);
		ini->Show(true);
		ini->getface()->getcanvas()->GetView()->Show(true);
		ini->getface()->getcanvas()->MakeModal(true);
		ini->getface()->getcanvas()->GetView()->LoadFace(*(vsele->getFaceSelected()));
		ini->getface()->setType(true);
		ini->getface()->setIndex(vsele->numSelected());
	}

	if(id==ID_CANCELSELECTION)
	{
		vsele->Show(false);
		editionVisible=false;
		vsele->MakeModal(false);
	}

	if (id==ID_CANCELDESIGN)
	{
		view->Show(false);
		editionVisible=false;
		view->MakeModal(false);
	}

	if ((id==ID_ADDOWNFACE)&&(typ==2))
	{
		itemData->pointer.prismaticpart->setPolygonalBase(*(view->GetFace()));
		view->Show(false);
		view->MakeModal(false);
		editionVisible=false;
		id=NULL;
	}
	event.Skip();
}
示例#17
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnSessionsave( wxCommandEvent& event )
{
    event.Skip();
}
示例#18
0
void NewBuildTab::OnWorkspaceLoaded(wxCommandEvent& e)
{
    e.Skip();
    DoClear();
    InitView();
}
示例#19
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnNewinstance( wxCommandEvent& event )
{
    event.Skip();
}
示例#20
0
void NewBuildTab::OnThemeChanged(wxCommandEvent& event)
{
    event.Skip();
    InitView();
}
示例#21
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnReplace( wxCommandEvent& event )
{
    event.Skip();
}
示例#22
0
void DialogStyleEditor::OnPreviewTextChange (wxCommandEvent &event) {
	SubsPreview->SetText(PreviewText->GetValue());
	event.Skip();
}
示例#23
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnNewprojectfile( wxCommandEvent& event )
{
    event.Skip();
}
示例#24
0
/// @brief Command event to update preview
void DialogStyleEditor::OnCommandPreviewUpdate (wxCommandEvent &event) {
	if (!IsShownOnScreen()) return;
	UpdateWorkStyle();
	SubsPreview->SetStyle(*work);
	event.Skip();
}
示例#25
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnProjectremove( wxCommandEvent& event )
{
    event.Skip();
}
示例#26
0
// OnOK() calls wxWindow::Validate, then wxWindow::TransferDataFromWindow.
// If this returns TRUE, the function either calls EndModal(wxID_OK) if the
// dialog is modal, or sets the return value to wxID_OK and calls Show(FALSE)
// if the dialog is modeless.
void CJoinDialog::OnOK(wxCommandEvent& event) 
{
	event.Skip(); //EndModal(wxID_OK); //AIModalDialog::OnOK(event); // not virtual in wxDialog
}
示例#27
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnCompileandrun( wxCommandEvent& event )
{
    event.Skip();
}
示例#28
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnNewtemplate( wxCommandEvent& event )
{
    event.Skip();
}
示例#29
0
文件: fb_frame.cpp 项目: bihai/fbide
void FB_Frame::OnRun( wxCommandEvent& event )
{
    event.Skip();
}
示例#30
0
  virtual void startLogging( wxCommandEvent& event )
  {
    if (!wxDir::Exists(logDir->GetValue()))
    {
      int res = wxMessageBox(wxT("Directory: ") + 
                             logDir->GetValue() + 
                             wxT(" does not exist.  Create it now?"),
                             wxT(""),
                             wxOK | wxCANCEL);



      if (res == wxCANCEL)
      {
        event.Skip();
        return;
      }

      if (wxMkDir(logDir->GetValue().mb_str(wxConvUTF8), 0755) < 0) {
        wxMessageBox(wxT("Could not make directory: ") + logDir->GetValue());
        event.Skip();
        return;
      }
    }

    std::vector<std::string> selections = topicDisplay->getSelectedTopics();

    if (selections.size() == 0)
    {
      wxMessageBox(wxT("No topics selected."));
      event.Skip();
      return;
    }

    wxDateTime time = wxDateTime::Now();
    wxString dirName = logDir->GetValue() + wxT("/") + time.Format(wxT("%Y-%m-%d-%H-%M-%S"));

    if (wxMkDir(dirName.mb_str(wxConvUTF8), 0755) < 0) {
      wxMessageBox(wxT("Could not make directory: ") + dirName);
      event.Skip();
      return;
    }

    stopLogButton->Enable(true);
    startLogButton->Enable(false);
    statusBar->SetStatusText(wxT("Logging..."));

    ros::Time start = ros::Time::now();

    for (std::vector<std::string>::iterator i = selections.begin(); i != selections.end(); i++)
    {
      printf("vacuuming up [%s]\n", i->c_str());

      std::string sanitizedName = *i;

      for (size_t j = 0; j < sanitizedName.length(); j++)
      {
        char c = sanitizedName[j]; // sanitize it a bit
        if (c == '\\' || c == '/' || c == '#' || c == '&' || c == ';')
          sanitizedName[j] = '_';
      }
      
      LogRecorder<>* bag = new LogRecorder<>;

      sanitizedName = std::string( dirName.mb_str(wxConvUTF8) ) + 
                      std::string("/") +
                      sanitizedName +
                      std::string(".bag");

      if (bag->open_log(sanitizedName,
                        node->map_name(*i),
                        start))
      {
        node->subscribe(*i, *bag, &LogGui::dummyCb, this);
        bags.push_back(bag);
      } else {
        delete bag;
      }
    }

    event.Skip();
  }