A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/seqgraphic__widget_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/seq_graphic/seqgraphic_widget.cpp Source File

80  static bool

initialized =

false

;

83  "Feature: Previous Splice"

,

"Feature: Previous Splice"

,

""

,

""

);

85  "Feature: Next Splice"

,

"Feature: Next Splice"

,

""

,

""

);

87  "&Adjust Ruler To Follow Selection"

,

"&Adjust Ruler To Follow Selection"

,

""

,

""

,

""

,

""

, wxITEM_CHECK );

89  "Set Sequence Start Here"

,

"Set Sequence Start Here"

,

""

,

""

);

91  "Set New Marker At Position..."

,

"Set New Marker At Position..."

,

""

,

""

);

93  "Set New Marker for Selection..."

,

"Set New Marker for Selection..."

,

""

,

""

);

95  "Rename Marker..."

,

"Rename This Marker..."

,

""

,

""

);

97  "Modify Marker Name/Position/Color..."

,

"Modfiy Marker Name/Position/Color..."

,

""

,

""

);

99  "Marker Details..."

,

"Show Marker Details..."

,

""

,

""

);

101  "Zoom To Sequence At Marker"

,

"Zoome To Sequence Around Marker"

,

""

,

""

);

103  "Set Sequence Start At Marker"

,

"Set Sequence Start At Marker"

,

""

,

""

);

105  "Center The View At Marker Position"

,

"Center The View At Marker Position"

,

""

,

""

);

107  "Remove Marker"

,

"Remove Marker"

,

""

,

""

);

109  "Remove All Markers"

,

"Remove All Marker"

,

""

,

""

);

111  "Reset Sequence Start"

,

"Reset Sequence Start"

,

""

,

""

);

113  "Set Marker Here"

,

"Set Marker Here"

,

""

,

""

);

115  "Set Segment Switch Point At Marker"

,

"Set Segment Switch Point At Marker"

,

""

,

""

);

117  "&Interval Rendering Options..."

,

"Interval Rendering Options"

,

""

,

""

);

119  "&Annotation Rendering Options..."

,

"Annotation Rendering Options"

,

""

,

""

);

121  "Config Changed"

,

"Config Changed"

,

""

,

""

);

123  "Vertical View Mode"

,

"Vertical View Mode"

,

""

,

""

);

125  "Flip Strands"

,

"Flip Strands"

,

""

,

""

,

""

,

""

, wxITEM_CHECK);

127  "Strands Flipped"

,

"Strands Flipped"

,

""

,

""

);

130  "&Load Default Tracks "

,

"Reset Tracks"

,

""

,

""

,

131  "Reset Current Tracks to the Original Default Track List"

);

133  "&Collapse All Tracks"

,

"Collapse All Tracks"

,

""

,

""

);

135  "&Expand All Tracks"

,

"Expand All Tracks"

,

""

,

""

);

137  "&Show All Tracks"

,

"Show All Tracks"

,

""

,

""

);

139  "&Hide All Tracks"

,

"Hide All Tracks"

,

""

,

""

);

141  "Collapse All Subtracks"

,

"Collapse All Subtracks"

,

""

,

""

);

143  "Expand All Subtracks"

,

"Expand All Subtracks"

,

""

,

""

);

145  "Move to the Top"

,

"Move the Selected Track to the Top"

,

""

,

""

);

147  "Move to the Bottom"

,

"Move the Selected Track to the Bottom"

,

""

,

""

);

149  "Clone Me"

,

"Clone the Selected Track"

,

""

,

""

);

151  "Remove Me"

,

"Remove the Selected Track"

,

""

,

""

);

153  "Add a New Track"

,

"Add a New Track to the Bottom"

,

""

,

""

);

155  "Rename me"

,

"Rename a Track Using a Different Name"

,

""

,

""

);

157  "Track Settings"

,

"Track Settings"

,

""

,

""

);

159  "Hide Track"

,

"Hide Track"

,

""

,

""

);

161  "Remove Track"

,

"REmove Track from Overlay"

,

""

,

""

);

391

+

