本文整理汇总了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;
}
示例2: SetClassName
TextBlock::TextBlock()
{
SetClassName(_T("TextBlock"));
SetVerticalContentAlignment(suic::CENTER);
SetHorizontalContentAlignment(suic::LEFT);
}
示例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();
}
示例4: TreeButton
TreeButton(suic::ImageBrushPtr exp, suic::ImageBrushPtr cop)
: _expanded(exp)
, _collapsed(cop)
, _bCollapsed(false)
{
SetClassName(_T("TreeButton"));
}
示例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);
}
示例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);
}
示例7: SetClassName
Logo::Logo () {
SetClassName("Logo");
input = new Sensor();
input->Catch(KeyEvent);
bitmap = nil;
rainbow = 0;
}
示例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;
}
示例9: SetClassName
void Banner::Init(char* lt, char* m, char* rt) {
SetClassName("Banner");
left = lt;
middle = m;
right = rt;
highlight = false;
inverse = nil;
}
示例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;
}
示例11: m_uiID
ProductInfo::ProductInfo() :
m_uiID(0),
m_dLensSeparation(0),
m_dLensSeparationMin(0),
m_dLensSeparationMax(0),
m_iMachineID(0)
{
SetClassName(__FUNCTION__);
}
示例12: _bChecked
CheckButton::CheckButton()
: _bChecked(false)
, _bAutoSize(true)
, _bAdjusted(false)
{
SetClassName(_T("CheckButton"));
SetHorizontalContentAlignment(HoriAlignment::Left);
SetPadding(suic::Rect(2,0,0,0));
}
示例13: SetName
BaseNode::BaseNode()
{
SetName("Unnamed Entity");
SetClassName("Unnamed Class");
_iTypeId = -1;
_pParentNode = 0;
_pContainer = 0;
_nId = 0xFFFFFFFF; // "invalid ID"
}
示例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;
}
示例15: SetClassName
/// <summary>
/// ItemsControl,Item的基类
/// </summary>
ItemsControl::ItemsControl()
{
SetClassName(_T(""));
_items = new ItemCollection(this);
_items->ContainerChanged += suic::NotifyCollectionChangedHandler(this, &ItemsControl::OnNotifyCollectionChanged);
InitializeScrollView();
}