Logo Search packages:      
Sourcecode: yudit version File versions

STextList Class Reference

#include <STextList.h>

Inheritance diagram for STextList:

SWindowInterface SEventTarget

List of all members.


Detailed Description

Show the components in a list-manner.

Definition at line 45 of file STextList.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 buttonDragged (SWindow *w, int button, int x, int y)
virtual void buttonPressed (int button, const SLocation &location)
virtual void buttonPressed (SWindow *w, int button, int x, int y)
virtual void buttonReleased (int button, const SLocation &location)
virtual void buttonReleased (SWindow *w, int button, int x, int y)
void center ()
void clear ()
virtual bool done (const SEventSource *s)
virtual void enterWindow (SWindow *w)
virtual void error (const SEventSource *s)
virtual SWindow * getComponentWindow ()
int getLastSelected ()
SString getLastSelectedText ()
const SLayoutgetLayout () const
const SLocationgetLocation ()
const SDimensiongetPreferredSize ()
const SDimensiongetSize ()
SWindow * getWindow ()
virtual void hide ()
bool isShown ()
virtual void keyPressed (SWindowListener::SKey key, const SString &s, bool ctrl, bool shift, bool meta)
virtual void keyPressed (SWindow *w, 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 keyReleased (SWindow *w, SKey key, const SString &s, bool ctrl, bool shift, bool meta)
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 *canvas, int x, int y, unsigned int width, unsigned int height)
virtual void resize (const SDimension &size)
bool selectItem (int line)
bool selectText (const SString &text)
virtual bool serve (const SEventSource *s)
virtual void setBackground (const SColor &bg)
virtual void setDropListener (SDropListener *ls, const SStringVector &mimes)
virtual void setFont (const SString &font, double fontSize)
virtual void setFontSize (double size)
virtual void setForeground (const SColor &fg)
void setLayout (const SLayout &layout)
void setListListener (SListListener *l)
void setMinimumSize (const SDimension &minimumSize)
virtual void setModal (SPanel *parent=0, bool decorated=true)
virtual void setSelectedBackground (const SColor &bg)
virtual void setSelectedForeground (const SColor &fg)
virtual SSlidable * setSliderListener (SSliderListener *l)
void setText (const SStringVector &v)
virtual void setTextBackground (const SColor &bg)
void setTitle (const SString &title)
virtual SWindowInterfacesetWindowInterface (SWindowInterface *wi)
virtual void show ()
 STextList (void)
virtual void valueChanged (SSlidable *slidable, SSlideType type)
virtual void wait ()
virtual bool write (const SEventSource *s)

Protected Member Functions

void _resized ()
void cleanup ()
virtual bool drop (SWindow *w, const SString &mimetype, const SString &data)
virtual void forceLayout (const SLayout &layout)
virtual void gainedKeyboardFocus (SWindow *w)
bool isLayoutOK () const
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)
bool timeout (const SEventSource *s)
virtual bool windowClose (SWindow *w)

Protected Attributes

SColor background
SBinVector< SComponent * > children
SBinVector< SPanel * > containers
SDropListenerdropListener
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 clip (bool on)
int indexForLocation (int y, bool correct=true)
int locationForIndex (unsigned int index)
void makeSelectedVisible ()
void recalc (int current)
void redraw (SCanvas *canvas, unsigned int index, int x, unsigned int width)
void selectLocation (int y)

Private Attributes

SBorder border
SOpaqueLabel label
int lastSelected
SListListenerlistListener
SOpaqueLabel selectedLabel
SBinVector< bool > selectedVector
SSlidable slidable
SSliderListener * sliderListener
SStringVector vector
SDimension viewableSize

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

Generated by  Doxygen 1.6.0   Back to index