Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - GUI - Control - CListC
 

  PUBLIC
CListC::CListC(void)
CListC::CListC(const char *,int *,GtkSelectionMode)
CListC::CListC(CListBodyC &)
CListC::Body(void)
CListC::Body(void) const
CListC::GUIAppendLine(int &,SArray1dC &)
CListC::GUIAppendCLine(int &,SArray1dC &)
CListC::AppendLine(int &,SArray1dC)
CListC::AppendLine(int &,SArray1dC)
CListC::GUIRemoveLine(int &)
CListC::RemoveLine(int &)
CListC::GUISelect(int &)
CListC::GUIUnselect(int &)
CListC::GUIUnselectAll(void)
CListC::GUISelectAll(void)
CListC::Select(int &)
CListC::Unselect(int &)
CListC::UnselectAll(void)
CListC::SelectAll(void)
CListC::Cols(void) const
CListC::Selection(void)
CListC::GUIMoveID2Row(int &,int &)
CListC::MoveID2Row(int,int)
CListC::Freeze(void)
CListC::GUIFreeze(void)
CListC::Thaw(void)
CListC::GUIThaw(void)
CListC::Clear(void)
CListC::GUIClear(void)
CListC::GUIFindRowID(const Index2dC &)
WidgetC::Body(void)
WidgetC::Body(void) const
WidgetC::GUISetState(GtkStateType &)
WidgetC::Destroy(void)
WidgetC::Widget(void)
WidgetC::WidgetName(void) const
WidgetC::Name(void) const
WidgetC::WidgetID(void) const
WidgetC::Create(void)
WidgetC::GUIShow(void)
WidgetC::GUIHide(void)
WidgetC::Show(void)
WidgetC::Hide(void)
WidgetC::Position(void) const
WidgetC::Size(void) const
WidgetC::GUISetUSize(IntT,IntT)
WidgetC::SetState(GtkStateType)
WidgetC::Rectangle(void) const
WidgetC::operator +(const WidgetC &) const
WidgetC::Signal(const char *)
WidgetC::SetToolTip(const char *,const char *)
WidgetC::AddEventMask(IntT)
WidgetC::DelEventMask(IntT)
WidgetC::ShapeCombineMask(GdkBitmap *,int,int)
WidgetC::GUIGrabFocus(void)
WidgetC::GUIDNDSource(ModifierTypeT,const SArray1dC &,DragActionT)
WidgetC::GUIDNDSourceDisable(void)
WidgetC::GUIDNDTarget(DestDefaultsT,const SArray1dC &,DragActionT)
WidgetC::GUIDNDTargetDisable(void)
RCHandleC::operator =(const RCHandleC &)
RCHandleC::DeepCopy(UIntT) const
RCHandleC::operator ==(const RCHandleC &) const
RCHandleC::operator !=(const RCHandleC &) const
RCHandleC::Hash(void) const
RCHandleC::IsValid(void) const
RCHandleC::Invalidate(void)
RCHandleC::IsHandleType(const DT &) const
RCHandleC::CheckHandleType(const DT &) const
RCHandleC::Body(void)
RCHandleC::Body(void) const
RCHandleC::References(void) const
RCHandleC::operator <<(ostream &,const RCHandleC &)
RCHandleC::operator >>(istream &,RCHandleC &)

   CListC   
 
CList widget.
 
include "Ravl/GUI/CList.hh"
Created:13/12/2000 
Source file:Ravl/GUI/GTK/CList.hh
User Level:Normal
Library:RavlGUI
Example:exCList.cc
In Scope:RavlGUIN

Parent Classes: Methods:
CListC()
Default constructor
Creates an invalid handle.

CListC(const char * titles[],int * colWidths = 0,GtkSelectionMode nselMode = GTK_SELECTION_SINGLE)
Constructor

CListC(CListBodyC & bod)
Body constructor.

CListBodyC & Body()
Access body.

const CListBodyC & Body() const
Access body.

bool GUIAppendLine(int & id,SArray1dC<StringC> & line)
Append a line entry.
GUI thread only.

bool GUIAppendCLine(int & id,SArray1dC<CListCellC> & line)
Append a line entry.
GUI thread only.

void AppendLine(int & id,SArray1dC<CListCellC> line)
Append a line entry.

void AppendLine(int & id,SArray1dC<StringC> line)
Append a line entry.

bool GUIRemoveLine(int & id)
Remove a line entry.
GUI thread only.

void RemoveLine(int & id)
Remove a line entry.

bool GUISelect(int & id)
Force an item to be selected.

bool GUIUnselect(int & id)
Force an item to be unselected.

bool GUIUnselectAll()
Remove all entries from the selection.

bool GUISelectAll()
Add all entries to the selection.

bool Select(int & id)
Force an item to be selected.

bool Unselect(int & id)
Force an item to be unselected.

bool UnselectAll()
Remove all entries from the selection.

bool SelectAll()
Add all entries to the selection.

