vdk 2.4.0
|
This is a base class for derived VDKCustomList and VDKCustomTree Provides common functionalities for both child classes. More...
#include <vdkcustom.h>
Public Member Functions | |
int | ColumnClicked () |
GtkSelectionMode | SelectionMode () |
GtkWidget * | CustomWidget () |
void | ActiveTitle (int col, bool flag=true) |
void | ActiveTitles (bool flag=true) |
void | EnableTitles (bool flag=true) |
void | Freeze () |
void | Thaw () |
virtual void | Clear () |
int | Size () |
void | ColumnSize (int col, int size) |
void | AutoResizeColumn (int col, bool flag) |
virtual void | SetForeground (VDKRgb, GtkStateType) |
virtual void | SetFont (VDKFont *) |
![]() | |
VDKRgb | GetBackground (GtkStateType state=GTK_STATE_NORMAL) |
VDKRgb | GetForeground (GtkStateType state=GTK_STATE_NORMAL) |
VDKObject (VDKForm *owner=NULL) | |
VDKObject (VDKForm *owner, GtkWidget *widget) | |
virtual | ~VDKObject () |
bool | Destroy () |
virtual int | isA () |
VDKForm * | Owner () |
virtual GtkWidget * | Widget () |
GtkWidget * | ConnectingWidget () |
GtkWidget * | WrappedWidget () |
VDKFont * | GetFont () |
void | SetVisible (bool visible) |
bool | GetVisible () |
void | SetCursor (VDKCursorType) |
VDKCursorType | GetCursor () |
void | SetSize (int w, int h) |
void | SetUsize (VDKPoint s) |
virtual void | SetTip (char *) |
virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0) |
ItemList & | Items () |
void | Draw (GdkRectangle *area=NULL) |
virtual void | Setup () |
void | SignalEmit (int signal) |
void | SignalEmit (char *sig) |
void | SignalEmitParent (int signal) |
void | SignalEmitParent (char *sig) |
void | GrabFocus () |
VDKObject * | Parent (VDKObject *p=NULL) |
int | SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
int | SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
bool | SignalDisconnect (int connection) |
int | EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false) |
int | EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false) |
bool | EventDisconnect (int connection) |
Public Attributes | |
VDKReadWriteValueProp < VDKCustom, GtkPolicyType > | VPolicy |
VDKReadWriteValueProp < VDKCustom, GtkPolicyType > | HPolicy |
VDKReadWriteValueProp < VDKCustom, GtkShadowType > | BorderShadow |
VDKReadWriteValueProp < VDKCustom, int > | RowHeight |
VDKReadWriteValueProp < VDKCustom, bool > | AutoResize |
VDKReadWriteValueProp < VDKCustom, VDKRgb > | SelectedForeground |
VDKReadWriteValueProp < VDKCustom, VDKRgb > | UnselectedBackground |
VDKReadWriteValueProp < VDKCustom, VDKRgb > | UnselectedForeground |
VDKObjectArray | Titles |
VDKReadOnlyValueProp < VDKCustom, int > | SelectedTitle |
![]() | |
VDKReadWriteValueProp < VDKObject, VDKRgb > | NormalBackground |
VDKReadWriteValueProp < VDKObject, VDKFont * > | Font |
SizeObjectProp | Usize |
VDKReadWriteValueProp < VDKObject, bool > | Enabled |
VDKReadWriteValueProp < VDKObject, VDKCursorType > | Cursor |
VDKReadWriteValueProp < VDKObject, bool > | Visible |
Protected Member Functions | |
virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
Additional Inherited Members | |
![]() | |
VDKObjectSignal | s_clicked |
GtkWidget * | widget |
GtkWidget * | sigwid |
VDKObject * | parent |
This is a base class for derived VDKCustomList and VDKCustomTree Provides common functionalities for both child classes.
void VDKCustom::ActiveTitle | ( | int | col, |
bool | flag = true |
||
) |
Sets/unsets active titile
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
col,ordinal | position |
flag,either | true (sets) or false (unsets) |
|
inlinevirtual |
Clear widget
Reimplemented in VDKCustomList, and VDKCustomTree.
|
inline |
Returns wich column was clicked
void VDKCustom::ColumnSize | ( | int | col, |
int | size | ||
) |
Set column fixed size
col,ordinal | position |
size,in | pixels |
|
inline |
Returns underlying custom widget.
void VDKCustom::EnableTitles | ( | bool | flag = true | ) |
Set/unset titles sensitivity
flag,if | false titles will be grayed as well. |
|
inline |
Freezes widget during time consuming updating operations
GtkSelectionMode VDKCustom::SelectionMode | ( | ) |
Returns selection mode
|
protectedvirtual |
|
virtual |
|
inline |
Returns how many rows/nodes are into custom widget
|
inline |
Unfreeze
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
Use this to set colors for selected lines if they should be different from defaults. All new added rows will have this colors. VDKReadWriteValueProp<VDKCustom,VDKColor*> SelectedBackground;
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:
its use is deprecated, mantained for compat, reverts to NormalBackground
its use is deprecated, mantained for compat, reverts to Foreground
VDKReadWriteValueProp<VDKCustom,GtkPolicyType> VDKCustom::VPolicy |
Use this to get/set vert. scrollbar policy