NCBI C++ ToolKit
Classes | Macros | Functions | Variables
editingbtnspanel.cpp File Reference
#include <ncbi_pch.hpp>
#include <gui/objutils/cmd_factory.hpp>
#include <gui/objutils/cmd_del_bioseq.hpp>
#include <gui/objutils/cmd_del_bioseq_set.hpp>
#include <gui/objutils/util_cmds.hpp>
#include <gui/objutils/project_item_extra.hpp>
#include <objtools/edit/mail_report.hpp>
#include <gui/core/app_dialogs.hpp>
#include <gui/framework/view_manager_service.hpp>
#include <objmgr/bioseq_ci.hpp>
#include <objmgr/bioseq_handle.hpp>
#include <util/checksum.hpp>
#include <connect/ncbi_util.h>
#include <gui/objects/GBWorkspace.hpp>
#include <gui/objects/WorkspaceFolder.hpp>
#include <wx/icon.h>
#include <wx/msgdlg.h>
#include <wx/stattext.h>
#include <wx/settings.h>
#include <wx/event.h>
#include <wx/clipbrd.h>
#include <wx/display.h>
#include <wx/hashmap.h>
#include <wx/image.h>
#include <wx/colordlg.h>
#include <wx/stdpaths.h>
#include <gui/widgets/wx/wx_utils.hpp>
#include <gui/widgets/text_widget/text_item_panel.hpp>
#include "open_data_source_object_dlg.hpp"
#include <gui/widgets/macro_edit/var_resolver_dlg.hpp>
#include <gui/widgets/wx/sys_path.hpp>
#include <gui/widgets/wx/message_box.hpp>
#include <gui/framework/workbench_impl.hpp>
#include <gui/objutils/utils.hpp>
#include <gui/objutils/macro_engine.hpp>
#include <gui/objutils/macro_fn_entry.hpp>
#include <gui/utils/extension_impl.hpp>
#include <objtools/cleanup/cleanup.hpp>
#include <gui/widgets/wx/file_extensions.hpp>
#include <gui/packages/pkg_sequence_edit/editingbtnspanel.hpp>
#include <gui/packages/pkg_sequence_edit/remove_desc_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/remove_sequences_from_alignments.hpp>
#include <gui/packages/pkg_sequence_edit/remove_features_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/remove_structured_comment.hpp>
#include <gui/packages/pkg_sequence_edit/remove_annot.hpp>
#include <gui/packages/pkg_sequence_edit/remove_genomeprojectdb.hpp>
#include <gui/packages/pkg_sequence_edit/add_citsubupdate.hpp>
#include <gui/packages/pkg_sequence_edit/pubdesc_editor.hpp>
#include <gui/packages/pkg_sequence_edit/modify_structured_comment.hpp>
#include <gui/packages/pkg_sequence_edit/remove_bankit_comment.hpp>
#include <gui/packages/pkg_sequence_edit/remove_structuredcomment_keyword.hpp>
#include <gui/packages/pkg_sequence_edit/reorder_sequences_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/convert_comment.hpp>
#include <gui/packages/pkg_sequence_edit/modify_feature_id.hpp>
#include <gui/packages/pkg_sequence_edit/pcr-primers-edit.hpp>
#include <gui/packages/pkg_sequence_edit/fix_orgmod_institution.hpp>
#include <gui/packages/pkg_sequence_edit/parse_collectiondate_formats.hpp>
#include <gui/packages/pkg_sequence_edit/country_fixup.hpp>
#include <gui/packages/pkg_sequence_edit/featedit_util.hpp>
#include <gui/packages/pkg_sequence_edit/add_deflinedlg.hpp>
#include <gui/packages/pkg_sequence_edit/vectortrimdlg.hpp>
#include <gui/packages/pkg_sequence_edit/bulk_feature_add_dlg_std.hpp>
#include <gui/widgets/loaders/open_objects_dlg.hpp>
#include <gui/widgets/loaders/file_load_wizard.hpp>
#include <gui/utils/object_loader.hpp>
#include <gui/utils/execute_unit.hpp>
#include <gui/utils/app_popup.hpp>
#include <gui/widgets/wx/async_call.hpp>
#include <gui/packages/pkg_sequence_edit/seqid_fix_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/bulk_edit_feat_dlg_std.hpp>
#include <gui/packages/pkg_sequence_edit/convert_feat_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/molinfo_edit_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/srceditdialog.hpp>
#include <gui/packages/pkg_sequence_edit/miscedit_util.hpp>
#include <gui/packages/pkg_sequence_edit/autodef_params.hpp>
#include <gui/packages/pkg_sequence_edit/autodef_functions.hpp>
#include <gui/packages/pkg_sequence_edit/autodef_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/strain_serotype_influenza.hpp>
#include <gui/widgets/edit/edit_obj_view_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/remove_unverified.hpp>
#include <gui/packages/pkg_sequence_edit/prefix_deflinedlg.hpp>
#include <gui/core/selection_service_impl.hpp>
#include <gui/core/table_view.hpp>
#include <gui/widgets/edit/init.hpp>
#include <gui/widgets/edit/edit_object.hpp>
#include <gui/widgets/edit/edit_object_seq_feat.hpp>
#include <gui/packages/pkg_sequence_edit/edit_pub_dlg_std.hpp>
#include <gui/packages/pkg_sequence_edit/qual_table_load_manager.hpp>
#include <gui/packages/pkg_sequence_edit/trim_n.hpp>
#include <gui/widgets/edit/edit_object_seq_desc.hpp>
#include <gui/packages/pkg_sequence_edit/mrna_cds.hpp>
#include <gui/packages/pkg_sequence_edit/rem_prot_titles.hpp>
#include <gui/packages/pkg_sequence_edit/correct_rna_strand_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/bulk_cds_edit.hpp>
#include <gui/packages/pkg_sequence_edit/add_transl_except_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/bulk_gene_edit.hpp>
#include <gui/packages/pkg_sequence_edit/bulk_rna_edit.hpp>
#include <gui/packages/pkg_sequence_edit/bulk_miscfeat_edit.hpp>
#include <gui/packages/pkg_sequence_edit/label_rna.hpp>
#include <gui/packages/pkg_sequence_edit/retranslate_cds.hpp>
#include <gui/widgets/edit/generic_report_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/segregate_sets.hpp>
#include <gui/packages/pkg_sequence_edit/macro_worker.hpp>
#include <gui/objutils/cmd_insert_bioseq_set.hpp>
#include <gui/packages/pkg_sequence_edit/choose_set_class_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/suc_refresh_cntrl.hpp>
#include <gui/packages/pkg_sequence_edit/select_target_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/uncul_tax_tool.hpp>
#include <gui/packages/pkg_sequence_edit/remove_srcnotes.hpp>
#include <gui/packages/pkg_sequence_edit/extend_partial_features.hpp>
#include <gui/packages/pkg_sequence_edit/convert_cds_to_misc_feat.hpp>
#include <gui/widgets/seq/text_panel.hpp>
#include <gui/objutils/table_data_base.hpp>
#include <gui/packages/pkg_sequence_edit/lowercase_qualifiers.hpp>
#include <gui/packages/pkg_sequence_edit/correct_genes_dialog.hpp>
#include <objtools/edit/struc_comm_field.hpp>
#include "edit_table_views.hpp"
#include <gui/packages/pkg_sequence_edit/add_sequences.hpp>
#include <gui/objutils/cmd_change_seq_feat.hpp>
#include <gui/packages/pkg_sequence_edit/export_table.hpp>
#include <gui/packages/pkg_sequence_edit/sequester_sets.hpp>
#include <gui/widgets/edit/edit_object_submit_block.hpp>
#include <gui/packages/pkg_sequence_edit/wrong_illegal_quals.hpp>
#include <gui/packages/pkg_sequence_edit/group_explode.hpp>
#include <gui/packages/pkg_sequence_edit/remove_text_inside_string_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/find_asn1_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/update_seq_worker.hpp>
#include <gui/core/simple_project_view.hpp>
#include <gui/packages/pkg_sequence_edit/discrepancy_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/featuretbl_frame.hpp>
#include <gui/packages/pkg_sequence_edit/import_feat_table.hpp>
#include <gui/packages/pkg_sequence_edit/sequin_desktop_view.hpp>
#include <gui/widgets/edit/bioseq_editor.hpp>
#include <gui/packages/pkg_sequence_edit/csuc_frame.hpp>
#include <gui/widgets/seq_desktop/desktop_event.hpp>
#include <gui/packages/pkg_sequence_edit/validate_frame.hpp>
#include <gui/packages/pkg_sequence_edit/link_mrna_cds.hpp>
#include <gui/packages/pkg_sequence_edit/barcode_tool.hpp>
#include <gui/widgets/edit/edit_sequence.hpp>
#include <gui/packages/pkg_sequence_edit/editing_actions.hpp>
#include <gui/packages/pkg_sequence_edit/editing_action_constraint.hpp>
#include <gui/packages/pkg_sequence_edit/aecr_frame.hpp>
#include "attrib_table_column_id_panel.hpp"
#include <gui/packages/pkg_sequence_edit/parse_text_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/append_mod_to_org.hpp>
#include <gui/packages/pkg_sequence_edit/append_mod_to_org_dlg.hpp>
#include <gui/packages/pkg_sequence_edit/add_macro_button_dlg.hpp>
#include <gui/widgets/edit/macrofloweditor.hpp>
#include "gui_core_helper_impl.hpp"

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CMovableButton
 
