NCBI C++ ToolKit
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MultiTextDialog Class Reference

Search Toolkit Book for MultiTextDialog

#include "multitext_dialog.hpp"
(Private to src/app/cn3d.)

+ Inheritance diagram for MultiTextDialog:
+ Collaboration diagram for MultiTextDialog:

Public Types

typedef std::vector< std::stringTextLines
 

Public Member Functions

 MultiTextDialog (MultiTextDialogOwner *owner, const TextLines &initialText, wxWindow *parent, wxWindowID id, const wxString &title)
 
 ~MultiTextDialog (void)
 
bool GetLines (TextLines *lines) const
 
bool GetLine (std::string *singleString) const
 
bool ShowDialog (bool)
 
int ShowModalDialog (void)
 
bool DestroyDialog (void)
 

Private Member Functions

void SetToInitialText (void)
 
void OnButton (wxCommandEvent &event)
 
void OnTextChange (wxCommandEvent &event)
 
void OnCloseWindow (wxCloseEvent &event)
 

Private Attributes

MultiTextDialogOwnermyOwner
 
wxTextCtrl * textCtrl
 
wxButton * bDone
 
wxButton * bRevert
 
const TextLines initialText
 

Detailed Description

Definition at line 70 of file multitext_dialog.hpp.

Member Typedef Documentation

◆ TextLines

typedef std::vector< std::string > MultiTextDialog::TextLines

Definition at line 73 of file multitext_dialog.hpp.

Constructor & Destructor Documentation

◆ MultiTextDialog()

MultiTextDialog::MultiTextDialog ( MultiTextDialogOwner owner,
const TextLines initialText,
wxWindow *  parent,
wxWindowID  id,
const wxString &  title 
)

◆ ~MultiTextDialog()

MultiTextDialog::~MultiTextDialog ( void  )

Member Function Documentation

◆ DestroyDialog()

bool MultiTextDialog::DestroyDialog ( void  )
inline

Definition at line 84 of file multitext_dialog.hpp.

Referenced by StructureWindow::DestroyNonModalDialogs().

◆ GetLine()

bool MultiTextDialog::GetLine ( std::string singleString) const

Definition at line 207 of file multitext_dialog.cpp.

References i, textCtrl, and WX_TO_STD.

Referenced by StructureWindow::DialogTextChanged().

◆ GetLines()

bool MultiTextDialog::GetLines ( TextLines lines) const

Definition at line 196 of file multitext_dialog.cpp.

References i, textCtrl, and WX_TO_STD.

Referenced by StructureWindow::DialogTextChanged().

◆ OnButton()

void MultiTextDialog::OnButton ( wxCommandEvent &  event)
private

Definition at line 183 of file multitext_dialog.cpp.

References bDone, bRevert, and SetToInitialText().

◆ OnCloseWindow()

void MultiTextDialog::OnCloseWindow ( wxCloseEvent &  event)
private

Definition at line 161 of file multitext_dialog.cpp.

◆ OnTextChange()

void MultiTextDialog::OnTextChange ( wxCommandEvent &  event)
private

Definition at line 191 of file multitext_dialog.cpp.

References MultiTextDialogOwner::DialogTextChanged(), and myOwner.

◆ SetToInitialText()

void MultiTextDialog::SetToInitialText ( void  )
private

Definition at line 141 of file multitext_dialog.cpp.

References i, initialText, and textCtrl.

Referenced by OnButton().

◆ ShowDialog()

bool MultiTextDialog::ShowDialog ( bool  show)

Definition at line 175 of file multitext_dialog.cpp.

References textCtrl.

Referenced by StructureWindow::OnCDD().

◆ ShowModalDialog()

int MultiTextDialog::ShowModalDialog ( void  )

Definition at line 167 of file multitext_dialog.cpp.

References textCtrl.

Member Data Documentation

◆ bDone

wxButton* MultiTextDialog::bDone
private

Definition at line 91 of file multitext_dialog.hpp.

Referenced by OnButton().

◆ bRevert

wxButton * MultiTextDialog::bRevert
private

Definition at line 91 of file multitext_dialog.hpp.

Referenced by OnButton().

◆ initialText

const TextLines MultiTextDialog::initialText
private

Definition at line 94 of file multitext_dialog.hpp.

Referenced by SetToInitialText().

◆ myOwner

MultiTextDialogOwner* MultiTextDialog::myOwner
private

Definition at line 87 of file multitext_dialog.hpp.

Referenced by OnTextChange(), and ~MultiTextDialog().

◆ textCtrl

wxTextCtrl* MultiTextDialog::textCtrl
private

Definition at line 90 of file multitext_dialog.hpp.

Referenced by GetLine(), GetLines(), SetToInitialText(), ShowDialog(), and ShowModalDialog().


The documentation for this class was generated from the following files:
Modified on Fri Jul 19 17:10:04 2024 by modify_doxy.py rev. 669887