Esempio n. 1
0
//done
TInputDialog::TInputDialog(PTWindowObject pParent, LPCSTR lpszQuery, LPSTR lpszBuffer, int nBufLen) : TDialog(pParent, ID_INPUTDLG)
{
	this->lpszQuery = lpszQuery;
	this->lpszBuffer = lpszBuffer;
	this->nBufLen = nBufLen;
	new TEdit(this, 101, nBufLen);
	SetTransferBuffer(lpszBuffer);
}	//TInputDialog::TInputDialog
Esempio n. 2
0
TConfirmVertexDialog::TConfirmVertexDialog (TWindow* parent, TConfirmVertexDialogXfer &Xfer, TResId resId, TModule* module):
	TDialog(parent, resId, module)
{
//{{TConfirmVertexDialogXFER_USE}}
	pXPosCheck = new TCheckBox(this, IDC_CONFVE_XPOS, 0);
	pYPosCheck = new TCheckBox(this, IDC_CONFVE_YPOS, 0);

	SetTransferBuffer((void *) &Xfer);
//{{TConfirmVertexDialogXFER_USE_END}}
}
Esempio n. 3
0
///////////////////////////////////////////////////////////
// TConfirmThingDialog
// -------------------
//
TConfirmThingDialog::TConfirmThingDialog (TWindow* parent, TConfirmThingDialogXfer &XFer, TResId resId, TModule* module):
	TDialog(parent, resId, module)
{
//{{TConfirmThingDialogXFER_USE}}
	pAngleCheck   = newTCheckBox(this, IDC_ANGLE_CHECK, 0);
	pTypeCheck    = newTCheckBox(this, IDC_TYPE_CHECK, 0);
	pXPosCheck    = newTCheckBox(this, IDC_XPOS_CHECK, 0);
	pYPosCheck 	  = newTCheckBox(this, IDC_YPOS_CHECK, 0);
	pDeafCheck 	  = newTCheckBox(this, IDC_CONF_DEAF_CHECK, 0);
    pLevel12Check = newTCheckBox(this, IDC_CONF_LEVEL12_CHECK, 0);
    pLevel3Check  = newTCheckBox(this, IDC_CONF_LEVEL3_CHECK, 0);
    pLevel45Check = newTCheckBox(this, IDC_CONF_LEVEL45_CHECK, 0);
    pMultiCheck   = newTCheckBox(this, IDC_CONF_MULTI_CHECK, 0);

    SetTransferBuffer((void *) &XFer);
//{{TConfirmThingDialogXFER_USE_END}}
}
Esempio n. 4
0
TMobProgDia::TMobProgDia (TWindow* parent, TMobile *pMob,
      TArrayAsVector<TMobProgData*>& mobprogs, TResId resId, TModule* module):
   TDialog(parent, resId, module),
   orig( &mobprogs ),
   newprogs( 1, 0, 5 )
{
//{{TMobProgDiaXFER_USE}}
    Triggers = new TListBox(this, IDC_TRIGGERS);
    Program = new TEdit(this, IDC_PROGRAM, 2048);
    TheMobile = new TStatic(this, IDC_THEMOBILE, 255);
    FileName = new TStatic(this, IDC_FILENAME, 255);

    SetTransferBuffer(&TMobProgDiaData);
//{{TMobProgDiaXFER_USE_END}}

    // INSERT>> Your constructor code here.
    TheMob = pMob;

    // Copy the mobprogs & init the dialog box
    TheMobile->EnableTransfer();
    FileName->EnableTransfer();
    
    char szBuffer[256];
    BOOL fFirst = TRUE;
    TMobProgDiaData.Triggers.Clear();
    for (TArrayAsVectorIterator<TMobProgData*> it(mobprogs); it; it++)
       {
       wsprintf(szBuffer, "%s %s", it.Current()->type.c_str(),
          it.Current()->arglist.c_str());
       TMobProgDiaData.Triggers.AddString(szBuffer, fFirst);

       if (fFirst)
          {
          strcpy(TMobProgDiaData.FileName, it.Current()->MobFile.c_str());
          strcpy(TMobProgDiaData.Program, it.Current()->comlist.c_str());
          fFirst = FALSE;
          }

       newprogs.Add(new TMobProgData(*it.Current()));
       }

    pMob->GetName(TMobProgDiaData.TheMobile,
       sizeof (TMobProgDiaData.TheMobile));
}
Esempio n. 5
0
TCostTypeDialog::TCostTypeDialog(TWindow* parent, TResId resId, TModule* module)
:
    TDialog(parent, resId, module)
{
//{{TCostTypeDialogXFER_USE}}
  Inputs = new TCheckBox(this, IDC_COSTINPUTS, 0);
  Literals = new TCheckBox(this, IDC_COSTLITERALS, 0);
  Terms = new TCheckBox(this, IDC_COSTTERMS, 0);
  LiteralsCNF = new TCheckBox(this, IDC_COSTLITERALSCNF, 0);
  LiteralsDNF = new TCheckBox(this, IDC_COSTLITERALSDNF, 0);
  TermsCNF = new TCheckBox(this, IDC_COSTTERMSCNF, 0);
  TermsDNF = new TCheckBox(this, IDC_COSTTERMSDNF, 0);
  InputsCNF = new TCheckBox(this, IDC_COSTTYPEINPUTCNF, 0);
  InputsDNF = new TCheckBox(this, IDC_COSTTYPEINPUTDNF, 0);

  SetTransferBuffer(&TCostTypeDialogData);
//{{TCostTypeDialogXFER_USE_END}}

  // INSERT>> Your constructor code here.

}
Esempio n. 6
0
TFileFormatDialog::TFileFormatDialog (TWindow* parent, TResId resId, TModule* module):
    TDialog(parent, resId, module),
    hTestFixedFont( 0 ),
    xFont( poundsApp::xFont ),
    yFont( poundsApp::yFont )
{
//{{TFileFormatDialogXFER_USE}}
    MercMode = new TRadioButton(this, IDC_MERC, 0);
    TFCMode = new TRadioButton(this, IDC_TFCMUD, 0);
    EnvyMode = new TRadioButton(this, IDC_ENVY, 0);
    MobProgs = new TCheckBox(this, IDC_MOBPROGS, 0);
    RomMode = new TRadioButton(this, IDC_ROM, 0);
    Envy20Mode = new TRadioButton(this, IDC_ENVY20, 0);
    OghamMode = new TRadioButton(this, IDC_OGHAM, 0);
    Rom24Mode = new TRadioButton(this, IDC_ROM24, 0);

    SetTransferBuffer(&TFileFormatDialogData);
//{{TFileFormatDialogXFER_USE_END}}

    // INSERT>> Your constructor code here.
    MuditorApp = TYPESAFE_DOWNCAST(GetApplication(), poundsApp);
    TFileFormatDialogData.MercMode =
       (MuditorApp->CurrentMode == poundsApp::MercMode);
    TFileFormatDialogData.TFCMode =
       (MuditorApp->CurrentMode == poundsApp::TFCMode);
    TFileFormatDialogData.EnvyMode =
       (MuditorApp->CurrentMode == poundsApp::EnvyMode);
    TFileFormatDialogData.RomMode =
       (MuditorApp->CurrentMode == poundsApp::RomMode);
    TFileFormatDialogData.Envy20Mode =
       (MuditorApp->CurrentMode == poundsApp::Envy2Mode);
    TFileFormatDialogData.OghamMode =
       (MuditorApp->CurrentMode == poundsApp::OghamMode);
    TFileFormatDialogData.Rom24Mode =
       (MuditorApp->CurrentMode == poundsApp::Rom24Mode);

    TFileFormatDialogData.MobProgs = MuditorApp->fMOBprograms;
}