NCBI C++ ToolKit
Macros | Functions | Variables
cdd_book_ref_dialog.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <util/xregexp/regexp.hpp>
#include <util/ncbi_url.hpp>
#include <objects/cdd/Cdd_descr.hpp>
#include <objects/cdd/Cdd_book_ref.hpp>
#include <algo/structure/cd_utils/cuBookRefUtils.hpp>
#include "remove_header_conflicts.hpp"
#include "cdd_book_ref_dialog.hpp"
#include "structure_set.hpp"
#include "cn3d_tools.hpp"
#include <wx/clipbrd.h>
#include <wx/tokenzr.h>
#include <wx/image.h>
#include <wx/statline.h>
#include <wx/spinbutt.h>
#include <wx/spinctrl.h>
#include <wx/splitter.h>
#include <wx/listctrl.h>
#include <wx/treectrl.h>
#include <wx/notebook.h>
#include <wx/grid.h>
+ Include dependency graph for cdd_book_ref_dialog.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define ID_LISTBOX   10000
 
#define ID_B_UP   10001
 
#define ID_B_LAUNCH   10002
 
#define ID_B_NEW   10003
 
#define ID_B_SAVE   10004
 
#define ID_B_DOWN   10005
 
#define ID_B_EDIT   10006
 
#define ID_B_PASTE   10007
 
#define ID_B_DELETE   10008
 
#define ID_LINE   10009
 
#define ID_TEXT   10010
 
#define ID_T_NAME   10011
 
#define ID_C_TYPE   10012
 
#define ID_T_ADDRESS   10013
 
#define ID_T_SUBADDRESS   10014
 
#define ID_B_DONE   10015
 
#define DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR(var, id, type)
 

Functions

wxSizer * SetupBookRefDialog (wxWindow *parent, bool call_fit=TRUE, bool set_sizer=TRUE)
 
 USING_SCOPE (objects)
 
static wxString MakePortalParameterString (const CCdd_book_ref &bref)
 
static wxString MakeBrParameterString (const CCdd_book_ref &bref)
 
static void InsertAfter (int selectedItem, CCdd_descr_set *descrSet, CCdd_descr *descr)
 
bool BrURLToBookRef (wxTextDataObject &data, CRef< CCdd_descr > &descr)
 
bool BookURLToBookRef (wxTextDataObject &data, CRef< CCdd_descr > &descr)
 

Variables

 USING_NCBI_SCOPE
 
static TypeStringAssociator< CCdd_book_ref::ETextelementenum2str
 

Macro Definition Documentation

◆ DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR

#define DECLARE_AND_FIND_WINDOW_RETURN_ON_ERR (   var,
  id,
  type 
)
Value:
type *var; \
var = wxDynamicCast(FindWindow(id), type); \
if (!var) { \
ERRORMSG("Can't find window with id " << id); \
return; \
}
Definition: type.c:6

Definition at line 94 of file cdd_book_ref_dialog.cpp.

◆ ID_B_DELETE

#define ID_B_DELETE   10008

Definition at line 76 of file cdd_book_ref_dialog.cpp.

◆ ID_B_DONE

#define ID_B_DONE   10015

Definition at line 83 of file cdd_book_ref_dialog.cpp.

◆ ID_B_DOWN

#define ID_B_DOWN   10005

Definition at line 73 of file cdd_book_ref_dialog.cpp.

◆ ID_B_EDIT

#define ID_B_EDIT   10006

Definition at line 74 of file cdd_book_ref_dialog.cpp.

◆ ID_B_LAUNCH

#define ID_B_LAUNCH   10002

Definition at line 70 of file cdd_book_ref_dialog.cpp.

◆ ID_B_NEW

#define ID_B_NEW   10003

Definition at line 71 of file cdd_book_ref_dialog.cpp.

◆ ID_B_PASTE

#define ID_B_PASTE   10007

Definition at line 75 of file cdd_book_ref_dialog.cpp.

◆ ID_B_SAVE

#define ID_B_SAVE   10004

Definition at line 72 of file cdd_book_ref_dialog.cpp.

◆ ID_B_UP

#define ID_B_UP   10001

Definition at line 69 of file cdd_book_ref_dialog.cpp.

◆ ID_C_TYPE

#define ID_C_TYPE   10012

Definition at line 80 of file cdd_book_ref_dialog.cpp.

◆ ID_LINE

#define ID_LINE   10009

Definition at line 77 of file cdd_book_ref_dialog.cpp.

◆ ID_LISTBOX

#define ID_LISTBOX   10000

Definition at line 68 of file cdd_book_ref_dialog.cpp.

◆ ID_T_ADDRESS

#define ID_T_ADDRESS   10013

Definition at line 81 of file cdd_book_ref_dialog.cpp.

◆ ID_T_NAME

#define ID_T_NAME   10011

Definition at line 79 of file cdd_book_ref_dialog.cpp.

◆ ID_T_SUBADDRESS

#define ID_T_SUBADDRESS   10014

Definition at line 82 of file cdd_book_ref_dialog.cpp.

◆ ID_TEXT

#define ID_TEXT   10010

Definition at line 78 of file cdd_book_ref_dialog.cpp.

Function Documentation

◆ BookURLToBookRef()

bool BookURLToBookRef ( wxTextDataObject &  data,
CRef< CCdd_descr > &  descr 
)

◆ BrURLToBookRef()

bool BrURLToBookRef ( wxTextDataObject &  data,
CRef< CCdd_descr > &  descr 
)

◆ InsertAfter()

static void InsertAfter ( int  selectedItem,
CCdd_descr_set descrSet,
CCdd_descr descr 
)
static

Definition at line 293 of file cdd_book_ref_dialog.cpp.

References ERRORMSG, and CCdd_descr_set_Base::Set().

Referenced by CDDBookRefDialog::OnClick().

◆ MakeBrParameterString()

static wxString MakeBrParameterString ( const CCdd_book_ref bref)
static

◆ MakePortalParameterString()

static wxString MakePortalParameterString ( const CCdd_book_ref bref)
static

◆ SetupBookRefDialog()

wxSizer * SetupBookRefDialog ( wxWindow *  parent,
bool  call_fit = TRUE,
bool  set_sizer = TRUE 
)

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ enum2str

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 88 of file cdd_book_ref_dialog.cpp.

Modified on Thu Feb 22 17:13:06 2024 by modify_doxy.py rev. 669887