IntT Cols() const
Number of cols in the clist.

DListC<IntT> Selection()
Access current selection.

bool GUIMoveID2Row(int & id,int & rowNo)
Move the row with the given id to the rowNo .

bool MoveID2Row(int id,int rowNo)
Move the row with the given id to the rowNo .

bool Freeze()
Stop rendering updates to CList.
Calling this before doing many changes to the list and then calling Thaw() will speed up the updates.

bool GUIFreeze()
Stop rendering updates to CList.
Calling this before doing many changes to the list and then calling Thaw() will speed up the updates.

bool Thaw()
Start rendering updates to CList.

bool GUIThaw()
Start rendering updates to CList.

bool Clear()
Clear all entries from the list.

bool GUIClear()
Clear all entries from the list.

IntT GUIFindRowID(const Index2dC & at)
Find row ID at position.

#include "Ravl/GUI/Widget.hh"
WidgetBodyC & Body()
Access body.

const WidgetBodyC & Body() const
Access body.

bool GUISetState(GtkStateType & state)
Set state of widget.

void Destroy()
See body class for details.

GtkWidget * Widget()
Access widget.

StringC WidgetName() const
Get widget's name.
Call only from GUI thread.

StringC Name() const
Get name of widget.
Defaults to WidgetName(), but may be differnt for Lables etc.

int WidgetID() const
Get widget id.

bool Create()
Create the widget.

bool GUIShow()
Show widget on the display.
Call only from GUI thread.

bool GUIHide()
Hide widget on the display.
Call only from GUI thread.

bool Show()
Show widget on the display.
Thread safe.

bool Hide()
Hide widget on the display.
Thread safe.

Index2dC Position() const
Widget position.

Index2dC Size() const
Size of wiget in pixels

bool GUISetUSize(IntT x,IntT y)
Set size of widget.
GUI thread only.

void SetState(GtkStateType state)
Set state
One of: GTK_STATE_NORMAL GTK_STATE_ACTIVE GTK_STATE_PRELIGHT, GTK_STATE_SELECTED GTK_STATE_INSENSITIVE

IndexRange2dC Rectangle() const
Widget position and extent within its parent window.

DListC<WidgetC> operator +(const WidgetC & widge) const
Add a widget into a list.

Signal0C & Signal(const char * nm)
Get handle for named signal.
Signal is created and connected when this function is first called. There after the same signal is returned.

If the signal is unrecognised an invalid handle is returned.

The exact signal type depends on the signal requested, if not otherwise specified it is a Signal1C.


void SetToolTip(const char * text,const char * ctxt = 0)
Set the tool tip for the widget.
NB. Not all widgets can display tooltips.

void AddEventMask(IntT event)
Add to the event mask.

void DelEventMask(IntT event)
Remove from the event mask.

void ShapeCombineMask(GdkBitmap * mask,int off_x = 0,int off_y = 0)
Make a shape mask for the widget.
GUI thread only.

void GUIGrabFocus()
Grab keyboard focus.

bool GUIDNDSource(ModifierTypeT flags,const SArray1dC<GtkTargetEntry> & entries,DragActionT actions)
Setup widget as drag and drop source.
e.g. GDK_BUTTON1_MASK GDK_BUTTON2_MASK or GDK_BUTTON3_MASK

bool GUIDNDSourceDisable()
Disable widget as a drag and drop source.

bool GUIDNDTarget(DestDefaultsT flags,const SArray1dC<GtkTargetEntry> & entries,DragActionT actions)
Setup widget as drag and drop target.

bool GUIDNDTargetDisable()
Disable widget as a drag and drop source.

#include "Ravl/RefCounter.hh"
const RCHandleC<WidgetBodyC> & operator =(const RCHandleC<WidgetBodyC> & oth)
Assign handle.

RCHandleC<WidgetBodyC> DeepCopy(UIntT levels = ((UIntT))) const
Do a deep copy of the object.

bool operator ==(const RCHandleC<WidgetBodyC> & oth) const
Are handles to the same object ?

bool operator !=(const RCHandleC<WidgetBodyC> & oth) const
Are handles to different objects ?

UIntT Hash() const
Default hash function.
This hashes on the address of the body.

bool IsValid() const
Test if this is a valid handle.

void Invalidate()
Invalidate this handle.
Unattaches the body from the handle.

bool IsHandleType(const DT &) const
Is handle of given type ?

void CheckHandleType(const DT & dummy) const
Check handle type. Throw an expception if not.

WidgetBodyC & Body()
Access body of object.

const WidgetBodyC & Body() const
Constant access to body of object.

UIntT References() const
Find the number of references to the body of this object.

ostream & operator <<(ostream & strm,const RCHandleC<WidgetBodyC> & obj)

istream & operator >>(istream & strm,RCHandleC<WidgetBodyC> & obj)


Maintainer:Charles Galambos, Created: 13/12/2000, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002