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

Search Toolkit Book for StructureWindow

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

+ Inheritance diagram for StructureWindow:
+ Collaboration diagram for StructureWindow:

Public Types

enum  {
  MID_OPEN = 1 , MID_NETWORK_OPEN , MID_SAVE_SAME , MID_SAVE_AS ,
  MID_PNG , MID_REFIT_ALL , MID_PREFERENCES , MID_FONTS ,
  MID_OPENGL_FONT , MID_SEQUENCE_FONT , MID_EXIT , MID_ZOOM_IN ,
  MID_ZOOM_OUT , MID_RESET , MID_RESTORE , MID_NEXT_FRAME ,
  MID_PREV_FRAME , MID_FIRST_FRAME , MID_LAST_FRAME , MID_ALL_FRAMES ,
  MID_STEREO , MID_ANIMATE , MID_PLAY , MID_SPIN ,
  MID_STOP , MID_ANIM_CONTROLS , MID_SHOW_HIDE , MID_SHOW_ALL ,
  MID_SHOW_DOMAINS , MID_SHOW_ALIGNED , MID_SHOW_CHAINS , MID_SHOW_UNALIGNED ,
  MID_SHOW_UNALIGNED_ALL , MID_SHOW_UNALIGNED_ALN_DOMAIN , MID_SHOW_SELECTED_RESIDUES , MID_SHOW_SELECTED_DOMAINS ,
  MID_DIST_SELECT , MID_SELECT_CHAIN , MID_SELECT_MOLECULE , MID_EDIT_STYLE ,
  MID_RENDER , MID_WORM , MID_TUBE , MID_WIRE ,
  MID_BNS , MID_SPACE , MID_SC_TOGGLE , MID_COLORS ,
  MID_SECSTRUC , MID_ALIGNED , MID_CONS , MID_IDENTITY ,
  MID_VARIETY , MID_WGHT_VAR , MID_INFO , MID_FIT ,
  MID_BLOCK_FIT , MID_BLOCK_Z_FIT , MID_BLOCK_ROW_FIT , MID_OBJECT ,
  MID_DOMAIN , MID_MOLECULE , MID_RESIDUE , MID_RAINBOW ,
  MID_HYDROPHOB , MID_CHARGE , MID_TEMP , MID_ELEMENT ,
  MID_ANNOTATE , MID_FAVORITES , MID_ADD_FAVORITE , MID_REMOVE_FAVORITE ,
  MID_FAVORITES_FILE , MID_SHOW_LOG , MID_SHOW_LOG_START , MID_SHOW_SEQ_V ,
  MID_SEND_SELECTION , MID_CDD_OVERVIEW , MID_EDIT_CDD_NAME , MID_EDIT_CDD_DESCR ,
  MID_EDIT_CDD_NOTES , MID_EDIT_CDD_REFERENCES , MID_EDIT_CDD_BOOK_REFERENCES , MID_ANNOT_CDD ,
  MID_CDD_REJECT_SEQ , MID_CDD_SHOW_REJECTS , MID_MESSAGING , MID_HELP_COMMANDS ,
  MID_ONLINE_HELP , MID_ABOUT = wxID_ABOUT , MID_FAVORITES_BEGIN = 100 , MID_FAVORITES_END = 149
}
 

Public Member Functions

 StructureWindow (const wxString &title, const wxPoint &pos, const wxSize &size)
 
 ~StructureWindow ()
 
void ReceivedCommand (const std::string &fromApp, unsigned long id, const std::string &command, const std::string &data)
 
void ReceivedReply (const std::string &fromApp, unsigned long id, ncbi::MessageResponder::ReplyStatus status, const std::string &data)
 
void SetupFileMessenger (const std::string &messageFilename, const std::string &messageApp, bool readOnly)
 
bool IsFileMessengerActive (void) const
 
void SendCommand (const std::string &toApp, const std::string &command, const std::string &data)
 
bool LoadData (const char *filename, bool force, bool noAlignmentWindow, ncbi::objects::CNcbi_mime_asn1 *mimeData=NULL)
 
bool SaveDialog (bool prompt, bool canCancel)
 
void SetWindowTitle (void)
 
void DialogTextChanged (const MultiTextDialog *changed)
 
void DialogDestroyed (const MultiTextDialog *destroyed)
 
void SetPreferredFavoriteStyle (const std::string &s)
 
