NCBI C++ ToolKit
|
Search Toolkit Book for ure_window_8cpp
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <corelib/ncbitime.hpp>
#include <objects/ncbimime/Ncbi_mime_asn1.hpp>
#include <objects/cdd/Cdd.hpp>
#include <objects/mmdb2/Model_type.hpp>
#include <algorithm>
#include <memory>
#include "remove_header_conflicts.hpp"
#include <wx/wx.h>
#include <wx/html/helpfrm.h>
#include <wx/html/helpctrl.h>
#include <wx/fontdlg.h>
#include <wx/confbase.h>
#include <wx/fileconf.h>
#include <wx/filename.h>
#include <wx/choicdlg.h>
#include "asn_reader.hpp"
#include "cn3d_glcanvas.hpp"
#include "structure_window.hpp"
#include "structure_set.hpp"
#include "opengl_renderer.hpp"
#include "style_manager.hpp"
#include "messenger.hpp"
#include "chemical_graph.hpp"
#include "alignment_manager.hpp"
#include "show_hide_manager.hpp"
#include "show_hide_dialog.hpp"
#include "cn3d_tools.hpp"
#include "cdd_annot_dialog.hpp"
#include "preferences_dialog.hpp"
#include "cdd_ref_dialog.hpp"
#include "cdd_book_ref_dialog.hpp"
#include "cn3d_png.hpp"
#include <algo/structure/wx_tools/wx_tools.hpp>
#include "block_multiple_alignment.hpp"
#include "sequence_set.hpp"
#include "molecule_identifier.hpp"
#include "cdd_splash_dialog.hpp"
#include "command_processor.hpp"
#include "animation_controls.hpp"
#include "cn3d_cache.hpp"
#include "dist_select_dialog.hpp"
#include "data_manager.hpp"
Go to the source code of this file.
Macros | |
#define | RENDERING_SHORTCUT(type, menu) |
#define | COLORING_SHORTCUT(type, menu) |
Typedefs | |
typedef pair< const Sequence *, wxString > | SeqAndDescr |
typedef vector< SeqAndDescr > | SeqAndDescrList |
Functions | |
USING_SCOPE (objects) | |
const string & | GetUserDir (void) |
const string & | GetWorkingFilename (void) |
const string & | GetWorkingTitle (void) |
static void | SetWorkingTitle (StructureSet *sSet) |
static bool | LoadFavorites (void) |
static void | SaveFavorites (void) |
static string | GetFavoritesFile (bool forRead) |
static bool | CompareSequencesByIdentifier (const SeqAndDescr &a, const SeqAndDescr &b) |
static EModel_type | GetModelTypeFromUser (wxWindow *parent) |
bool | LoadDataOnly (StructureSet **sset, OpenGLRenderer *renderer, const char *filename, CNcbi_mime_asn1 *mimeData, const string &favoriteStyle, EModel_type model, StructureWindow *window) |
#define COLORING_SHORTCUT | ( | type, | |
menu | |||
) |
Definition at line 1319 of file structure_window.cpp.
#define RENDERING_SHORTCUT | ( | type, | |
menu | |||
) |
Definition at line 1315 of file structure_window.cpp.
typedef pair< const Sequence * , wxString > SeqAndDescr |
Definition at line 1029 of file structure_window.cpp.
typedef vector< SeqAndDescr > SeqAndDescrList |
Definition at line 1030 of file structure_window.cpp.
|
static |
Definition at line 1031 of file structure_window.cpp.
References a, b, and MoleculeIdentifier::CompareIdentifiers().
Referenced by StructureWindow::OnCDD().
Definition at line 780 of file structure_window.cpp.
References ERRORMSG, file, GetPrefsDir(), NO_FAVORITES_FILE, REG_CONFIG_SECTION, REG_FAVORITES_NAME, RegistryGetString(), and RegistrySetString().
Referenced by StructureWindow::OnEditFavorite(), and SaveFavorites().
|
static |
Definition at line 1405 of file structure_window.cpp.
References eModel_type_ncbi_all_atom, eModel_type_ncbi_backbone, eModel_type_pdb_model, ERRORMSG, and NULL.
Referenced by LoadDataOnly(), and StructureWindow::OnOpen().
Definition at line 105 of file structure_window.cpp.
References userDir.
Referenced by UpdateViewer::ImportStructure(), and PNGOptionsDialog::OnButton().
Definition at line 106 of file structure_window.cpp.
References currentFile.
Referenced by SetWorkingTitle().
Definition at line 110 of file structure_window.cpp.
References workingTitle.
Referenced by SequenceViewerWindow::SetWindowTitle(), StructureWindow::SetWindowTitle(), and UpdateViewerWindow::SetWindowTitle().
bool LoadDataOnly | ( | StructureSet ** | sset, |
OpenGLRenderer * | renderer, | ||
const char * | filename, | ||
CNcbi_mime_asn1 * | mimeData, | ||
const string & | favoriteStyle, | ||
EModel_type | model, | ||
StructureWindow * | window | ||
) |
Definition at line 1427 of file structure_window.cpp.
References OpenGLRenderer::AttachStructureSet(), OpenGLRenderer::ComputeBestView(), CreateMimeFromBiostruc(), currentFile, currentFileIsBinary, eDiag_Fatal, eDiag_Info, StyleSettings::eIdentityShortcut, StyleSettings::eInformationContentShortcut, ERRORMSG, StyleSettings::eSecondaryStructureShortcut, StyleSettings::eTubeShortcut, StyleSettings::eWormShortcut, f, favoriteStyles, CCn3d_style_settings_set_Base::Get(), GetModelTypeFromUser(), CRef< C, Locker >::GetPointer(), GetWorkingDir(), OpenGLRenderer::HasASNViewSettings(), in(), INFOMSG, IsWindowedMode(), kMax_Int, LoadFavorites(), StructureWindow::MID_IDENTITY, StructureWindow::MID_INFO, StructureWindow::MID_SECSTRUC, StructureWindow::MID_TUBE, StructureWindow::MID_WORM, ReadASNFromFile(), REG_ADVANCED_SECTION, REG_MAX_N_STRUCTS, RegistryGetInteger(), StructureWindow::SetColoringMenuFlag(), SetDiagPostLevel(), StructureWindow::SetRenderingMenuFlag(), StructureWindow::ShowCDDOverview(), string, TRACEMSG, userDir, WARNINGMSG, and WX_TO_STD.
Referenced by StructureWindow::LoadData(), and Cn3DNoWin::Run().
Definition at line 799 of file structure_window.cpp.
References ERRORMSG, favoriteStyles, favoriteStylesChanged, INFOMSG, NO_FAVORITES_FILE, ReadASNFromFile(), REG_CONFIG_SECTION, REG_FAVORITES_NAME, RegistryGetString(), RegistrySetString(), CCn3d_style_settings_set_Base::Reset(), and WARNINGMSG.
Referenced by LoadDataOnly(), StructureWindow::OnEditFavorite(), and StructureWindow::StructureWindow().
|
static |
Definition at line 823 of file structure_window.cpp.
References ERRORMSG, favoriteStyles, favoriteStylesChanged, GetFavoritesFile(), NO_FAVORITES_FILE, and WriteASNToFile().
Referenced by StructureWindow::OnEditFavorite(), and StructureWindow::OnExit().
|
static |
Definition at line 111 of file structure_window.cpp.
References StructureSet::GetCDDName(), GetWorkingFilename(), StructureSet::IsCDD(), StructureSet::IsCDDInMime(), StructureSet::objects, and workingTitle.
Referenced by StructureWindow::LoadData(), StructureWindow::OnCDD(), and StructureWindow::OnSave().
USING_SCOPE | ( | objects | ) |
|
static |
Definition at line 103 of file structure_window.cpp.
Referenced by GetWorkingFilename(), LoadDataOnly(), and StructureWindow::OnSave().
|
static |
Definition at line 104 of file structure_window.cpp.
Referenced by LoadDataOnly(), and StructureWindow::OnSave().
|
static |
Definition at line 127 of file structure_window.cpp.
Referenced by LoadDataOnly(), LoadFavorites(), StructureWindow::OnEditFavorite(), StructureWindow::OnSelectFavorite(), SaveFavorites(), and StructureWindow::SetupFavoritesMenu().
Definition at line 126 of file structure_window.cpp.
Referenced by LoadFavorites(), StructureWindow::OnEditFavorite(), and SaveFavorites().
|
static |
Definition at line 102 of file structure_window.cpp.
Referenced by GetUserDir(), LoadDataOnly(), StructureWindow::OnOpen(), and StructureWindow::OnSave().
USING_NCBI_SCOPE |
Definition at line 94 of file structure_window.cpp.
|
static |
Definition at line 109 of file structure_window.cpp.
Referenced by GetWorkingTitle(), and SetWorkingTitle().