MicroImages::GRTOOLVIEW Class Reference

GRTOOLVIEW - Container view for graphic tools. More...

#include <mi32/grtool.h>

List of all members.

Public Member Functions

GRTOOLGetActiveTool () const
MGUI::COMMAND_ROUTERGetCmdRouter ()
const DRECT2DGetExtents () const
void GraphicToolResume () const
void GraphicToolSuspend () const
bool InRestoreBackground () const
bool IsRedrawDelayed () const
bool IsResizing () const
 operator MGUI::COMMAND_ROUTER * ()
void RedrawDelayed (int delay=1000)
void RestoreBackground (const LRECT2D &rect)

Protected Member Functions

 GRTOOLVIEW ()
afx_msg void OnCaptureChanged (CWnd *pWnd)
afx_msg void OnChar (UINT nChar, UINT nRepCnt, UINT nFlags)
virtual BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
virtual void OnDraw (CDC *pDC)
virtual bool OnKey (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
afx_msg BOOL OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnTimer (UINT nIDEvent)
virtual ~GRTOOLVIEW ()

Private Member Functions

void AddTool (GRTOOL *const tool)
void RemoveTool (GRTOOL *const tool)
void SetActiveTool (GRTOOL *tool)

Private Attributes

GRTOOLm_ActiveTool
MGUI::COMMAND_ROUTER m_CmdRouter
DRECT2D m_Extents
bool m_InRestoreBG
bool m_IsResizing
UINT m_LastHandledChar
UINT m_RedrawTimerID
std::list< GRTOOL * > m_ToolList


Detailed Description

GRTOOLVIEW - Container view for graphic tools.

Definition at line 1792 of file grtool.h.


Constructor & Destructor Documentation

MicroImages::GRTOOLVIEW::GRTOOLVIEW  )  [protected]
 

virtual MicroImages::GRTOOLVIEW::~GRTOOLVIEW  )  [protected, virtual]
 


Member Function Documentation

void MicroImages::GRTOOLVIEW::AddTool GRTOOL *const   tool  )  [private]
 

GRTOOL* MicroImages::GRTOOLVIEW::GetActiveTool  )  const [inline]
 

Get pointer to currently active graphic tool.

Definition at line 1807 of file grtool.h.

MGUI::COMMAND_ROUTER& MicroImages::GRTOOLVIEW::GetCmdRouter  )  [inline]
 

Get command router reference.

Definition at line 1811 of file grtool.h.

const DRECT2D& MicroImages::GRTOOLVIEW::GetExtents  )  const [inline]
 

Get extents of view, typically for pre-clipping.

Definition at line 1815 of file grtool.h.

void MicroImages::GRTOOLVIEW::GraphicToolResume  )  const [inline]
 

Resume active graphic tool.

Definition at line 1819 of file grtool.h.

void MicroImages::GRTOOLVIEW::GraphicToolSuspend  )  const [inline]
 

Suspend active graphic tool.

Definition at line 1823 of file grtool.h.

bool MicroImages::GRTOOLVIEW::InRestoreBackground  )  const [inline]
 

Determine if doing background restore.

Definition at line 1835 of file grtool.h.

bool MicroImages::GRTOOLVIEW::IsRedrawDelayed  )  const [inline]
 

Determine if view set for delayed redraw.

Definition at line 1827 of file grtool.h.

bool MicroImages::GRTOOLVIEW::IsResizing  )  const [inline]
 

Determine if view is being resized.

Definition at line 1831 of file grtool.h.

afx_msg void MicroImages::GRTOOLVIEW::OnCaptureChanged CWnd *  pWnd  )  [protected]
 

Generated message map functions.

afx_msg void MicroImages::GRTOOLVIEW::OnChar UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected]
 

virtual BOOL MicroImages::GRTOOLVIEW::OnCmdMsg UINT  nID,
int  nCode,
void *  pExtra,
AFX_CMDHANDLERINFO *  pHandlerInfo
[protected, virtual]
 

virtual void MicroImages::GRTOOLVIEW::OnDraw CDC *  pDC  )  [protected, virtual]
 

virtual bool MicroImages::GRTOOLVIEW::OnKey UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected, virtual]
 

Called when key pressed/released.

Returns:
'true' if key handled, 'false' if not.

afx_msg void MicroImages::GRTOOLVIEW::OnKeyDown UINT  nChar,
UINT  nRepCnt,
UINT  nFlags
[protected]
 

afx_msg void MicroImages::GRTOOLVIEW::OnLButtonDown UINT  nFlags,
CPoint  point
[protected]
 

afx_msg void MicroImages::GRTOOLVIEW::OnLButtonUp UINT  nFlags,
CPoint  point
[protected]
 

afx_msg void MicroImages::GRTOOLVIEW::OnMouseMove UINT  nFlags,
CPoint  point
[protected]
 

afx_msg void MicroImages::GRTOOLVIEW::OnRButtonDown UINT  nFlags,
CPoint  point
[protected]
 

afx_msg void MicroImages::GRTOOLVIEW::OnRButtonUp UINT  nFlags,
CPoint  point
[protected]
 

afx_msg BOOL MicroImages::GRTOOLVIEW::OnSetCursor CWnd *  pWnd,
UINT  nHitTest,
UINT  message
[protected]
 

afx_msg void MicroImages::GRTOOLVIEW::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

afx_msg void MicroImages::GRTOOLVIEW::OnTimer UINT  nIDEvent  )  [protected]
 

MicroImages::GRTOOLVIEW::operator MGUI::COMMAND_ROUTER *  )  [inline]
 

Cast to MGUI::COMMAND_ROUTER* for use in adding MGUI::COMMAND_TARGET.

Definition at line 1803 of file grtool.h.

void MicroImages::GRTOOLVIEW::RedrawDelayed int  delay = 1000  ) 
 

Set view for delayed redraw.

Parameters:
delay  Delay in milliseconds

void MicroImages::GRTOOLVIEW::RemoveTool GRTOOL *const   tool  )  [private]
 

void MicroImages::GRTOOLVIEW::RestoreBackground const LRECT2D rect  ) 
 

void MicroImages::GRTOOLVIEW::SetActiveTool GRTOOL tool  )  [inline, private]
 

Definition at line 1889 of file grtool.h.


Member Data Documentation

GRTOOL* MicroImages::GRTOOLVIEW::m_ActiveTool [private]
 

Definition at line 1879 of file grtool.h.

MGUI::COMMAND_ROUTER MicroImages::GRTOOLVIEW::m_CmdRouter [private]
 

Definition at line 1878 of file grtool.h.

DRECT2D MicroImages::GRTOOLVIEW::m_Extents [private]
 

Window extents rectangle.

Definition at line 1884 of file grtool.h.

bool MicroImages::GRTOOLVIEW::m_InRestoreBG [private]
 

Definition at line 1881 of file grtool.h.

bool MicroImages::GRTOOLVIEW::m_IsResizing [private]
 

Definition at line 1880 of file grtool.h.

UINT MicroImages::GRTOOLVIEW::m_LastHandledChar [private]
 

Last keydown character handled.

Definition at line 1882 of file grtool.h.

UINT MicroImages::GRTOOLVIEW::m_RedrawTimerID [private]
 

Definition at line 1883 of file grtool.h.

std::list<GRTOOL*> MicroImages::GRTOOLVIEW::m_ToolList [private]
 

List of tools.

Definition at line 1885 of file grtool.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:21:06 2004 for TNTsdk by  doxygen 1.3.8-20040913