コード例 #1
0
ファイル: variabledlg.cpp プロジェクト: TomTheGeek/Rocrail
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
ファイル: weatherdlg.cpp プロジェクト: pmansvelder/Rocrail
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
ファイル: powermandlg.cpp プロジェクト: TheMRod/Rocrail
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
ファイル: textdialog.cpp プロジェクト: KlausMerkert/FreeRail
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
ファイル: stagedlg.cpp プロジェクト: KlausMerkert/FreeRail
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);
}