SkyGI::FindBar Class Reference

Inheritance diagram for SkyGI::FindBar:
[legend]
Collaboration diagram for SkyGI::FindBar:
[legend]
List of all members.

Public Member Functions

 FindBar (Window *pParent, const Rect &rFrame, unsigned int nWindowLayoutFlags, unsigned int uiFlags=0)
void Paint (const Rect &rDirty)
void FindNext ()
void FindPrev ()
virtual bool FocusGet ()
Point GetSizeHint (enumSizeHint nSizeHint)
void OnFind (const String &szString, bool bForward)
void RequestClose ()
void Set (const String &szString)

Public Attributes

signal0 Close
signal2< const String &, bool > Find

Classes

class  Private

Constructor & Destructor Documentation

FindBar::FindBar ( Window pParent,
const Rect rFrame,
unsigned int  nWindowLayoutFlags,
unsigned int  uiFlags = 0 
)


Member Function Documentation

void FindBar::Paint ( const Rect rDirty  )  [virtual]

Paint window content

Description:
This function gets called whenever an area of the window has to be redrawn. Usually you should only draw from inside the Paint function. If you need to redraw a window (when lets say some content must be updated), simply call Invalidate() which will then (asynchronly) call this paint function.

Usually you should draw the background using Window::DrawBackground(rDirty) and the border with DrawBorder(rRect). This way the user has full control over the appearance of your window, meaning he can change the background and border style.
The window content area itself is defined by the border margin and the window margin. Every window may define a margin. If you draw content into this window always make sure to not draw into the margin area. Additionally, the border has a margin too. As the user has full control to select any border for your window make sure to user the current borders margin when drawing window content. the dra Window::Paint() just redraws the background using DrawBackground. Overload this member function to add custom dawing code
Overload this member function to add custom dawing code
Parameters:
rDirty - Dirty rectangular region which has to be redrawn. Prior entering this function the painters clip region is automatically set to this dirty region.
See also:
DrawBorder, DrawBackground, Border, GetBorder, GetBorder::Margin, GetMargin

Reimplemented from SkyGI::LayoutView.

void SkyGI::FindBar::FindNext (  ) 

void SkyGI::FindBar::FindPrev (  ) 

bool FindBar::FocusGet (  )  [virtual]

Reimplemented from SkyGI::Window.

Point FindBar::GetSizeHint ( enumSizeHint  nSizeHint  )  [virtual]

Get size hint

Description:
Overload this member function for derived classes to inform the GUI about size hints for your widget.
SIZE_HINT_PREFERRED
Return the preferred size of the widget (may depend on the actual content)
SIZE_HINT_MINIMUM
Return the minimum size the widget needs to display a proper content
Note:
If you want to get the minimum or preferred size of a window always use GetMinimumSize or GetPreferredSize. Don't call GetSizeHint directly
See also:
GetPreferredSize, GetMinimumSize, SetMinimumSize

Reimplemented from SkyGI::Window.

void SkyGI::FindBar::OnFind ( const String szString,
bool  bForward 
)

void FindBar::RequestClose (  ) 

void FindBar::Set ( const String szString  ) 


Member Data Documentation

signal0 SkyGI::FindBar::Close

Emitted when user clicked on close button or escape was pressed

Description:
Do not destroy the FindBar from inside this signal handler (singal handler gets called from the FindBar context) but send a message to your window to asynchronously destroy the findbar.

signal2<const String&, bool> SkyGI::FindBar::Find

Emitted when user clicked on the find next or find previous button or entered a text

Description:


Generated on Thu Dec 13 18:14:24 2007 for SkyGI by  doxygen 1.5.1-p1