NCBI C++ ToolKit
Public Member Functions | Protected Attributes | List of all members
CProgressPanel Class Reference

Search Toolkit Book for CProgressPanel

#include <gui/widgets/gl/progress_panel.hpp>

+ Inheritance diagram for CProgressPanel:
+ Collaboration diagram for CProgressPanel:

Public Member Functions

 CProgressPanel ()
 CProgressPanel. More...
 
virtual ~CProgressPanel ()
 
virtual void Update (float progress, const string &msg)
 
IRenderable implementation
virtual void Render (CGlPane &pane)
 
virtual TVPPoint PreferredSize ()
 
- Public Member Functions inherited from CRenderableImpl
 CRenderableImpl ()
 CRenderableImpl. More...
 
virtual ~CRenderableImpl ()
 
virtual TVPRect GetVPRect () const
 
virtual void SetVPRect (const TVPRect &rc)
 
virtual TModelRect GetModelRect () const
 
virtual void SetModelRect (const TModelRect &rc)
 
virtual bool IsVisible ()
 
virtual void SetVisible (bool set)
 
virtual bool NeedTooltip (CGlPane &pane, TVPUnit vp_x, TVPUnit vp_y)
 
virtual string GetTooltip ()
 
virtual void SetOrder (int order)
 
virtual int GetOrder () const
 
- Public Member Functions inherited from IRenderable
virtual ~IRenderable (void)
 

Protected Attributes

CGlTextureFont m_Font
 
float m_Progress
 
string m_Message
 
- Protected Attributes inherited from CRenderableImpl
TVPRect m_VPRect
 
TModelRect m_ModelRect
 
bool m_Visible
 
int m_Order = 0
 

Detailed Description

Definition at line 45 of file progress_panel.hpp.

Constructor & Destructor Documentation

◆ CProgressPanel()

CProgressPanel::CProgressPanel ( )

CProgressPanel.

Definition at line 45 of file progress_panel.cpp.

◆ ~CProgressPanel()

CProgressPanel::~CProgressPanel ( )
virtual

Definition at line 52 of file progress_panel.cpp.

Member Function Documentation

◆ PreferredSize()

TVPPoint CProgressPanel::PreferredSize ( )
virtual

Reimplemented from CRenderableImpl.

Definition at line 126 of file progress_panel.cpp.

References int, kPrH, kPrOff, m_Font, and CGlTextureFont::TextHeight().

Referenced by Render(), and CAlnMultiPane::x_RenderProgressPanel().

◆ Render()

void CProgressPanel::Render ( CGlPane pane)
virtual

◆ Update()

void CProgressPanel::Update ( float  progress,
const string msg 
)
virtual

Definition at line 57 of file progress_panel.cpp.

References m_Message, and m_Progress.

Referenced by CAlnMultiPane::ShowProgressPanel().

Member Data Documentation

◆ m_Font

CGlTextureFont CProgressPanel::m_Font
protected

Definition at line 62 of file progress_panel.hpp.

Referenced by PreferredSize(), and Render().

◆ m_Message

string CProgressPanel::m_Message
protected

Definition at line 65 of file progress_panel.hpp.

Referenced by Render(), and Update().

◆ m_Progress

float CProgressPanel::m_Progress
protected

Definition at line 64 of file progress_panel.hpp.

Referenced by Render(), and Update().


The documentation for this class was generated from the following files:
Modified on Mon Feb 26 04:01:18 2024 by modify_doxy.py rev. 669887