class  CFeatureSubtypeSelector
 
class  CFeatureMovableButton
 
class  CFeatureMovableButtonNa
 
class  CFeatureMovableButtonAa
 

Macros

#define BUTTON_WIDTH   119
 
#define BUTTON_HEIGHT   23
 
#define DIST_BETWEEN_BUTTONS   5
 

Functions

static bool comp_buttons (const IMovableButton *a, const IMovableButton *b)
 
static bool CompLoc (CRef< CSeq_loc > first, CRef< CSeq_loc > second)
 
static bool EqualLoc (CRef< CSeq_loc > first, CRef< CSeq_loc > second)
 
static string s_GetMacroScriptLocation (const string &filename)
 
static Uint4 s_GetCheckSumForFile (const string &filename)
 
static string s_GetUsername ()
 
static void s_UpdateMacros ()
 

Variables

static const char * kSettingsVersion = "VERSION"
 
static const char * kCoordsArray = "Button Coordinates"
 
static const char * kFrameWidth = "Frame Width"
 
static const char * kFrameHeight = "Frame Height"
 
static const char * kFramePosX = "Frame Position X"
 
static const char * kFramePosY = "Frame Position Y"
 
static const char * kAutoStart = "Auto Start"
 
static const char * kEditingButtonsPanelLayout = "EditingButtonsLayout"
 
