Exemplo n.º 1
0
Weatherer_c::Weatherer_c(char *name)
{
	SetClassName (name);
	
	bActive = TRUE;
	bOpen = TRUE;
}
Exemplo n.º 2
0
TextBlock::TextBlock()
{
    SetClassName(_T("TextBlock"));

    SetVerticalContentAlignment(suic::CENTER);
    SetHorizontalContentAlignment(suic::LEFT);
}
Exemplo n.º 3
0
void StringBrowser::Init (
    ButtonState* bs, int r, int c, boolean u, int h, const char* d
) {
    const int defaultSize = 256;

    SetClassName("StringBrowser");
    input = new Sensor;
    input->Catch(DownEvent);
    input->Catch(KeyEvent);

    strbufsize = selbufsize = defaultSize;
    strbuf = new char*[strbufsize];
    selbuf = new char*[selbufsize];
    strcount = selcount = 0;

    display = nil;
    lineheight = 0;
    rows = r;
    columns = c;
    uniqueSel = u;
    singleClick = false;
    highlight = h;
    lastx = lasty = -1;
    subject = bs;
    Resource::ref(subject);
    done = d;
    perspective = new Perspective;
    InitTextDisplay();
}
Exemplo n.º 4
0
 TreeButton(suic::ImageBrushPtr exp, suic::ImageBrushPtr cop)
     : _expanded(exp)
     , _collapsed(cop)
     , _bCollapsed(false)
 {
     SetClassName(_T("TreeButton"));
 }
Exemplo n.º 5
0
logical OField :: Read (PropertyHandle *ph )
{
  logical           term = NO;
BEGINSEQ
  dataSource.Read(PHREF(ph->GPH("data_ref")));
  
  if ( !strcmp(ph->GetPropertyPath(),"ADK_StyleAction.columns") )
    used_as = OFT_Column;
  else if ( !strcmp(ph->GetPropertyPath(),"ADK_StyleAction.regions") )
    used_as = OFT_Region;
  else if ( !strcmp(ph->GetPropertyPath(),"ADK_StyleAction.fields") )
    used_as = OFT_Control;
  
  if ( fieldControl = CACHE_READ(ph,"field_control",OFieldControl) )
  {
    *(OFieldControl *)this = *fieldControl;
    action_control = fieldControl;
  }
  else if ( autoOpen && used_as == OFT_Control )   OADIERR(99)
    
  UpdateStyleElement(ph);
  SetClassName(ph);
  
  delete frameStyle;
  frameStyle = new OFrameStyle;
  if ( ph = PHREF(ph->GPH("frame_style")) )
    frameStyle->Read(ph);
  
  SetupLabelSize(&labelPosition);

RECOVER
  term = YES;
ENDSEQ
  return(term);
}
Exemplo n.º 6
0
TreeViewItem::TreeViewItem()
    : _showDotLine(false)
    , _internalIndent(0)
{
    SetClassName(_T("TreeViewItem"));

    WriteFlag(CoreFlags::IsSupportMouseOver, true);

    SetHorizontalContentAlignment(HoriContentAlignment::Left);
    SetVerticalContentAlignment(VertContentAlignment::Center);

    SetPadding(suic::Rect(2,0,0,0));

    _check.SetAutoDelete(false);
    _icon.SetAutoDelete(false);

    _expand = new TreeButton();

    _check.SetVerticalAlignment(VertAlignment::Center);
    _icon.SetVerticalAlignment(VertAlignment::Center);    
    _expand->SetVerticalAlignment(VertAlignment::Center);

    _headerHost->AddChild(_expand.get());
    _headerHost->AddChild(&_check);
    _headerHost->AddChild(&_icon);

    SetHeader(new ui::Label());
    _header->SetMinHeight(16);
}
Exemplo n.º 7
0
Logo::Logo () { 
    SetClassName("Logo");
    input = new Sensor();
    input->Catch(KeyEvent);

    bitmap = nil;
    rainbow = 0;
}
Exemplo n.º 8
0
TextItem::TextItem (Painter* out, const char* s, int t) : (out, t) {
    Init(s);
}

void TextItem::Init (const char* s) {
    SetClassName("TextItem");
    text = s;
}
Exemplo n.º 9
0
void Banner::Init(char* lt, char* m, char* rt) {
    SetClassName("Banner");
    left = lt;
    middle = m;
    right = rt;
    highlight = false;
    inverse = nil;
}
Exemplo n.º 10
0
cVHPluginMgr::cVHPluginMgr(cServerDC *server,const string pluginDir):
	cPluginManager(pluginDir), mServer(server)
{
	SetClassName("cVHPluginMgr");
	if (Log(0))
		LogStream() << "using plugins in: " << pluginDir << endl;
	cout << "------------------------" << endl;
}
Exemplo n.º 11
0
		ProductInfo::ProductInfo() :
			m_uiID(0),
			m_dLensSeparation(0),
			m_dLensSeparationMin(0),
			m_dLensSeparationMax(0),
			m_iMachineID(0)
		{
			SetClassName(__FUNCTION__);
		}
