Example #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();
}
Example #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();
}
Example #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();
}
Example #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();
}
Example #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);
}