Logo Search packages:      
Sourcecode: yudit version File versions

SFileDialog Class Reference

#include <SFileDialog.h>

Inheritance diagram for SFileDialog:

SListListener SButtonListener STextEditLS SFrameListener SWindowInterface SEventTarget

List of all members.


Detailed Description

Yudit Unicode Editor Source File

GNU Copyright (C) 2003 Gaspar Sinai <gsinai@yudit.org> GNU Copyright (C) 2002 Gaspar Sinai <gsinai@yudit.org> GNU Copyright (C) 2001 Gaspar Sinai <gsinai@yudit.org> GNU Copyright (C) 2000 Gaspar Sinai <gsinai@yudit.org>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, dated June 1991. See file COPYYING for details.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Definition at line 36 of file SFileDialog.h.


Public Types

enum  SKey {
  Key_Undefined, Key_Control_R, Key_Control_L, Key_Alt_L,
  Key_Alt_R, Key_Meta_L, Key_Meta_R, Key_Shift_L,
  Key_Shift_R, Key_Tab, Key_Space, Key_Left,
  Key_Right, Key_Up, Key_Down, Key_Prior,
  Key_End, Key_Next, Key_Return, Key_Enter,
  Key_Home, Key_Delete, Key_BackSpace, Key_Clear,
  Key_Escape, Key_Send, Key_F1, Key_F2,
  Key_F3, Key_F4, Key_F5, Key_F6,
  Key_F7, Key_F8, Key_F9, Key_F10,
  Key_F11, Key_F12, Key_a, Key_A,
  Key_b, Key_B, Key_c, Key_C,
  Key_d, Key_D, Key_e, Key_E,
  Key_f, Key_F, Key_g, Key_G,
  Key_h, Key_H, Key_i, Key_I,
  Key_j, Key_J, Key_k, Key_K,
  Key_l, Key_L, Key_m, Key_M,
  Key_n, Key_N, Key_o, Key_O,
  Key_p, Key_P, Key_q, Key_Q,
  Key_r, Key_R, Key_s, Key_S,
  Key_t, Key_T, Key_u, Key_U,
  Key_x, Key_X, Key_y, Key_Y,
  Key_v, Key_V, Key_w, Key_W,
  Key_z, Key_Z, Key_slash, Key_period,
  Key_comma, Key_semicolon, Key_colon, Key_underscore,
  Key_hash, Key_questionmark, Key_1, Key_2,
  Key_3, Key_4, Key_5, Key_6,
  Key_7, Key_8, Key_9, Key_0
}
enum  SSlideType { SS_VERTICAL, SS_HORIZONTAL, SS_BOTH }

Public Member Functions

void add (SPanel *comp)
void add (SComponent *comp)
virtual void buttonDragged (int button, const SLocation &location)
virtual void buttonPressed (int button, const SLocation &location)
virtual void buttonReleased (int button, const SLocation &location)
virtual void caretMoved (void *source, unsigned int line, unsigned int col, bool before)
void center ()
virtual bool done (const SEventSource *s)
virtual void enterWindow (void *source)
virtual void enterWindow (SWindow *w)
virtual void error (const SEventSource *s)
virtual void focusOutRequest (void *source)
virtual void fontChanged (void *source, const SString &font)
virtual SWindow * getComponentWindow ()
SString getFileName ()
SString getFileType ()
const SStringVectorgetFileTypes () const
bool getInput (const SString &title, bool shouldExist, bool warnexist)
const SLayoutgetLayout () const
const SLocationgetLocation ()
const SDimensiongetPreferredSize ()
const SDimensiongetSize ()
SString getUnixFileName ()
SWindow * getWindow ()
virtual void hide ()
virtual void inputMethodChanged (void *source, const SString &im)
bool isShown ()
virtual void itemHighlighted (void *source, int item)
virtual void keyPressed (SWindowListener::SKey key, const SString &s, bool ctrl, bool shift, bool meta)
virtual void keyReleased (SWindowListener::SKey key, const SString &s, bool ctrl, bool shift, bool meta)
virtual void leaveWindow (void *source)
virtual void leaveWindow (SWindow *w)
virtual void move (const SLocation &loc)
virtual bool read (const SEventSource *s, const SString &m)
virtual int readable (const SEventSource *s)
virtual void redraw (SCanvas *canvas, int x, int y, unsigned int width, unsigned int height)
virtual void redraw (SWindow *w, int x, int y, unsigned int width, unsigned int height)
SFrameListenerremoveFrameListener ()
virtual void resize (const SDimension &size)
virtual void scrolledHorizontal (void *source, int value)
virtual void scrolledVertical (void *source, int value)
virtual bool serve (const SEventSource *s)
virtual void setBackground (const SColor &bg)
virtual void setDropListener (SDropListener *ls, const SStringVector &mimes)
void setFileName (const SString &filename)
bool setFileType (const SString &fileType)
void setFileTypes (const SStringVector &fileTypes)
void setFont (const SString &font, double fontSize=0.0)
void setFontSize (double fontSize)
virtual void setForeground (const SColor &fg)
SFrameListenersetFrameListener (SFrameListener *l)
void setLabelForeground (const SColor &fg)
void setLayout (const SLayout &layout)
void setMinimumSize (const SDimension &minimumSize)
virtual void setModal (SPanel *parent=0, bool decorated=true)
virtual void setSliderBackground (const SColor &bg)
virtual SSlidable * setSliderListener (SSliderListener *l)
void setTitle (const SString &title)
virtual void setTitleForeground (const SColor &fg)
virtual SWindowInterfacesetWindowInterface (SWindowInterface *wi)
 SFileDialog (void)