void ShowCDDOverview (void)
 
void ShowCDDAnnotations (void)
 
void ShowCDDReferences (void)
 
void ShowCDDBookReferences (void)
 
void SetRenderingMenuFlag (int which)
 
void SetColoringMenuFlag (int which)
 
- Public Member Functions inherited from MultiTextDialogOwner
virtual ~MultiTextDialogOwner (void)
 

Public Attributes

Cn3DGLCanvasglCanvas
 

Private Types

enum  { ANIM_FRAMES , ANIM_SPIN }
 

Private Member Functions

void DestroyNonModalDialogs (void)
 
void OnExit (wxCommandEvent &event)
 
void OnCloseWindow (wxCloseEvent &event)
 
void OnShowWindow (wxCommandEvent &event)
 
void OnOpen (wxCommandEvent &event)
 
void OnSave (wxCommandEvent &event)
 
void OnPNG (wxCommandEvent &event)
 
void OnAlignStructures (wxCommandEvent &event)
 
void OnAdjustView (wxCommandEvent &event)
 
void OnShowHide (wxCommandEvent &event)
 
void OnSelect (wxCommandEvent &event)
 
void OnSetStyle (wxCommandEvent &event)
 
void OnEditFavorite (wxCommandEvent &event)
 
void OnSelectFavorite (wxCommandEvent &event)
 
void OnCDD (wxCommandEvent &event)
 
void OnPreferences (wxCommandEvent &event)
 
void OnSetFont (wxCommandEvent &event)
 
void OnAnimate (wxCommandEvent &event)
 
void OnAnimationTimer (wxTimerEvent &event)
 
void OnHelp (wxCommandEvent &event)
 
void OnSendSelection (wxCommandEvent &event)
 
void SetupFavoritesMenu (void)
 
void OnFileMessagingTimer (wxTimerEvent &event)
 

Private Attributes

CDDAnnotateDialogcddAnnotateDialog
 
MultiTextDialogcddDescriptionDialog
 
MultiTextDialogcddNotesDialog
 
CDDRefDialogcddRefDialog
 
CDDBookRefDialogcddBookRefDialog
 
CDDSplashDialogcddOverview
 
wxMenuBar * menuBar
 
wxMenu * fileMenu
 
wxMenu * favoritesMenu
 
wxMenu * windowMenu
 
std::string preferredFavoriteStyle
 
wxTimer animationTimer
 
int animationMode
 
double spinIncrement
 
wxHtmlHelpController * helpController
 
wxFileConfig * helpConfig
 
ncbi::FileMessagingManager fileMessagingManager
 
wxTimer fileMessagingTimer
 
ncbi::FileMessenger * fileMessenger
 
std::string messageTargetApp
 
CommandProcessorcommandProcessor
 

Detailed Description

Definition at line 69 of file structure_window.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MID_OPEN 
MID_NETWORK_OPEN 
MID_SAVE_SAME 
MID_SAVE_AS 
MID_PNG 
MID_REFIT_ALL 
MID_PREFERENCES 
MID_FONTS 
MID_OPENGL_FONT 
MID_SEQUENCE_FONT 
MID_EXIT 
MID_ZOOM_IN 
MID_ZOOM_OUT 
MID_RESET 
MID_RESTORE 
MID_NEXT_FRAME 
MID_PREV_FRAME 
MID_FIRST_FRAME 
MID_LAST_FRAME 
MID_ALL_FRAMES 
MID_STEREO 
MID_ANIMATE 
MID_PLAY 
MID_SPIN 
MID_STOP 
MID_ANIM_CONTROLS 
MID_SHOW_HIDE 
MID_SHOW_ALL 
MID_SHOW_DOMAINS 
MID_SHOW_ALIGNED 
MID_SHOW_CHAINS 
MID_SHOW_UNALIGNED 
MID_SHOW_UNALIGNED_ALL 
MID_SHOW_UNALIGNED_ALN_DOMAIN 
MID_SHOW_SELECTED_RESIDUES 
MID_SHOW_SELECTED_DOMAINS 
MID_DIST_SELECT 
MID_SELECT_CHAIN 
MID_SELECT_MOLECULE 
MID_EDIT_STYLE 
MID_RENDER 
MID_WORM 
MID_TUBE 
MID_WIRE 
MID_BNS 
MID_SPACE 
MID_SC_TOGGLE 
MID_COLORS 
MID_SECSTRUC 
MID_ALIGNED 
MID_CONS 
MID_IDENTITY 
MID_VARIETY 
MID_WGHT_VAR 
MID_INFO 
MID_FIT 
MID_BLOCK_FIT 
MID_BLOCK_Z_FIT 
MID_BLOCK_ROW_FIT 
MID_OBJECT 
MID_DOMAIN 
MID_MOLECULE 
MID_RESIDUE 
MID_RAINBOW 
MID_HYDROPHOB 
MID_CHARGE 
MID_TEMP 
MID_ELEMENT 
MID_ANNOTATE 
MID_FAVORITES 
MID_ADD_FAVORITE 
MID_REMOVE_FAVORITE 
MID_FAVORITES_FILE 
MID_SHOW_LOG 
MID_SHOW_LOG_START 
MID_SHOW_SEQ_V 
MID_SEND_SELECTION 
MID_CDD_OVERVIEW 
MID_EDIT_CDD_NAME 
MID_EDIT_CDD_DESCR 
MID_EDIT_CDD_NOTES 
MID_EDIT_CDD_REFERENCES 
MID_EDIT_CDD_BOOK_REFERENCES 
MID_ANNOT_CDD 
MID_CDD_REJECT_SEQ 
MID_CDD_SHOW_REJECTS 
MID_MESSAGING 
MID_HELP_COMMANDS 
MID_ONLINE_HELP 
MID_ABOUT 
MID_FAVORITES_BEGIN 
MID_FAVORITES_END 

