187 lines
5.8 KiB
C++
187 lines
5.8 KiB
C++
// This code implementation is the intellectual property of
|
|
// the RD44 GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: faccb1.cxx,v 2.1 1998/07/12 02:39:12 urbi Exp $
|
|
// GEANT4 tag $Name: geant4-00 $
|
|
//
|
|
/*
|
|
This is version 4.5 of XVT-Architect.
|
|
This file was automatically generated by XVT-Architect,
|
|
Do not modify its contents.
|
|
*/
|
|
|
|
#include "factory.h"
|
|
#include "XVTPwr.h"
|
|
#include "AppDef.h"
|
|
#include PwrGen_i
|
|
#include "facdec.h"
|
|
#include "classes.h"
|
|
#include "defines.h"
|
|
#include "faccb.h"
|
|
#define _PA_REF(x) x=x
|
|
|
|
void _Init_GUI_faccb1() { }
|
|
|
|
void* C_G4XvtGUI1002_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
CApplication* anInstance = NULL;
|
|
return anInstance;
|
|
}
|
|
|
|
void I_G4XvtGUI1002_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData, CDataMembers* theDataMembers)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
_PA_REF(theDataMembers);
|
|
G4XvtGUI* anInstance = PtrCast(G4XvtGUI, theData);
|
|
if (!anInstance) return;
|
|
|
|
|
|
|
|
}
|
|
|
|
CFactoryElement _G4XvtGUI1002DEFAULT(&GUIFactory, G4XvtGUI1002, 20000, 4, C_G4XvtGUI1002_GUI_DEFAULT, I_G4XvtGUI1002_GUI_DEFAULT, 0, 0, 1, 1, 0);
|
|
|
|
void* C_progStatus_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
CSubview* anEnclosure = PtrCast( CSubview, theData );
|
|
CStatusBar *anInstance = new CStatusBar( anEnclosure );
|
|
return anInstance;
|
|
}
|
|
|
|
void I_progStatus_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData, CDataMembers* theDataMembers)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
_PA_REF(theDataMembers);
|
|
CStatusBar* anInstance = PtrCast(CStatusBar, theData);
|
|
if (!anInstance) return;
|
|
|
|
|
|
IPAFactoryView(anInstance, "", NULLcmd, NULLcmd, TRUE, TRUE, FALSE, RIGHTSTICKY, FALSE, FALSE);
|
|
|
|
|
|
anInstance->IStatusBar(2, 2, 5, 3, 0);
|
|
|
|
}
|
|
|
|
CFactoryElement _progStatusDEFAULT(&GUIFactory, progStatus, 20124, 3, C_progStatus_GUI_DEFAULT, I_progStatus_GUI_DEFAULT, G4Win, 0, 1, 5, 0);
|
|
|
|
void* C_CMenuButton1076_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
CSubview* anEnclosure = PtrCast( CSubview, theData );
|
|
CMenuButton *anInstance = new CMenuButton( anEnclosure, CRect((UNITS)82, (UNITS)3, (UNITS)105, (UNITS)26), STARTcmd );
|
|
return anInstance;
|
|
}
|
|
|
|
void I_CMenuButton1076_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData, CDataMembers* theDataMembers)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
_PA_REF(theDataMembers);
|
|
CMenuButton* anInstance = PtrCast(CMenuButton, theData);
|
|
if (!anInstance) return;
|
|
|
|
|
|
IPAFactoryView(anInstance, "", NULLcmd, NULLcmd, TRUE, TRUE, FALSE, TOPSTICKY|LEFTSTICKY, FALSE, FALSE);
|
|
|
|
|
|
anInstance->SetTogglable( FALSE );
|
|
CImage anImage(1003);
|
|
CPicture* aPicture = new CPicture( anInstance, CPoint((UNITS)0, (UNITS)0), anImage );
|
|
_PA_REF(aPicture);
|
|
anInstance->SetCommands( NULLcmd, NULLcmd, START_INcmd, START_OUTcmd );
|
|
anInstance->SizeToFit();
|
|
|
|
|
|
}
|
|
|
|
CFactoryElement _CMenuButton1076DEFAULT(&GUIFactory, CMenuButton1076, 20126, 3, C_CMenuButton1076_GUI_DEFAULT, I_CMenuButton1076_GUI_DEFAULT, LogBar, 0, 1, 13, 3);
|
|
|
|
void* C_getComButton_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
CSubview* anEnclosure = PtrCast( CSubview, theData );
|
|
CMenuButton *anInstance = new CMenuButton( anEnclosure, CRect((UNITS)202, (UNITS)3, (UNITS)225, (UNITS)26), M_Retrieve_Commands );
|
|
return anInstance;
|
|
}
|
|
|
|
void I_getComButton_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData, CDataMembers* theDataMembers)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
_PA_REF(theDataMembers);
|
|
CMenuButton* anInstance = PtrCast(CMenuButton, theData);
|
|
if (!anInstance) return;
|
|
|
|
|
|
IPAFactoryView(anInstance, "", NULLcmd, NULLcmd, TRUE, TRUE, FALSE, TOPSTICKY|LEFTSTICKY, FALSE, FALSE);
|
|
|
|
|
|
anInstance->SetTogglable( FALSE );
|
|
CImage anImage(1008);
|
|
CPicture* aPicture = new CPicture( anInstance, CPoint((UNITS)0, (UNITS)0), anImage );
|
|
_PA_REF(aPicture);
|
|
anInstance->SetCommands( NULLcmd, NULLcmd, GET_COMMANDS_INcmd, GET_COMMANDS_OUTcmd );
|
|
anInstance->SizeToFit();
|
|
|
|
|
|
}
|
|
|
|
CFactoryElement _getComButtonDEFAULT(&GUIFactory, getComButton, 20126, 3, C_getComButton_GUI_DEFAULT, I_getComButton_GUI_DEFAULT, LogBar, 0, 1, 13, 8);
|
|
|
|
void* C_mainTextArea_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
CSubview* anEnclosure = PtrCast( CSubview, theData );
|
|
NScrollText* anInstance = new NScrollText(anEnclosure, CRect((UNITS)0, (UNITS)30, (UNITS)484, (UNITS)255), TRUE, TRUE);
|
|
|
|
return anInstance;
|
|
}
|
|
|
|
void I_mainTextArea_GUI_DEFAULT(const PAFactory* theFactory, CObjectRWC* theData, CDataMembers* theDataMembers)
|
|
{
|
|
_PA_REF(theFactory);
|
|
_PA_REF(theData);
|
|
_PA_REF(theDataMembers);
|
|
NScrollText* anInstance = PtrCast(NScrollText, theData);
|
|
if (!anInstance) return;
|
|
|
|
{
|
|
CFont aFont;
|
|
aFont.Deserialize("01\\system\\0\\12\\");
|
|
CEnvironment anEnv(0xbffffff, 0x7000000, 0xbffffff, PAT_SOLID , 0x7000000, PAT_SOLID,1, aFont, M_COPY, P_SOLID, FALSE);
|
|
|
|
anInstance->SetEnvironment(anEnv);
|
|
}
|
|
|
|
|
|
IPAFactoryView(anInstance, "", NULLcmd, NULLcmd, TRUE, TRUE, FALSE, TOPSTICKY|RIGHTSTICKY|LEFTSTICKY|BOTTOMSTICKY, FALSE, FALSE);
|
|
|
|
unsigned anAttribute = TX_BORDER|TX_WRAP|0;
|
|
if ((anInstance->GetCWindow()->GetAttributes() & WSF_NO_MENUBAR) != 0)
|
|
anAttribute |= TX_NOMENU;
|
|
anInstance->INativeTextEdit(anAttribute, (UNITS)1000 ,1000, STRING2, FALSE,anInstance->IsVisible(), anInstance->GetGlue());
|
|
anInstance->SetTabSize(4);
|
|
|
|
|
|
anInstance->SetVIncrements((UNITS)1 , (UNITS)10);
|
|
anInstance->SetHIncrements((UNITS)10 , (UNITS)50);
|
|
|
|
}
|
|
|
|
CFactoryElement _mainTextAreaDEFAULT(&GUIFactory, mainTextArea, 20041, 3, C_mainTextArea_GUI_DEFAULT, I_mainTextArea_GUI_DEFAULT, G4Win, 0, 1, 5, 2);
|
|
|