". Graphical view OnDataChanged."

;

441

wxWindow*

tmp

=

this

;

442

wxWindow* parent =

NULL

;

464  if

(from < (

long

)1 || to > (

long

)

len

) {

465  string msg

=

"Invalid range: Sequence positions should be from 1 to "

;

471  if

(from > 0) from -= 1;

472  if

(to > (

long

)

len

) to =

len

;

475  if

(from + 1 >= to) {

514

wxEvtHandler* obj =

dynamic_cast<

wxEvtHandler*

>

(evt.GetEventObject());

525

wxEvtHandler* obj =

dynamic_cast<

wxEvtHandler*

>

(evt.GetEventObject());

536

wxEvtHandler* obj =

dynamic_cast<

wxEvtHandler*

>

(evt.GetEventObject());

547

wxEvtHandler* obj =

dynamic_cast<

wxEvtHandler*

>

(evt.GetEventObject());

550  string

tip_id =

f

->GetTipInfo().GetTipID();

559

wxEvtHandler* obj =

dynamic_cast<

wxEvtHandler*

>

(evt.GetEventObject());

569

wxEvtHandler* obj =

dynamic_cast<

wxEvtHandler*

>

(evt.GetEventObject());

579

wxEvtHandler* obj =

dynamic_cast<

wxEvtHandler*

>

(evt.GetEventObject());

624  if

(dlg.ShowModal() == wxID_OK) {

627  config

->SetDirty(

true

);

649

srand(

static_cast<unsigned>

(time(

NULL

)));

650  int r

= rand() % 256;

651  int g

= rand() % 256;

652  int b

= rand() % 256;

657  if

(dlg.ShowModal() == wxID_OK) {

681  if

(iter != sel.

end

())

682

range_pos.

Set

((*iter).GetFrom(), (*iter).GetTo());

686

dlg.

SetDlgTitle

(

"Add New Marker for Selection"

);

688

srand(

static_cast<unsigned>

(time(

NULL

)));

689  int r

= rand() % 256;

690  int g

= rand() % 256;

691  int b

= rand() % 256;

696  if

(dlg.ShowModal() == wxID_OK) {

714  event

.Enable(

true

);

717  event

.Enable(

false

);

735  if

(dlg.ShowModal() == wxID_OK) {

757  TSeqRange

range(marker->GetPos(), marker->GetExtendedPos());

761  if

(dlg.ShowModal() == wxID_OK) {

782

wxWindow*

tmp

=

this

;

783

wxWindow* parent =

NULL

;

801

center.

Init

((marker->GetPos() + marker->GetExtendedPos())/2.0, 1.0);

822  TSeqPos

mark_pos = marker->GetPos();

824  if

(half_r > mark_pos) {

828  if

(half_r > max_r - mark_pos) {

829

half_r = max_r - mark_pos;

839  if

( !marker_id.empty() ) {

864  bool

flag =

config

->IsAjdustRulerToSelection();

865  config

->SetAjdustRulerToSelection( !flag );

867  config

->SetDirty(

true

);

874  bool

flag =

config

->IsAjdustRulerToSelection();

933  event

.Enable(

true

);

943  event

.Enable(

true

);

1040

dlg.SetTitle(

wxT

(

"Duplicate the Track"

));

1042  while

(dlg.ShowModal() == wxID_OK ) {

1045  if

(track_title.empty()) {

1046

dlg.

SetMsg

(

wxT

(

"The given track is title empty. Please input a valid track title!"

));

1059  string msg

=

"Do you really want to permanently remove this track: '"

;

1079  while

(dlg.ShowModal() == wxID_OK ) {

1082  if

(track_title.empty()) {

1083  NcbiMessageBox

(

"The given track title is empty. Please input a valid track title!"

);

1086

vector<string> annots;

1096

p_track->

AddNewTrack

(track_key, annots, track_title,

""

, filter, sub_key);

1112  while

(dlg.ShowModal() == wxID_OK ) {

1115  if

( !track_name.empty() ||

1116  NcbiMessageBox

(

"The given track title is empty. A default track " 1117  "title will be used. Do you want to proceed with the default track title?"

,

1205

wxPoint pos = ScreenToClient(event.GetPosition());

1227  const

wxPoint& pos,

const

wxSize&

size

,

1230

, m_SequenceGotoDlg(

NULL

)

1231

, m_MarkerInfoDlg(

NULL

)

1368  if

(half_r > mark_pos)

1371  if

(half_r > max_r - mark_pos)

1372

half_r = max_r - mark_pos;

1474  if

(coll.

size

()) {

1597  if

(hit_marker.empty()) {

1598  return

cmd_reg.

CreateMenu

(sRulerPopupMenuNotOnMarker);

1601  return

cmd_reg.

CreateMenu

(sRulerPopupMenuOnMarker);

1604

wxMenu* root = cmd_reg.

CreateMenu

(sFeatPanePopupMenu);

1606

unique_ptr<wxMenu> editorMenu(

m_BioseqEditor

->CreateContextMenu(

true

));

1607  if

(editorMenu.get()) {

1608  Merge

(*root, *editorMenu);

1613

wxMenu* track_menu =

new

wxMenu;

1653  if

(

label

.length() > 50) {

1659

root->Append( wxID_SEPARATOR,

wxT

(

"VRBroadcast"

) );

1679  if

(

NcbiMessageBox

(

"Do you really want to remove all markers?"

,

1681  "Remove All Markers"

,

eWrap

)==

eYes

) {

1697

marker_info.

m_Id

= m_iter->first;

1698

marker_info.

m_Label

= m_iter->second->GetLabel();

1699

marker_info.

m_Pos

= m_iter->second->GetPos() + 1;

1703

m_iter->second->GetPos());

1705  if

( !coords.

Get

().empty() ) {

1709  info

.m_Acc = (*iter)->GetTitle();

1710  if

((*iter)->CanGetPos_mapped()) {

1713  info

.m_Hgvs = (*iter)->GetHgvs_position();

1714  if

(

info

.m_Hgvs.find(

"c"

) == 0) {

1715  info

.m_LocRef =

"CDS start"

;

1717  info

.m_LocRef =

"Seq start"

;

1719  info

.m_Seq = (*iter)->GetSequence();

1720

vec.push_back(

info

);

1722

info_vec.push_back(marker_info);

1772  string

assembly =

m_SeqGraphicPane

->GetFeaturePanel()->GetDS()->GetAssembly();

1773  if

(!assembly.empty())

1784

vector<IEditorFactory*> factories;

1787  ITERATE

(vector<IEditorFactory*>, it, factories) {

1808  if

(sel_objs.empty())

1810  for

(

auto

&item : sel_objs)

1814

objs.emplace_back(*ofeat, bsh.GetSeq_entry_Handle());

CEvent - generic event implementation TODO TODO - Attachments.

void SetAssembly(const string &assembly)

static const CTrackTypeInfo & GetTypeInfo()

CHGVS_Coordinate_Set –.

CLayoutTrack * GetParentTrack()

virtual string GetFullTitle() const

get a more meaningful title.

CRef< CHGVS_Coordinate_Set > GetCoordinates(const CSeq_id &id, TSeqPos pos, TSeqPos window=kSearchWindow)

position_type GetTo() const

TRangeVector::const_iterator const_iterator

const_iterator end() const

TThisType & CombineWith(const TRange &r)

bool Contains(const TRange &r) const

position_type GetFrom() const

TThisType & Subtract(const TRange &r)

const_iterator find(position_type pos) const

class CRgbaColor provides a simple abstraction for managing colors.

TSeqPos GetSequenceLength() const

objects::CBioseq_Handle GetBioseqHandle(void) const

Get the underlying bioseq handle.

list< CRef< CSeqGlyph > > TObjects

void SaveSettings(bool clear_themes=false)

const string & GetMarkerId() const

namespace ncbi::objects::

bool GetRange(long &from, long &to) const

void SetFocusToInputBox()

virtual bool Show(bool show=true)

list< CRef< CTempTrackProxy > > TTrackProxies

const string & GetKey() const

const TFactoryMap & GetTrackFactories() const

CTrackConfigManager inline methods.

static const CTrackTypeInfo & GetTypeInfo()

CTrackContainer - a track container in the form of layout track.

void ExpandAll(bool expand)

expand or collapse this track and its subtracks recursively.

virtual void RenameChildTrack(int order, const string &new_name)

Rename a child track.

const TTrackProxies & GetSubtrackProxies() const

CTrackContainer inline methods.

CTrackProxy * AddNewTrack(const string &track_key, const CTrackProxy::TAnnots &annots, const string &disp_name, const string &name="", const string &filter="", const string &sub_key="")

Add a new empty track proxy.

CTrackConfigManager * GetConfigMgr()

virtual void MoveTrackToTop(int order)

move a track up by 1.

virtual void RemoveTrack(int order, bool immediately=true)

completely remove a track from the hierachical tree.

virtual void MoveTrackToBottom(int order)

move a track down by 1.

virtual void CloneTrack(int order, const string &track_tile)

Duplicate an existing track.

CTrackProxy data structure contains information about the position of a track in its parent scope,...

const string & GetId() const

CUICommandRegistry is a centralized registry where all application commands should be registered.

static CUICommandRegistry & GetInstance()

the main instance associated with the application

wxMenu * CreateMenu(const SwxMenuItemRec *items)

create a menu from a static definition (see WX_*_MENU macros)

int RegisterCommand(CUICommand *cmd)

assumes ownership of the given object returns a command id (useful when registry is used for auto id ...

wxMenuItem * AppendMenuItem(wxMenu &menu, TCmdID cmd_id) const

void SetViewport(const TVPRect &vp)

void SetSeqRange(TSeqPos from, TSeqPos to)

void SetConfig(CRef< CSeqGraphicConfig > cfg)

vector< SMarkerInfo > SMarkerInfoVec

virtual bool Show(bool show=true)

void UpdateMarker(const SMarkerInfoVec &info_vec)

string GetMarkerName() const

void SetMarkerName(const string &name)

TSeqPos GetMarkerPos() const

void SetMarkerRange(TSeqRange range)

void SetDlgTitle(const string &title)

const CRgbaColor GetMarkerColor() const

void SetMarkerPos(TSeqPos pos)

void SetMarkerColor(const CRgbaColor &color)

TSeqRange GetMarkerRange() const

void SetMarkerName(const string &name)

string GetMarkerName() const

void SetTrackName(const wxString &name)

wxString GetTrackName() const

void SetMsg(const wxString &msg)

wxString GetAnnots() const

wxString GetSubtype() const

void InitTrackTypes(const CTrackConfigManager::TFactoryMap &factories)

wxString GetTrackFilter() const

wxString GetTrackType() const

wxString GetTrackName() const

Undo/Redo interface for editing operations.

void WidgetsData_RegisterCommands(CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)

Register standard commands defined in this file and wxWidgets headers.

unsigned int TSeqPos

Type for sequence locations and lengths.

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

void Info(CExceptionArgs_Base &args)

void SetModelLimitsRect(const TModelRect &R)

void SetViewport(const TVPRect &R)

TVPRect & GetViewport(void)

void SetScale(TModelUnit scale_x, TModelUnit scale_y, TModelPoint p_center)

void SetScaleRefPoint(TModelUnit scale_x, TModelUnit scale_y, TModelPoint p_ref)

void ZoomRect(const TModelRect &r)

TModelRect & GetModelLimitsRect(void)

void SetAdjustmentPolicy(int adjust_x, int adjust_y)

TModelUnit GetMinScaleY(void) const

void EnableZoom(bool en_x, bool en_y)

void SetVert(T bottom, T top)

void SetVisibleRect(const TModelRect &R)

TModelRect & GetVisibleRect(void)

void SetMinScaleX(TModelUnit scale)

TModelUnit GetMinScaleX(void) const

TModelUnit GetScaleY(void) const

void SetHorz(T left, T right)

CGlPoint< TModelUnit > TModelPoint

void SetOriginType(EOriginType type_x, EOriginType type_y)

void GetExtensionAsInterface(const string &ext_point_id, vector< CIRef< I > > &interfaces)

GetExtensionAsInterface() is a helper function that extracts all extensions implementing the specifie...

vector< CConstRef< CObject > > TConstObjects

EDialogReturnValue NcbiMessageBox(const string &message, TDialogType type=eDialog_Ok, EDialogIcon icon=eIcon_Exclamation, const string &title="Error", EDialogTextMode text_mode=eRaw)

virtual bool Send(CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)

Sends an event synchronously.

@ eCmdMoveTip

Left mouse (or equiv) up inside tip area.

@ eCmdZoomTip

search (scroll) window to tip element

@ eCmdTipRemoved

Event fired when a new tip added.

@ eCmdSearchTip

tool tip pinned or unpinned

@ eCmdTipActive

User is interactively moving a tool tip.

@ eCmdTipAdded

Copy currently selected tip text to clipboard.

@ eCmdInfoTip

zoom into tip element

@ eCmdTipInactive

Mouse entered a tip (highlight matching glyph)

@ eCmdSeqGoto

goto sequence position

@ eCmdZoomSeq

Zoom to Selection.

@ eCmdBack

Navigation commands.

@ eDispatch_Default

dispatch until handled at least by one handler

const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)

If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

void Reset(void)

Reset reference object.

position_type GetLength(void) const

bool NotEmpty(void) const

position_type GetToOpen(void) const

TThisType & Set(position_type from, position_type to)

CRange< TSeqPos > TSeqRange

typedefs for sequence ranges

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)

Split a string using specified delimiters.

static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)

Truncate whitespace in a string (in-place)

static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)

Convert numeric value to string.

unsigned short GetPort() const

Get the listening port number back.

unsigned short m_Port

TCP port to listen on.

void Stop(void)

Suspend the timer.

string AsSmartString(CTimeSpan::ESmartStringPrecision precision, ERound rounding, CTimeSpan::ESmartStringZeroMode zero_mode=CTimeSpan::eSSZ_SkipZero) const

Transform elapsed time to "smart" string.

void Start(void)

Start the timer.

static const char label[]

void SetFrom(TFrom value)

Assign a value to From data member.

TTo GetTo(void) const

Get the To member data.

TFrom GetFrom(void) const

Get the From member data.

void SetTo(TTo value)

Assign a value to To data member.

const Tdata & Get(void) const

Get the member data.

Tdata & Set(void)

Assign a value to data member.

list< CRef< CHGVS_Coordinate > > Tdata

vector< CEditObject > TEditObjectList

#define EXT_POINT__EDITOR_FACTORY

The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format

static void text(MDB_val *v)

const struct ncbi::grid::netcache::search::fields::SIZE size

double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)

static bool GetSeqId(const T &d, set< string > &labels, const string name="", bool detect=false, bool found=false)

#define EVT_SEQ_GOTO_CLOSE(id, fn)

#define EVT_SEQ_GOTO(id, fn)

ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN

static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

SMarkerCoordVec m_CoordVec

int g(Seg_Gsm *spe, Seq_Mtf *psm, Thd_Gsm *tdg)

#define WX_DEFINE_MENU(name)

New macros for defining menus for use with CUICommandRegistry.

#define WX_SUBMENU(label)

#define WX_MENU_SEPARATOR_L(label)

#define WX_MENU_ITEM(cmd)

#define WX_MENU_CHECK_ITEM(cmd)

#define WX_MENU_SEPARATOR()

#define EVT_MARKER_INFO_CLOSE(id, fn)

#define EVT_REMOVE_ALL_MARKERS(id, fn)

#define EVT_REMOVE_MARKER(id, fn)

vector< SMarkerCoord > SMarkerCoordVec

void Merge(wxMenu &menu_1, const wxMenu &menu_2)

merges all items form menu_2 into menu_1, preserving the structure if possible

wxString ToWxString(const string &s)

string ToStdString(const wxString &s)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4