Definition at line 96 of file structure_window.hpp.

◆ anonymous enum

anonymous enum
private
Enumerator
ANIM_FRAMES 
ANIM_SPIN 

Definition at line 252 of file structure_window.hpp.

Constructor & Destructor Documentation

◆ StructureWindow()

StructureWindow::StructureWindow ( const wxString &  title,
const wxPoint &  pos,
const wxSize &  size 
)

◆ ~StructureWindow()

StructureWindow::~StructureWindow ( void  )

Definition at line 389 of file structure_window.cpp.

References commandProcessor.

Member Function Documentation

◆ DestroyNonModalDialogs()

void StructureWindow::DestroyNonModalDialogs ( void  )
private

◆ DialogDestroyed()

void StructureWindow::DialogDestroyed ( const MultiTextDialog destroyed)
virtual

Implements MultiTextDialogOwner.

Definition at line 976 of file structure_window.cpp.

References cddDescriptionDialog, cddNotesDialog, NULL, and TRACEMSG.

◆ DialogTextChanged()

void StructureWindow::DialogTextChanged ( const MultiTextDialog changed)
virtual

◆ IsFileMessengerActive()

bool StructureWindow::IsFileMessengerActive ( void  ) const
inline

Definition at line 85 of file structure_window.hpp.

References fileMessenger, and NULL.

Referenced by Messenger::IsFileMessengerActive(), OnExit(), OnSave(), and SendCommand().

◆ LoadData()

bool StructureWindow::LoadData ( const char *  filename,
bool  force,
bool  noAlignmentWindow,
ncbi::objects::CNcbi_mime_asn1 *  mimeData = NULL 
)

◆ OnAdjustView()

void StructureWindow::OnAdjustView ( wxCommandEvent &  event)
private

◆ OnAlignStructures()

void StructureWindow::OnAlignStructures ( wxCommandEvent &  event)
private

◆ OnAnimate()

void StructureWindow::OnAnimate ( wxCommandEvent &  event)
private

◆ OnAnimationTimer()

void StructureWindow::OnAnimationTimer ( wxTimerEvent &  event)
private

◆ OnCDD()

void StructureWindow::OnCDD ( wxCommandEvent &  event)
private

◆ OnCloseWindow()

void StructureWindow::OnCloseWindow ( wxCloseEvent &  event)
private

Definition at line 394 of file structure_window.cpp.

References animationTimer, fileMessagingTimer, and MID_EXIT.

◆ OnEditFavorite()

void StructureWindow::OnEditFavorite ( wxCommandEvent &  event)
private

◆ OnExit()

void StructureWindow::OnExit ( wxCommandEvent &  event)
private

◆ OnFileMessagingTimer()

void StructureWindow::OnFileMessagingTimer ( wxTimerEvent &  event)
private

Definition at line 443 of file structure_window.cpp.

