当前位置: 首页>>代码示例>>C++>>正文


C++ SetClassName函数代码示例

本文整理汇总了C++中SetClassName函数的典型用法代码示例。如果您正苦于以下问题:C++ SetClassName函数的具体用法?C++ SetClassName怎么用?C++ SetClassName使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SetClassName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SetClassName

Weatherer_c::Weatherer_c(char *name)
{
	SetClassName (name);
	
	bActive = TRUE;
	bOpen = TRUE;
}
开发者ID:NOAA-ORR-ERD,项目名称:PyGnome,代码行数:7,代码来源:Weatherer_c.cpp

示例2: SetClassName

TextBlock::TextBlock()
{
    SetClassName(_T("TextBlock"));

    SetVerticalContentAlignment(suic::CENTER);
    SetHorizontalContentAlignment(suic::LEFT);
}
开发者ID:tfzxyinhao,项目名称:sharpui,代码行数:7,代码来源:TextBlock.cpp

示例3: SetClassName

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();
}
开发者ID:barak,项目名称:ivtools-cvs,代码行数:29,代码来源:strbrowser.c

示例4: TreeButton

 TreeButton(suic::ImageBrushPtr exp, suic::ImageBrushPtr cop)
     : _expanded(exp)
     , _collapsed(cop)
     , _bCollapsed(false)
 {
     SetClassName(_T("TreeButton"));
 }
开发者ID:tfzxyinhao,项目名称:sharpui,代码行数:7,代码来源:TreeViewItem.cpp

示例5: Read

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);
}
开发者ID:BackupTheBerlios,项目名称:openaqua-svn,代码行数:35,代码来源:OField.cpp

示例6: _showDotLine

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);
}
开发者ID:Alxe013,项目名称:sharpui,代码行数:29,代码来源:TreeViewItem.cpp

示例7: SetClassName

Logo::Logo () { 
    SetClassName("Logo");
    input = new Sensor();
    input->Catch(KeyEvent);

    bitmap = nil;
    rainbow = 0;
}
开发者ID:LambdaCalculus379,项目名称:SLS-1.02,代码行数:8,代码来源:logo.c

示例8: Init

TextItem::TextItem (Painter* out, const char* s, int t) : (out, t) {
    Init(s);
}

void TextItem::Init (const char* s) {
    SetClassName("TextItem");
    text = s;
}
开发者ID:axelmuhr,项目名称:Helios-NG,代码行数:8,代码来源:menu.c

示例9: SetClassName

void Banner::Init(char* lt, char* m, char* rt) {
    SetClassName("Banner");
    left = lt;
    middle = m;
    right = rt;
    highlight = false;
    inverse = nil;
}
开发者ID:neurodebian,项目名称:iv-hines,代码行数:8,代码来源:banner.cpp

示例10: cPluginManager

cVHPluginMgr::cVHPluginMgr(cServerDC *server,const string pluginDir):
	cPluginManager(pluginDir), mServer(server)
{
	SetClassName("cVHPluginMgr");
	if (Log(0))
		LogStream() << "using plugins in: " << pluginDir << endl;
	cout << "------------------------" << endl;
}
开发者ID:Sorin91,项目名称:verlihub,代码行数:8,代码来源:cvhpluginmgr.cpp

示例11: m_uiID

		ProductInfo::ProductInfo() :
			m_uiID(0),
			m_dLensSeparation(0),
			m_dLensSeparationMin(0),
			m_dLensSeparationMax(0),
			m_iMachineID(0)
		{
			SetClassName(__FUNCTION__);
		}
开发者ID:playbar,项目名称:testplayer,代码行数:9,代码来源:ProductInfo.cpp

示例12: _bChecked

CheckButton::CheckButton() 
    : _bChecked(false)
    , _bAutoSize(true)
    , _bAdjusted(false)
{
    SetClassName(_T("CheckButton"));
    SetHorizontalContentAlignment(HoriAlignment::Left);
    SetPadding(suic::Rect(2,0,0,0));
}
开发者ID:Alxe013,项目名称:sharpui,代码行数:9,代码来源:CheckButton.cpp

示例13: SetName

BaseNode::BaseNode()
{
   SetName("Unnamed Entity");
   SetClassName("Unnamed Class");
   _iTypeId = -1;
   _pParentNode = 0;
   _pContainer = 0;
   _nId = 0xFFFFFFFF;   // "invalid ID"
}
开发者ID:AsherBond,项目名称:Application-SDK,代码行数:9,代码来源:BaseNode.cpp

示例14: SetClassName

void ClassEditor::Init (ButtonState* bs, const char* done) {
    SetClassName("ClassEditor");
    input = new Sensor;
    input->Catch(DownEvent);
    input->Catch(KeyEvent);

    _state = bs;
    _done = done;
}
开发者ID:neurodebian,项目名称:iv-hines,代码行数:9,代码来源:classeditor.cpp

示例15: SetClassName

/// <summary>
///  ItemsControl,Item的基类
/// </summary>
ItemsControl::ItemsControl()
{
    SetClassName(_T(""));

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

    InitializeScrollView();
}
开发者ID:Alxe013,项目名称:sharpui,代码行数:12,代码来源:ItemsControl.cpp


注:本文中的SetClassName函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。