static const char * kBGColor = "BG Color"
 
static const char * kBGColorSet = "BG Color Set"
 
static const char * kDynIdsArray = "Dynamic Button Ids"
 
static const char * kFilenamesArray = "Dynamic Button Filenames"
 
static const char * kNamesArray = "Dynamic Button Names"
 
static const char * kTitlesArray = "Dynamic Button Report Titles"
 
static const char * kFrameDlgWidth = "Frame Width"
 
static const char * kFrameDlgHeight = "Frame Height"
 
static const char * kFrameDlgPosX = "Frame Position X"
 
static const char * kFrameDlgPosY = "Frame Position Y"
 

Macro Definition Documentation

◆ BUTTON_HEIGHT

#define BUTTON_HEIGHT   23

Definition at line 202 of file editingbtnspanel.cpp.

◆ BUTTON_WIDTH

#define BUTTON_WIDTH   119

Definition at line 201 of file editingbtnspanel.cpp.

◆ DIST_BETWEEN_BUTTONS

#define DIST_BETWEEN_BUTTONS   5

Definition at line 208 of file editingbtnspanel.cpp.

Function Documentation

◆ comp_buttons()

static bool comp_buttons ( const IMovableButton a,
const IMovableButton b 
)
static

◆ CompLoc()

static bool CompLoc ( CRef< CSeq_loc first,
CRef< CSeq_loc second 
)
static

