示例#1
0
void VariableDlg::onActions( wxCommandEvent& event )
{
  if( m_Props == NULL )
    return;

  ActionsCtrlDlg*  dlg = new ActionsCtrlDlg(this, m_Props );

  if( wxID_OK == dlg->ShowModal() ) {
  }

  dlg->Destroy();
}
示例#2
0
void WeatherDlg::onActions( wxCommandEvent& event ) {
  if( m_Props == NULL ) {
    return;
  }

  ActionsCtrlDlg*  dlg = new ActionsCtrlDlg(this, m_Props, "sunrise,noon,sunset" );

  if( wxID_OK == dlg->ShowModal() ) {
    // TODO: inform
  }

  dlg->Destroy();
}
示例#3
0
void PowerManDlg::onActions( wxCommandEvent& event )
{
    if( m_Props == NULL )
        return;

    ActionsCtrlDlg*  dlg = new ActionsCtrlDlg(this, m_Props, "load,shortcut " );

    if( wxID_OK == dlg->ShowModal() ) {
        // TODO: inform
    }

    dlg->Destroy();
}
示例#4
0
void TextDialog::OnTextActionsClick( wxCommandEvent& event )
{
  if( m_Props == NULL )
    return;

  ActionsCtrlDlg*  dlg = new ActionsCtrlDlg(this, m_Props );

  if( wxID_OK == dlg->ShowModal() ) {
    // TODO: inform
  }

  dlg->Destroy();
}
示例#5
0
void StageDlg::onActions( wxCommandEvent& event ) {
  if( m_Props == NULL )
    return;

  char* substates = NULL;
  iONode section = wStage.getsection(m_Props);
  while( section != NULL ) {
    const char* id = wStageSection.getid(section);
    if( substates != NULL )
      substates = StrOp.cat(substates, ",");
    substates = StrOp.cat(substates, id);
    section = wStage.nextsection(m_Props, section);
  }

  ActionsCtrlDlg*  dlg = new ActionsCtrlDlg(this, m_Props, "ghost,enter,occupied,reserved,free,closed,depart,exit,section", substates );

  if( wxID_OK == dlg->ShowModal() ) {
    // TODO: inform
  }
  dlg->Destroy();

  StrOp.free(substates);
}