vdk 2.4.0
|
Provides a wrap for GtkFileChooser widget. More...
#include <vdkfilechooser.h>
Public Member Functions | |
VDKFileChooser (VDKForm *owner, FileStringArray *selections, char *title) | |
void | AddFilterPattern (char *name, char *pattern) |
void | SetDefaultFilter (char *name) |
void | RemoveFilter (char *name) |
![]() | |
VDKForm (VDKApplication *app, char *title=(char *) NULL, int mode=v_box, GtkWindowType display=GTK_WINDOW_TOPLEVEL) | |
VDKForm (VDKForm *owner, char *title=(char *) NULL, int mode=v_box, GtkWindowType display=GTK_WINDOW_TOPLEVEL) | |
virtual | ~VDKForm () |
bool | Destroy () |
virtual int | isA () |
VDKBox * | Box () |
virtual void | Show (GtkWindowPosition pos=GTK_WIN_POS_NONE) |
virtual void | Hide () |
virtual void | ShowModal (GtkWindowPosition pos=GTK_WIN_POS_NONE) |
bool | IsModal () |
virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=1) |
VDKForm * | Owner () |
virtual bool | CanClose (void) |
virtual void | Close (void) |
void | Raise () |
void | Lower () |
![]() | |
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 () |
VDKForm * | Owner () |
virtual GtkWidget * | Widget () |
GtkWidget * | ConnectingWidget () |
GtkWidget * | WrappedWidget () |
virtual void | SetFont (VDKFont *f) |
VDKFont * | GetFont () |
void | SetVisible (bool visible) |
bool | GetVisible () |
void | SetCursor (VDKCursorType) |
VDKCursorType | GetCursor () |
virtual void | SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
void | SetSize (int w, int h) |
void | SetUsize (VDKPoint s) |
virtual void | SetTip (char *) |
ItemList & | Items () |
void | Draw (GdkRectangle *area=NULL) |
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 < VDKFileChooser, bool > | MultiSelection |
VDKReadWriteValueProp < VDKFileChooser, GtkFileChooserAction > | Action |
![]() | |
VDKReadWriteValueProp < VDKObject, VDKRgb > | NormalBackground |
VDKReadWriteValueProp < VDKObject, VDKFont * > | Font |
SizeObjectProp | Usize |
VDKReadWriteValueProp < VDKObject, bool > | Enabled |
VDKReadWriteValueProp < VDKObject, VDKCursorType > | Cursor |
VDKReadWriteValueProp < VDKObject, bool > | Visible |
Private Member Functions | |
void | Setup (void) |
Additional Inherited Members | |
![]() | |
VDKApplication * | app |
ChildList | childs |
GtkWidget * | window |
VDKBox * | box |
bool | isModal |
bool | never_showed |
VDKPoint | _oldSize |
int | modalCount |
![]() | |
VDKObjectSignal | s_clicked |
GtkWidget * | widget |
GtkWidget * | sigwid |
VDKObject * | parent |
Provides a wrap for GtkFileChooser widget.
END_SIGNAL_MAP VDKFileChooser::VDKFileChooser | ( | VDKForm * | owner, |
FileStringArray * | selections, | ||
char * | title | ||
) |
Constructor
owner | |
selections | a FileStringArray pointer |
title | window title |
void VDKFileChooser::AddFilterPattern | ( | char * | name, |
char * | pattern | ||
) |
Add a filter based on a pattern
name | a human readable name |
pattern | a filter pattern (ie: *.cc") |
void VDKFileChooser::RemoveFilter | ( | char * | name | ) |
remove <name> filter from filter's list
name | a human readable name |
void VDKFileChooser::SetDefaultFilter | ( | char * | name | ) |
set <name> filter as default
name | a human readable name |
|
privatevirtual |
Must be overridden by subclasses, in this method user fills form with useful widgets
Implements VDKForm.
VDKReadWriteValueProp<VDKFileChooser,GtkFileChooserAction> VDKFileChooser::Action |
sets file chooser mode, can be one of following:
VDKReadWriteValueProp<VDKFileChooser,bool> VDKFileChooser::MultiSelection |
setting this property to true allow selecting more than one file (false by default)