References fileMessagingManager.

◆ OnHelp()

void StructureWindow::OnHelp ( wxCommandEvent &  event)
private

◆ OnOpen()

void StructureWindow::OnOpen ( wxCommandEvent &  event)
private

◆ OnPNG()

void StructureWindow::OnPNG ( wxCommandEvent &  event)
private

Definition at line 659 of file structure_window.cpp.

References ExportPNG(), and glCanvas.

◆ OnPreferences()

void StructureWindow::OnPreferences ( wxCommandEvent &  event)
private

Definition at line 994 of file structure_window.cpp.

References glCanvas.

◆ OnSave()

void StructureWindow::OnSave ( wxCommandEvent &  event)
private

◆ OnSelect()

void StructureWindow::OnSelect ( wxCommandEvent &  event)
private

◆ OnSelectFavorite()

void StructureWindow::OnSelectFavorite ( wxCommandEvent &  event)
private

◆ OnSendSelection()

void StructureWindow::OnSendSelection ( wxCommandEvent &  event)
private

◆ OnSetFont()

void StructureWindow::OnSetFont ( wxCommandEvent &  event)
private

◆ OnSetStyle()

void StructureWindow::OnSetStyle ( wxCommandEvent &  event)
private

◆ OnShowHide()

void StructureWindow::OnShowHide ( wxCommandEvent &  event)
private

◆ OnShowWindow()

void StructureWindow::OnShowWindow ( wxCommandEvent &  event)
private

◆ ReceivedCommand()

void StructureWindow::ReceivedCommand ( const std::string fromApp,
unsigned long  id,
const std::string command,
const std::string data 
)

◆ ReceivedReply()

void StructureWindow::ReceivedReply ( const std::string fromApp,
unsigned long  id,
ncbi::MessageResponder::ReplyStatus  status,
const std::string data 
)

Definition at line 470 of file structure_window.cpp.

References data, ERRORMSG, INFOMSG, and MessageResponder::REPLY_OKAY.

◆ SaveDialog()

bool StructureWindow::SaveDialog ( bool  prompt,
bool  canCancel 
)

◆ SendCommand()

void StructureWindow::SendCommand ( const std::string toApp,
const std::string command,
const std::string data 
)

◆ SetColoringMenuFlag()

void StructureWindow::SetColoringMenuFlag ( int  which)

◆ SetPreferredFavoriteStyle()

void StructureWindow::SetPreferredFavoriteStyle ( const std::string s)
inline

Definition at line 94 of file structure_window.hpp.

References preferredFavoriteStyle.

Referenced by Cn3DApp::OnInit().

◆ SetRenderingMenuFlag()

void StructureWindow::SetRenderingMenuFlag ( int  which)

Definition at line 1373 of file structure_window.cpp.

References menuBar, MID_BNS, MID_SPACE, MID_TUBE, MID_WIRE, and MID_WORM.

Referenced by LoadDataOnly(), OnSelectFavorite(), and OnSetStyle().

◆ SetupFavoritesMenu()

void StructureWindow::SetupFavoritesMenu ( void  )
private

◆ SetupFileMessenger()

void StructureWindow::SetupFileMessenger ( const std::string messageFilename,
const std::string messageApp,
bool  readOnly 
)

◆ SetWindowTitle()

void StructureWindow::SetWindowTitle ( void  )

Definition at line 506 of file structure_window.cpp.

References CN3D_VERSION_STRING, GetWorkingTitle(), and SetTitle().

Referenced by Messenger::SetAllWindowTitles().

◆ ShowCDDAnnotations()

void StructureWindow::ShowCDDAnnotations ( void  )

Definition at line 1047 of file structure_window.cpp.

References cddAnnotateDialog, glCanvas, and Cn3DGLCanvas::structureSet.

Referenced by CDDSplashDialog::OnButton(), and OnCDD().

◆ ShowCDDBookReferences()

void StructureWindow::ShowCDDBookReferences ( void  )

Definition at line 1072 of file structure_window.cpp.

References cddBookRefDialog, glCanvas, and Cn3DGLCanvas::structureSet.

Referenced by OnCDD().

◆ ShowCDDOverview()

void StructureWindow::ShowCDDOverview ( void  )

Definition at line 1037 of file structure_window.cpp.

References cddOverview, glCanvas, and Cn3DGLCanvas::structureSet.

