|
| 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) |
|
Provides a wrap for GtkFileChooser widget.
- Usage
#include <vdk/vdkfilechooser.h>
if(selections.
size() == 1)
{
printf("\nSelected:%s",(char*) selections[0]);
fflush(stdout);
}
else if(selections.
size() > 1)
{
for(
int t = 0; t < selections.
size(); t++)
printf("\nSelected:%s",(char*) selections[t]);
fflush(stdout);
}
provides a templatized array
Definition: vdkarray.h:73
int size()
Definition: vdkarray.h:117
Provides a wrap for GtkFileChooser widget.
Definition: vdkfilechooser.h:67
void SetDefaultFilter(char *name)
Definition: vdkfilechooser.cc:283
void AddFilterPattern(char *name, char *pattern)
Definition: vdkfilechooser.cc:266
VDKFileChooser(VDKForm *owner, FileStringArray *selections, char *title)
Definition: vdkfilechooser.cc:162
On return selections will be an empty array if user presses "cancel" button.