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

Search Toolkit Book for CTestCmdUI

CTestCmdUI. More...

#include "events_tools.hpp"
(Private to src/gui/utils/unit_test.)

+ Inheritance diagram for CTestCmdUI:
+ Collaboration diagram for CTestCmdUI:

Public Member Functions

 CTestCmdUI (TCmdID cmd, const string &label)
 CTestCmdUI. More...
 
 CTestCmdUI (TCmdID cmd, const string &label, bool en, bool check, bool radio)
 
bool IsEnabled () const
 "true" if at least one memeber was called More...
 
bool IsChecked () const
 
bool IsRadio () const
 
bool IsVisited () const
 
ICmdUI implementation
virtual TCmdID GetCommand () const
 
virtual void Enable (bool en)
 
virtual void SetCheck (bool set)
 
virtual void SetRadio (bool set)
 
virtual void SetLabel (const string &label)
 

Protected Attributes

TCmdID m_Cmd
 
string m_Label
 
bool m_Enabled
 
bool m_Checked
 
bool m_Radio
 
bool m_Visited
 

Detailed Description

CTestCmdUI.

Definition at line 130 of file events_tools.hpp.

Constructor & Destructor Documentation

◆ CTestCmdUI() [1/2]

CTestCmdUI::CTestCmdUI ( TCmdID  cmd,
const string label 
)

CTestCmdUI.

Definition at line 215 of file events_tools.cpp.

◆ CTestCmdUI() [2/2]

CTestCmdUI::CTestCmdUI ( TCmdID  cmd,
const string label,
bool  en,
bool  check,
bool  radio 
)

Definition at line 222 of file events_tools.cpp.

Member Function Documentation

◆ Enable()

void CTestCmdUI::Enable ( bool  en)
virtual

Definition at line 235 of file events_tools.cpp.

References m_Enabled, and m_Visited.

◆ GetCommand()

TCmdID CTestCmdUI::GetCommand ( void  ) const
virtual

Definition at line 229 of file events_tools.cpp.

References m_Cmd.

◆ IsChecked()

bool CTestCmdUI::IsChecked ( void  ) const
inline

Definition at line 147 of file events_tools.hpp.

References m_Checked.

Referenced by TestCommandUpdates().

◆ IsEnabled()

bool CTestCmdUI::IsEnabled ( void  ) const
inline

"true" if at least one memeber was called

Definition at line 146 of file events_tools.hpp.

References m_Enabled.

Referenced by TestCommandUpdateReached(), and TestCommandUpdates().

◆ IsRadio()

bool CTestCmdUI::IsRadio ( ) const
inline

Definition at line 148 of file events_tools.hpp.

References m_Radio.

◆ IsVisited()

bool CTestCmdUI::IsVisited ( ) const
inline

Definition at line 150 of file events_tools.hpp.

References m_Visited.

Referenced by TestCommandUpdateReached(), and TestCommandUpdates().

◆ SetCheck()

void CTestCmdUI::SetCheck ( bool  set)
virtual

Definition at line 242 of file events_tools.cpp.

References m_Checked, and m_Visited.

◆ SetLabel()

void CTestCmdUI::SetLabel ( const string label)
virtual

Definition at line 256 of file events_tools.cpp.

References label, m_Label, and m_Visited.

◆ SetRadio()

void CTestCmdUI::SetRadio ( bool  set)
virtual

Definition at line 249 of file events_tools.cpp.

References m_Radio, and m_Visited.

Member Data Documentation

◆ m_Checked

bool CTestCmdUI::m_Checked
protected

Definition at line 156 of file events_tools.hpp.

Referenced by IsChecked(), and SetCheck().

◆ m_Cmd

TCmdID CTestCmdUI::m_Cmd
protected

Definition at line 153 of file events_tools.hpp.

Referenced by GetCommand().

◆ m_Enabled

bool CTestCmdUI::m_Enabled
protected

Definition at line 155 of file events_tools.hpp.

Referenced by Enable(), and IsEnabled().

◆ m_Label

string CTestCmdUI::m_Label
protected

Definition at line 154 of file events_tools.hpp.

Referenced by SetLabel().

◆ m_Radio

bool CTestCmdUI::m_Radio
protected

Definition at line 157 of file events_tools.hpp.

Referenced by IsRadio(), and SetRadio().

◆ m_Visited

bool CTestCmdUI::m_Visited
protected

Definition at line 158 of file events_tools.hpp.

Referenced by Enable(), IsVisited(), SetCheck(), SetLabel(), and SetRadio().


The documentation for this class was generated from the following files:
Modified on Wed Sep 04 15:01:32 2024 by modify_doxy.py rev. 669887