virtual void show ()
virtual void textChanged (void *source)
virtual void wait ()
virtual bool windowClose (SWindow *w)
virtual bool write (const SEventSource *s)

Protected Member Functions

void _resized ()
virtual void buttonDragged (SWindow *w, int button, int x, int y)
virtual void buttonPressed (SWindow *w, int button, int x, int y)
virtual void buttonPressed (void *source, const SAccelerator *acc)
virtual void buttonReleased (SWindow *w, int button, int x, int y)
void cleanup ()
virtual bool close (SPanel *comp)
virtual bool drop (SWindow *w, const SString &mimetype, const SString &data)
virtual void focusChanged (void *source, bool in)
virtual void forceLayout (const SLayout &layout)
virtual void gainedKeyboardFocus (SWindow *w)
bool isLayoutOK () const
virtual void itemSelected (void *source, const SAccelerator *acc)
virtual void keyPressed (SWindow *w, SKey key, const SString &s, bool ctrl, bool shift, bool meta)
virtual void keyReleased (SWindow *w, SKey key, const SString &s, bool ctrl, bool shift, bool meta)
virtual void lostClipSelection (SWindow *w)
virtual void lostKeyboardFocus (SWindow *w)
virtual void resized (SWindow *w, int x, int y, unsigned int width, unsigned int height)
virtual void textEntered (void *source)
bool timeout (const SEventSource *s)
virtual void valueChanged (SSlidable *slidable, SSlideType type)

Protected Attributes

SColor background
SBinVector< SComponent * > children
SBinVector< SPanel * > containers
SDropListenerdropListener
SFrameListenerframeListener
bool hasParent
SLayout layout
bool layoutOK
SLocation location
SPanel * modalParent
SDimension preferredSize
STimer * resizeTimer
SDimension size
SBinVector< SComponent * > slidableComponents
SBinVector< SSlidable * > slidables
SWindow * window
SWindowInterfacewindowInterface

Static Protected Attributes

static SAwtawt = 0
static int count = 0

Private Member Functions

void fileTypeChanged (const SString &filetype)
void filterChanged ()
void recalc ()
void rereadDir ()
void setHidden ()

Private Attributes

SButton * cancelButton
SButton * cdButton
SButton * createButton
SDir currentDirectory
SString fileFilter
SListBoxfileListBox
STextEdit * fileTextEdit
SLabelfileTitleLabel
SButton * fileTypeButton
SLabelfileTypeLabel
SListBoxfileTypeListBox
SString fileTypeText
SStringVector fileTypeVector
STextEdit * filterTextEdit
SLabelfilterTitleLabel
SListBoxfolderListBox
SLabelfolderNameLabel
SLabelfolderTitleLabel
SButton * hiddenButton
SButton * homeButton
bool isCancel
bool isFocused
bool showHidden
STextDialogtextDialog
SButton * yesButton

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

Generated by  Doxygen 1.6.0   Back to index