: m_TopSeqEntry(seh), m_WizardType(wizard_type)
81 Create(parent,
id, caption, pos,
size, style);
92SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
98GetSizer()->SetSizeHints(
this);
139wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
140itemCBulkCmdDlg1->SetSizer(itemBoxSizer2);
142wxGrid* itemGrid3 =
newwxGrid( itemCBulkCmdDlg1,
ID_GRID, wxDefaultPosition, wxSize(600, 300), wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL );
143itemGrid3->SetDefaultColSize(50);
144itemGrid3->SetDefaultRowSize(25);
145itemGrid3->SetColLabelSize(25);
146itemGrid3->SetRowLabelSize(100);
147itemGrid3->CreateGrid(5, 5, wxGrid::wxGridSelectCells);
148itemBoxSizer2->Add(itemGrid3, 0, wxGROW|wxALL, 5);
150wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
151itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
153wxButton* itemButton5 =
newwxButton( itemCBulkCmdDlg1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
154itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
156wxButton* itemButton6 =
newwxButton( itemCBulkCmdDlg1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
157itemBoxSizer4->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
167 m_Grid->SetTable(gridAdapter,
true);
172wxArrayString moltype_choices;
173 for(
size_t i= 0;
i< mol_strings.size();
i++) {
174moltype_choices.push_back(
ToWxString(mol_strings[
i]));
177wxArrayString topology_choices;
178topology_choices.push_back(
wxT(
"linear"));
179topology_choices.push_back(
wxT(
"circular"));
181 for(
int row= 0;
row< seqTable->GetNum_rows();
row++) {
182 m_Grid->SetCellEditor(
row, 0,
newwxGridCellChoiceEditor (moltype_choices,
false));
183 m_Grid->SetCellEditor(
row, 1,
newwxGridCellChoiceEditor (topology_choices,
false));
186 m_Grid->AutoSizeColumns();
242 return "Unknown error";
USING_SCOPE(ncbi::objects)
bool Create(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
virtual string GetErrorMessage()
CBulkMolinfoEditDlg()
Constructors.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
static bool ShowToolTips()
Should we show tooltips?
bool Create(wxWindow *parent, wxWindowID id=10077, const wxString &caption=_("Molecule Information"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void Init()
Initialises member variables.
void CreateControls()
Creates the controls and sizers.
~CBulkMolinfoEditDlg()
Destructor.
objects::CSeq_entry_Handle m_TopSeqEntry
CSourceRequirements::EWizardType m_WizardType
virtual CRef< CCmdComposite > GetCommand()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CRef< objects::CSeq_table > GetValuesTable(void)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
vector< string > GetMoleculeTypeOptions(CSourceRequirements::EWizardType wizard_type)
CRef< objects::CSeq_table > BuildMolInfoValuesTableFromSeqEntry(objects::CSeq_entry_Handle seh, CSourceRequirements::EWizardType wizard_type)
CRef< CCmdComposite > ApplyMolInfoValuesTableToSeqEntry(CRef< objects::CSeq_table >values_table, objects::CSeq_entry_Handle seh, bool add_confirmed=true)
const struct ncbi::grid::netcache::search::fields::SIZE size
#define row(bind, expected)
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