Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

VDKCustom Class Reference

This is a base class for derived VDKCustomList and VDKCustomTree Provides common functionalities for both child classes. More...

#include <vdkcustom.h>

Inheritance diagram for VDKCustom:

VDKObject VDKNotCopyAble VDKCustomList VDKCustomTree VDKCustomSortedList List of all members.

Public Methods

Public Attributes

Protected Methods


Detailed Description

This is a base class for derived VDKCustomList and VDKCustomTree Provides common functionalities for both child classes.

Programming tips
VDKCustom operations are dependent on selection mode that can be one of the following:
Signals
Signals are available for all modes except browse one, but the way you can use them is different for each mode. Basically in single mode you may use Selection property while in other modes you may use Selections() method. It's possible to connect with "click_column" signal using dynamics tables provided that use connects with <gtk> arg set to false.
  SignalConnect(aCustom, "click_column",&SomeClass::Response,false);


Member Function Documentation

void VDKCustom::ActiveTitle int    col,
bool    flag = true
 

Sets/unsets active titile

Parameters:
col, ordinal  position of the active title
flag, either  true (set) or false (unset)

void VDKCustom::ActiveTitles bool    flag = true
 

Same as above but acts on the entire tuple.

void VDKCustom::AutoResizeColumn int    col,
bool    flag
 

Sets/unsets column auto-resize capability

Parameters:
col, ordinal  position
flag, either  true (sets) or false (unsets)

virtual void VDKCustom::Clear   [inline, virtual]
 

Clear widget

Reimplemented in VDKCustomList, and VDKCustomTree.

int VDKCustom::ColumnClicked   [inline]
 

Returns wich column was clicked

void VDKCustom::ColumnSize int    col,
int    size
 

Set column fixed size

Parameters:
col, ordinal  position
size, in  pixels

GtkWidget* VDKCustom::CustomWidget   [inline]
 

Returns underlying custom widget.

Tip:
Use this to access to custom widget, using VDKObject::Widget() will access to the widget container not to custom widget itself.

void VDKCustom::EnableTitles bool    flag = true
 

Set/unset titles sensitivity

Parameters:
flag, if  false titles will be grayed as well.

void VDKCustom::Freeze   [inline]
 

Freezes widget during time consuming updating operations

GtkSelectionMode VDKCustom::SelectionMode  
 

Returns selection mode

void VDKCustom::SetBackground VDKRgb    color,
GtkStateType    state = GTK_STATE_NORMAL
[protected, virtual]
 

Sets object background

Parameters:
color  a VDKRgb object
state  can be one of the gtk+ widget states

Reimplemented from VDKObject.

void VDKCustom::SetFont VDKFont   [virtual]
 

Sets object font

Reimplemented from VDKObject.

void VDKCustom::SetForeground VDKRgb   ,
GtkStateType   
[virtual]
 

Sets object foreground

Parameters:
color  a VDKRgb object
state  can be one of the gtk+ widget states

Reimplemented from VDKObject.

int VDKCustom::Size   [inline]
 

Returns how many rows/nodes are into custom widget

void VDKCustom::Thaw   [inline]
 

Unfreeze


Member Data Documentation

VDKReadWriteValueProp<VDKCustom,bool> VDKCustom::AutoResize
 

Use this to set/get auto resize capablity for al columns

VDKReadWriteValueProp<VDKCustom,GtkShadowType> VDKCustom::BorderShadow
 

Use this to get/set border shadow

VDKReadWriteValueProp<VDKCustom,GtkPolicyType> VDKCustom::HPolicy
 

Use this to get/set hor. scrollbar policy

VDKReadWriteValueProp<VDKCustom,int> VDKCustom::RowHeight
 

Use this to get/set row height

Tip
By default row height is computed using default font.

VDKReadWriteValueProp<VDKCustom,VDKRgb> VDKCustom::SelectedForeground
 

Use this to set colors for selected lines if they should be different from defaults. All new added rows will have this colors.

VDKReadOnlyValueProp<VDKCustom,int> VDKCustom::SelectedTitle
 

<read-only>, use this to know wich title was selected (if any)

VDKObjectArray VDKCustom::Titles
 

Since column titles are themselves objects you can use this to access them and set object properties like this:

    custom->Titles[0]->Enabled = false; 
    custom->Titles[0]->Normalbackground = VDKRgb("dodgerblue");

VDKReadWriteValueProp<VDKCustom,VDKRgb> VDKCustom::UnselectedBackground
 

its use is deprecated, mantained for compat, reverts to NormalBackground

VDKReadWriteValueProp<VDKCustom,VDKRgb> VDKCustom::UnselectedForeground
 

its use is deprecated, mantained for compat, reverts to Foreground

VDKReadWriteValueProp<VDKCustom,GtkPolicyType> VDKCustom::VPolicy
 

Use this to get/set vert. scrollbar policy


The documentation for this class was generated from the following files:
Generated on Wed Apr 17 13:24:57 2002 for vdk 2.0.1 by doxygen1.2.15