CAlgoToolManagerParamsPanel::Create( parent,
id, pos,
size, style );
113GetSizer()->SetSizeHints(
this);
153wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
154itemCAlgoToolManagerParamsPanel1->SetSizer(itemBoxSizer2);
156wxGrid* itemGrid3 =
newwxGrid( itemCAlgoToolManagerParamsPanel1,
ID_GRID, wxDefaultPosition, wxSize(200, 150), wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL );
157itemGrid3->SetDefaultColSize(50);
158itemGrid3->SetDefaultRowSize(25);
159itemGrid3->SetColLabelSize(25);
160itemGrid3->SetRowLabelSize(50);
161itemGrid3->CreateGrid(5, 5, wxGrid::wxGridSelectCells);
162itemBoxSizer2->Add(itemGrid3, 0, wxGROW|wxALL, 5);
164wxStaticBox* itemStaticBoxSizer4Static =
newwxStaticBox(itemCAlgoToolManagerParamsPanel1,
wxID_ANY,
_(
"Sequences to Edit"));
165wxStaticBoxSizer* itemStaticBoxSizer4 =
newwxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
166itemBoxSizer2->Add(itemStaticBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
169itemStaticBoxSizer4->Add(
m_ObjectList, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
193 m_Grid->SetTable(gridAdapter,
true);
201 returnwxPanel::TransferDataToWindow();
211 if(!wxPanel::TransferDataFromWindow())
215 if(
GetData().m_Objects.empty()) {
216wxMessageBox(
wxT(
"Please select objects to add to the submission."),
wxT(
"Error"),
217wxOK | wxICON_ERROR,
this);
264objects::CSeq_entry_Handle seh;
271 const CObject* ptr = it->object.GetPointer();
272 constobjects::CSeq_entry* seqEntry =
dynamic_cast<constobjects::CSeq_entry*
>(ptr);
274seh = it->scope->GetSeq_entryHandle (*seqEntry);
276 constobjects::CSeq_submit* seqsubmit =
dynamic_cast<constobjects::CSeq_submit*
>(ptr);
278 if(seqsubmit->IsEntrys()) {
279seh = it->scope->GetSeq_entryHandle(*(seqsubmit->GetData().GetEntrys().front()));
282 constobjects::CSeq_id* seqid =
dynamic_cast<constobjects::CSeq_id*
>(ptr);
284objects::CBioseq_Handle bsh = it->scope->GetBioseqHandle(*seqid);
286seh = bsh.GetParentEntry();
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
static string MakeKey(const string §ion, const string &key, const string &delim=CGuiRegistry::kDecimalDot)
create a key from a section and a subkey
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
class CRegistryReadView provides a nested hierarchical view at a particular key.
CRef< objects::CSeq_table > GetValuesTable(void)
bool Create(wxWindow *parent, wxWindowID id=10011, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
static bool ShowToolTips()
Should we show tooltips?
CSrcEditParams & GetData()
Data access.
TConstScopedObjects * m_InputObjects
objects::CSeq_entry_Handle GetSeqEntryHandle()
virtual void LoadSettings()
void Init()
Initialises member variables.
virtual void SaveSettings() const
override in derived classes
~CSrcEditPanel()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void RestoreDefaults()
override in derived classes
CObjectListWidget * m_ObjectList
void CreateControls()
Creates the controls and sizers.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
CSrcEditPanel()
Constructors.
virtual bool TransferDataToWindow()
Transfer data to the window.
virtual bool TransferDataFromWindow()
Transfer data from the window.
void LoadTableSettings(const CRegistryReadView &view, bool byName=false)
void SaveTableSettings(CRegistryWriteView &view, bool saveSorting=true) const
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
void Init()
Initialises member variables.
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
static const char * kTableTag
CRef< CCmdComposite > ApplySrcTableToSeqEntry(CRef< objects::CSeq_table >values_table, objects::CSeq_entry_Handle seh)
CRef< objects::CSeq_table > GetSeqTableFromSeqEntry(objects::CSeq_entry_Handle seh)
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