Definition at line 3711 of file editingbtnspanel.cpp.

References first().

Referenced by CEditingBtnsPanel::AutodefOptions().

◆ EqualLoc()

static bool EqualLoc ( CRef< CSeq_loc first,
CRef< CSeq_loc second 
)
static

Definition at line 3717 of file editingbtnspanel.cpp.

References first().

Referenced by CEditingBtnsPanel::AutodefOptions().

◆ s_GetCheckSumForFile()

static Uint4 s_GetCheckSumForFile ( const string filename)
static

Definition at line 4112 of file editingbtnspanel.cpp.

References CChecksum::AddFile(), CChecksum::eCRC32, and CChecksum::GetChecksum().

Referenced by s_UpdateMacros().

◆ s_GetMacroScriptLocation()

static string s_GetMacroScriptLocation ( const string filename)
static

◆ s_GetUsername()

static string s_GetUsername ( )
static

Definition at line 4119 of file editingbtnspanel.cpp.

References CORE_GetUsername(), and string.

Referenced by s_UpdateMacros().

◆ s_UpdateMacros()

static void s_UpdateMacros ( )
static

Variable Documentation

◆ kAutoStart

const char* kAutoStart = "Auto Start"
static

◆ kBGColor

const char* kBGColor = "BG Color"
static

◆ kBGColorSet

const char* kBGColorSet = "BG Color Set"
static

◆ kCoordsArray

const char* kCoordsArray = "Button Coordinates"
static

◆ kDynIdsArray

const char* kDynIdsArray = "Dynamic Button Ids"
static

◆ kEditingButtonsPanelLayout

const char* kEditingButtonsPanelLayout = "EditingButtonsLayout"
static

Definition at line 1748 of file editingbtnspanel.cpp.

Referenced by CEditingBtnsPanel::SetRegistryPath().

◆ kFilenamesArray

const char* kFilenamesArray = "Dynamic Button Filenames"
static

◆ kFrameDlgHeight

const char* kFrameDlgHeight = "Frame Height"
static

◆ kFrameDlgPosX

const char* kFrameDlgPosX = "Frame Position X"
static

◆ kFrameDlgPosY

const char* kFrameDlgPosY = "Frame Position Y"
static

◆ kFrameDlgWidth

const char* kFrameDlgWidth = "Frame Width"
static

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON10

Definition at line 2554 of file editingbtnspanel.cpp.

Referenced by CEditingBtnsPanel::LoadSettings(), and CEditingBtnsPanel::SaveSettings().

◆ kFrameHeight

const char* kFrameHeight = "Frame Height"
static

◆ kFramePosX

const char* kFramePosX = "Frame Position X"
static

◆ kFramePosY

const char* kFramePosY = "Frame Position Y"
static

◆ kFrameWidth

const char* kFrameWidth = "Frame Width"
static

◆ kNamesArray

const char* kNamesArray = "Dynamic Button Names"
static

◆ kSettingsVersion

const char* kSettingsVersion = "VERSION"
static

◆ kTitlesArray

const char* kTitlesArray = "Dynamic Button Report Titles"
static
Modified on Mon Mar 04 05:12:05 2024 by modify_doxy.py rev. 669887