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/seqid__fix__dlg_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence_edit/seqid_fix_dlg.cpp Source File

35 #include <wx/button.h> 36 #include <wx/msgdlg.h> 37 #include <wx/stattext.h> 78

: m_EntryToAdd(entry_to_add), m_CurrEntry(curr_entry), m_OldIds(

NULL

)

81  Create

(parent,

id

, caption, pos,

size

, style);

89 bool CSeqIdFixDlg::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

92 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

93

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

98

GetSizer()->SetSizeHints(

this

);

140

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

141

itemDialog1->SetSizer(itemBoxSizer2);

143

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

144

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

146

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

147

itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

149

wxButton* itemButton5 =

new

wxButton( itemDialog1,

ID_RECHECK_SEQID_PROBLEMS_BTN

,

_

(

"Recheck Problems"

), wxDefaultPosition, wxDefaultSize, 0 );

150

itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

152

wxBoxSizer* itemBoxSizer6 =

new

wxBoxSizer(wxHORIZONTAL);

153

itemBoxSizer2->Add(itemBoxSizer6, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

155

wxButton* itemButton7 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0 );

156

itemBoxSizer6->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

158

wxButton* itemButton8 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

159

itemBoxSizer6->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

169

wxStaticText* old_banner =

new

wxStaticText(

this

, wxID_STATIC,

_

(

"Existing Sequence IDs"

), wxDefaultPosition, wxDefaultSize, 0 );

170

itemBoxSizer3->Add(old_banner, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

173

itemBoxSizer3->Add(

m_OldGrid

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

182

new_table->SetColumns().push_back(problems);

186

new_ids->SetHeader().SetTitle(

kNewId

);

187

new_ids->SetData().SetString();

188

objects::CSeq_table::TColumns::iterator it = new_table->SetColumns().begin();

190

new_table->SetColumns().insert(it, new_ids);

194  for

(

size_t i

= 0;

i

< orig_ids->GetData().

GetId

().

size

();

i

++) {

196  if

(!problems || !problems->IsSetData()

197

|| !problems->GetData().IsString()

198

||

i

>= problems->GetData().GetSize()

202

new_ids->SetData().SetString().push_back(id_str);

205

wxStaticText* new_banner =

new

wxStaticText(

this

, wxID_STATIC,

_

(

"New Sequence IDs"

), wxDefaultPosition, wxDefaultSize, 0 );

206

itemBoxSizer3->Add(new_banner, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

209

itemBoxSizer3->Add(

m_NewGrid

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

263

prev_problems->SetData().SetString().clear();

264  if

(new_problems && new_problems->IsSetData() && new_problems->GetData().IsString() && new_problems->GetData().GetSize() > 0) {

265

prev_problems->SetData().SetString().assign(new_problems->GetData().GetString().begin(), new_problems->GetData().GetString().end());

267  for

(

int i

= 0;

i

< values_table->GetNum_rows();

i

++) {

268

prev_problems->SetData().SetString().push_back(

""

);

static bool ShowToolTips()

Should we show tooltips?

void CreateControls()

Creates the controls and sizers.

void OnRecheckSeqidProblemsBtnClick(wxCommandEvent &event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_RECHECK_SEQID_PROBLEMS_BTN

CRef< objects::CSeq_table > GetReplacementTable()

CSeqIdFixDlg()

Constructors.

CRef< objects::CSeq_entry > m_EntryToAdd

void Init()

Initialises member variables.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

CConstRef< objects::CSeq_entry > m_CurrEntry

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

~CSeqIdFixDlg()

Destructor.

bool Create(wxWindow *parent, wxWindowID id=10104, const wxString &caption=_("Sequence ID Problems"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

CSeqTableGridPanel * m_OldGrid

CSeqTableGridPanel * m_NewGrid

CRef< objects::CSeq_table > m_OldIds

void MakeColumnReadOnly(int pos, bool val=true)

void SetValuesTable(CRef< objects::CSeq_table > table)

void MakeAllColumnsReadOnly()

CRef< objects::CSeq_table > GetValuesTable()

const char * kSequenceIdColLabel

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,...

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)

Check if a string is blank (has no text).

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

#define ID_RECHECK_SEQID_PROBLEMS_BTN

CRef< CSeqTable_column > FindSeqTableColumnByName(CRef< objects::CSeq_table > values_table, string column_name)

CRef< objects::CSeq_table > GetIdsFromSeqEntry(const objects::CSeq_entry &entry)

string SummarizeIdProblems(CRef< objects::CSeqTable_column > problems)

CRef< objects::CSeqTable_column > GetSeqIdProblems(CRef< objects::CSeq_table > new_ids, CRef< objects::CSeq_table > old_ids, size_t max_len)

wxString ToWxString(const string &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