Exemplo n.º 12
0
CheckButton::CheckButton() 
    : _bChecked(false)
    , _bAutoSize(true)
    , _bAdjusted(false)
{
    SetClassName(_T("CheckButton"));
    SetHorizontalContentAlignment(HoriAlignment::Left);
    SetPadding(suic::Rect(2,0,0,0));
}
Exemplo n.º 13
0
BaseNode::BaseNode()
{
   SetName("Unnamed Entity");
   SetClassName("Unnamed Class");
   _iTypeId = -1;
   _pParentNode = 0;
   _pContainer = 0;
   _nId = 0xFFFFFFFF;   // "invalid ID"
}
Exemplo n.º 14
0
void ClassEditor::Init (ButtonState* bs, const char* done) {
    SetClassName("ClassEditor");
    input = new Sensor;
    input->Catch(DownEvent);
    input->Catch(KeyEvent);

    _state = bs;
    _done = done;
}
Exemplo n.º 15
0
/// <summary>
///  ItemsControl,Item的基类
/// </summary>
ItemsControl::ItemsControl()
{
    SetClassName(_T(""));

    _items = new ItemCollection(this);
    _items->ContainerChanged += suic::NotifyCollectionChangedHandler(this, &ItemsControl::OnNotifyCollectionChanged);

    InitializeScrollView();
}
Exemplo n.º 16
0
BOOL CPluginApp::InitInstance()
{
	AfxOleInit();
	AfxEnableControlContainer();

	SetClassName(STR_WINDOW_CLASS_NAME);
	CWinApp::InitInstance();

	return TRUE;
}
Exemplo n.º 17
0
MenuShadow::MenuShadow(Interactor* i, int d) {
    SetClassName("MenuShadow");
    depth_ = d;
    if (halftone == nil) {
	halftone = new Pattern(Pattern::gray);
	halftone->ref();
    }
    if (i != nil) {
	Insert(new Frame(i));
    }
}
Exemplo n.º 18
0
TabItem::TabItem()
{
    SetClassName(_T("TabItem"));
    SetMinWidth(16);

    SetHorizontalContentAlignment(suic::CENTER);
    SetVerticalContentAlignment(suic::CENTER);
    SetVerticalAlignment(suic::STRETCH);

    SetFocusable(true);
}
Exemplo n.º 19
0
void Viewport::Init(Interactor* i, Alignment a) {
    SetClassName("Viewport");
    background = nil;
    align = a;
    shape->Rigid(hfil, hfil, vfil, vfil);
    perspective = new Perspective;
    Propagate(false);
    if (i != nil) {
	Insert(i);
    }
}
Exemplo n.º 20
0
DeleteDialog_core::DeleteDialog_core (const char* name) : Dialog(
        name, nil, nil
    ) {
    SetClassName("DeleteDialog");
    if (input != nil) {
        input->Unreference();
    }
    input = allEvents;
    input->Reference();
    state = new DeleteDialog_core_Button(0, this, nil);
    Insert(Interior());
}
Exemplo n.º 21
0
MenuItem::MenuItem (Painter* out, int t) : (nil, out) {
    Init(t);
}

