vdk 2.4.0
Public Member Functions | List of all members
VDKFileIconDialog Class Reference

Provides a file dialog with file icons. More...

#include <vdkfileicondlg.h>

Inheritance diagram for VDKFileIconDialog:
Inheritance graph
[legend]
Collaboration diagram for VDKFileIconDialog:
Collaboration graph
[legend]

Public Member Functions

virtual bool CanClose ()
 
virtual void Setup (void)
 
- Public Member Functions inherited from VDKForm
 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 ()
 
VDKBoxBox ()
 
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)
 
VDKFormOwner ()
 
virtual void Close (void)
 
void Raise ()
 
void Lower ()
 
- Public Member Functions inherited from VDKObject
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 ()
 
VDKFormOwner ()
 
virtual GtkWidget * Widget ()
 
GtkWidget * ConnectingWidget ()
 
GtkWidget * WrappedWidget ()
 
virtual void SetFont (VDKFont *f)
 
VDKFontGetFont ()
 
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 *)
 
ItemListItems ()
 
void Draw (GdkRectangle *area=NULL)
 
void SignalEmit (int signal)
 
void SignalEmit (char *sig)
 
void SignalEmitParent (int signal)
 
void SignalEmitParent (char *sig)
 
void GrabFocus ()
 
VDKObjectParent (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)
 

Additional Inherited Members

- Public Attributes inherited from VDKObject
VDKReadWriteValueProp< VDKObject, VDKRgbNormalBackground
 
VDKReadWriteValueProp< VDKObject, VDKFont * > Font
 
SizeObjectProp Usize
 
VDKReadWriteValueProp< VDKObject, bool > Enabled
 
VDKReadWriteValueProp< VDKObject, VDKCursorType > Cursor
 
VDKReadWriteValueProp< VDKObject, bool > Visible
 
- Protected Attributes inherited from VDKForm
VDKApplicationapp
 
ChildList childs
 
GtkWidget * window
 
VDKBoxbox
 
bool isModal
 
bool never_showed
 
VDKPoint _oldSize
 
int modalCount
 
- Protected Attributes inherited from VDKObject
VDKObjectSignal s_clicked
 
GtkWidget * widget
 
GtkWidget * sigwid
 
VDKObjectparent
 

Detailed Description

Provides a file dialog with file icons.

Usage:
VDKString selection;
this,
&selection,
"title"
);
dlg->ShowModal();
printf("\nfile selection:%s",
!selection.isNull() ?
(char*) selection :
"nihil");
fflush(stdout);

Member Function Documentation

◆ CanClose()

virtual bool VDKFileIconDialog::CanClose ( void  )
virtual

Placeholder for subclasses. User should override this returning a false (don't close) or true (close) value.

Reimplemented from VDKForm.

◆ Setup()

virtual void VDKFileIconDialog::Setup ( void  )
virtual

Must be overridden by subclasses, in this method user fills form with useful widgets

Implements VDKForm.


The documentation for this class was generated from the following file: