Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

SizableStaticText* OglGui::ColumnHeaders::CreateHeader ( strconst  title,
int  labelW = -1 
) [inline]

Definition at line 31 of file ColumnHeaders.h.

References OglGui::OglWindow::ConnectTo(), OglGui::L2R, MakeHeader(), mHeaders, mLabelHeight, mLabelWidth, mLayoutListeners, OglGui::R2R, and OglGui::Window::SetWindowListener().

Referenced by OglGui::Columns::CreateColumn(), and OglGui::Columns::CreateHeader().

00032     {
00033         if (labelW == -1)
00034             labelW = mLabelWidth;
00035 
00036         int x = 0;
00037         if (mHeaders.size()!=0)
00038         {
00039             SizableStaticText* curHdr = mHeaders[mHeaders.size()-1];
00040             x = curHdr->X() + curHdr->W();
00041         }
00042         SizableStaticText* colHdr;
00043         colHdr = MakeHeader(this,x,0,labelW,mLabelHeight,title);
00044         if (x!=0)
00045         {
00046             LayoutListener* l;
00047             l = colHdr->ConnectTo(mHeaders[mHeaders.size()-1],L2R|R2R);
00048             mLayoutListeners.push_back(l);
00049             colHdr->SetWindowListener(this, (void*)(mLayoutListeners.size()-1));
00050         }
00051         mHeaders.push_back(colHdr);
00052         return colHdr;
00053     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:21 2011 for ImpalaSrc by  doxygen 1.5.1