Referenced by LoadDataOnly(), and OnCDD().

◆ ShowCDDReferences()

void StructureWindow::ShowCDDReferences ( void  )

Definition at line 1063 of file structure_window.cpp.

References cddRefDialog, glCanvas, and Cn3DGLCanvas::structureSet.

Referenced by CDDSplashDialog::OnButton(), and OnCDD().

Member Data Documentation

◆ animationMode

int StructureWindow::animationMode
private

Definition at line 253 of file structure_window.hpp.

Referenced by OnAnimate(), and OnAnimationTimer().

◆ animationTimer

wxTimer StructureWindow::animationTimer
private

Definition at line 251 of file structure_window.hpp.

Referenced by OnAnimate(), OnCloseWindow(), and OnExit().

◆ cddAnnotateDialog

CDDAnnotateDialog* StructureWindow::cddAnnotateDialog
private

Definition at line 215 of file structure_window.hpp.

Referenced by DestroyNonModalDialogs(), and ShowCDDAnnotations().

◆ cddBookRefDialog

CDDBookRefDialog* StructureWindow::cddBookRefDialog
private

Definition at line 219 of file structure_window.hpp.

Referenced by DestroyNonModalDialogs(), and ShowCDDBookReferences().

◆ cddDescriptionDialog

MultiTextDialog* StructureWindow::cddDescriptionDialog
private

◆ cddNotesDialog

MultiTextDialog * StructureWindow::cddNotesDialog
private

◆ cddOverview

CDDSplashDialog* StructureWindow::cddOverview
private

Definition at line 220 of file structure_window.hpp.

Referenced by DestroyNonModalDialogs(), and ShowCDDOverview().

◆ cddRefDialog

CDDRefDialog* StructureWindow::cddRefDialog
private

Definition at line 218 of file structure_window.hpp.

Referenced by DestroyNonModalDialogs(), and ShowCDDReferences().

◆ commandProcessor

CommandProcessor* StructureWindow::commandProcessor
private

Definition at line 267 of file structure_window.hpp.

Referenced by ReceivedCommand(), and ~StructureWindow().

◆ favoritesMenu

wxMenu * StructureWindow::favoritesMenu
private

Definition at line 247 of file structure_window.hpp.

Referenced by SetupFavoritesMenu().

◆ fileMenu

wxMenu* StructureWindow::fileMenu
private

Definition at line 247 of file structure_window.hpp.

Referenced by LoadData(), and OnSave().

◆ fileMessagingManager

ncbi::FileMessagingManager StructureWindow::fileMessagingManager
private

Definition at line 261 of file structure_window.hpp.

Referenced by OnFileMessagingTimer(), and SetupFileMessenger().

◆ fileMessagingTimer

wxTimer StructureWindow::fileMessagingTimer
private

Definition at line 262 of file structure_window.hpp.

Referenced by OnCloseWindow(), OnExit(), and SetupFileMessenger().

◆ fileMessenger

ncbi::FileMessenger* StructureWindow::fileMessenger
private

◆ glCanvas

Cn3DGLCanvas* StructureWindow::glCanvas

◆ helpConfig

wxFileConfig* StructureWindow::helpConfig
private

Definition at line 258 of file structure_window.hpp.

Referenced by OnExit(), and OnHelp().

◆ helpController

wxHtmlHelpController* StructureWindow::helpController
private

Definition at line 257 of file structure_window.hpp.

Referenced by OnExit(), and OnHelp().

◆ menuBar

wxMenuBar* StructureWindow::menuBar
private

◆ messageTargetApp

std::string StructureWindow::messageTargetApp
private

Definition at line 265 of file structure_window.hpp.

Referenced by OnExit(), OnSave(), OnSendSelection(), and SetupFileMessenger().

◆ preferredFavoriteStyle

std::string StructureWindow::preferredFavoriteStyle
private

Definition at line 249 of file structure_window.hpp.

Referenced by LoadData(), and SetPreferredFavoriteStyle().

◆ spinIncrement

double StructureWindow::spinIncrement
private

Definition at line 254 of file structure_window.hpp.

Referenced by OnAnimate(), and OnAnimationTimer().

◆ windowMenu

wxMenu * StructureWindow::windowMenu
private

Definition at line 247 of file structure_window.hpp.

Referenced by SetupFileMessenger().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:56 2024 by modify_doxy.py rev. 669887