void MenuItem::Init (int t) {
    SetClassName("MenuItem");
    tag = t;
    normal = nil;
    highlight = nil;
    input = onoffEvents;
    input->Reference();
}
Exemplo n.º 22
0
TRandom3D::TRandom3D (TMap *owner, char *name) : TRandom (owner, name)
{
	//fDiffusionCoefficient = 100000; //  cm**2/sec 
	//memset(&fOptimize,0,sizeof(fOptimize));
	fVerticalDiffusionCoefficient = 5; //  cm**2/sec	
	//fVerticalBottomDiffusionCoefficient = .01; //  cm**2/sec, what to use as default?	
	fVerticalBottomDiffusionCoefficient = .11; //  cm**2/sec, Bushy suggested a larger default	
	fHorizontalDiffusionCoefficient = 126; //  cm**2/sec	
	bUseDepthDependentDiffusion = false;
	SetClassName (name);
	//fUncertaintyFactor = 2;		// default uncertainty mult-factor
}
Exemplo n.º 23
0
TriCurMover_c::TriCurMover_c (TMap *owner, char *name) : CurrentMover_c(owner, name), Mover_c(owner, name)
{
	memset(&fVar,0,sizeof(fVar));
	fVar.arrowScale = 5;
	fVar.arrowDepth = 0;
	fVar.alongCurUncertainty = .5;
	fVar.crossCurUncertainty = .25;
	//fVar.uncertMinimumInMPS = .05;
	fVar.uncertMinimumInMPS = 0.0;
	fVar.curScale = 1.0;
	fVar.startTimeInHrs = 0.0;
	fVar.durationInHrs = 24.0;
	fVar.numLandPts = 0; // default that boundary velocities are given
	fVar.maxNumDepths = 1; // 2D default
	fVar.gridType = TWO_D; // 2D default
	fVar.bLayerThickness = 0.; // FREESLIP default
	//
	// Override TCurrentMover defaults
	fDownCurUncertainty = -fVar.alongCurUncertainty; 
	fUpCurUncertainty = fVar.alongCurUncertainty; 	
	fRightCurUncertainty = fVar.crossCurUncertainty;  
	fLeftCurUncertainty = -fVar.crossCurUncertainty; 
	fDuration=fVar.durationInHrs*3600.; //24 hrs as seconds 
	fUncertainStartTime = (long) (fVar.startTimeInHrs*3600.);
	//
	fGrid = 0;
	fTimeDataHdl = 0;
	fIsOptimizedForStep = false;
	//fOverLap = false;		// for multiple files case
	//fOverLapStartTime = 0;
	
	memset(&fInputValues,0,sizeof(fInputValues));
	
	memset(&fStartData,0,sizeof(fStartData));
	fStartData.timeIndex = UNASSIGNEDINDEX; 
	fStartData.dataHdl = 0; 
	memset(&fEndData,0,sizeof(fEndData));
	fEndData.timeIndex = UNASSIGNEDINDEX;
	fEndData.dataHdl = 0;
	
	fDepthsH = 0;
	fDepthDataInfo = 0;
	//fInputFilesHdl = 0;	// for multiple files case
	
	bShowDepthContourLabels = false;
	bShowDepthContours = false;
	
	memset(&fLegendRect,0,sizeof(fLegendRect)); 
	
	SetClassName (name); // short file name
	
}
Exemplo n.º 24
0
void Slider::Init (Interactor* i) {
    SetClassName("Slider");
    interactor = i;
    view = i->GetPerspective();
    view->Attach(this);
    shown = new Perspective;
    constrained = false;
    moveType = MOVE_UNDEF;
    *shown = *view;
    shape->vstretch = shape->vshrink = 0;
    prevl = prevb = prevr = prevt = 0;
    input = new Sensor(updownEvents);
}
Exemplo n.º 25
0
ProgressBar::ProgressBar()
{
    SetClassName(_T("ProgressBar"));
    SetAutoDelete(false);

    SetHeight(24);
    SetWidth(60);

    SmallChange(0);
    SetValue(10);

    SetAutoDelete(true);
}
Exemplo n.º 26
0
void TextEditor::Init (int r, int c, int t, int h) {
    SetClassName("TextEditor");
    text = nil;
    dot = 0;
    mark = 0;
    shaperows = r;
    shapecolumns = c;
    lineheight = 1;
    tabsize = t;
    highlight = h;
    display = nil;
    perspective = new Perspective();
}
Exemplo n.º 27
0
TClassID::TClassID()
{
	unsigned long ticks = MyTickCount();
	SetClassName ("Untitled");
	bOpen = true;
	bActive = true;
	bDirty = false;
	
	fUniqueID.ticksAtCreation = ticks;
	fUniqueID.counter  = gObjectCounter++;
	
	return;
}
Exemplo n.º 28
0
void Menu::Init() {
    SetClassName("Menu");
    state_ = new ControlState;
    state_->Reference();
    scene_ = new VBox;
    body_ = new MenuShadow(scene_);
    depth_ = 3;
    align_ = BottomLeft;
    world_ = nil;
    rel_x_ = 0;
    rel_y_ = 0;
    ins_x_ = 0;
    ins_y_ = 0;
}
Exemplo n.º 29
0
OyunApp::OyunApp()
{
	// Some assorted wxWidgets initialization calls
	wxInitAllImageHandlers();
	wxFileSystem::AddHandler(new wxArchiveFSHandler);

	// We need a true-color visual for drawing the plots
	// later on
	SetUseBestVisual(true, true);

	// Tell the wxApp who we are
	SetAppName(wxT("Oyun"));
	SetClassName(wxT("Oyun"));
	SetVendorName(wxT("OyunTeam"));
}
Exemplo n.º 30
0
VMenu::VMenu (boolean persist) : (persist) {
    Init();
}

VMenu::VMenu (const char* name, boolean persist) : (name, persist) {
    Init();
}

VMenu::VMenu (Sensor* in, Painter* out, boolean persist) : (in, out, persist) {
    Init();
}

void VMenu::Init () {
    SetClassName("VMenu");
}