CAlgoToolManagerParamsPanel::Create( parent,
id, pos,
size, style );
110GetSizer()->SetSizeHints(
this);
154wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
155itemCAlgoToolManagerParamsPanel1->SetSizer(itemBoxSizer2);
163 m_WMStatic=
newwxStaticText( itemCAlgoToolManagerParamsPanel1, wxID_STATIC,
_(
"Mask using parameters for"), wxDefaultPosition, wxDefaultSize, 0 );
166wxArrayString m_WMTaxIdsStrings;
167 m_WMTaxIds=
newwxChoice( itemCAlgoToolManagerParamsPanel1,
ID_CHOICE7, wxDefaultPosition, wxDefaultSize, m_WMTaxIdsStrings, 0 );
172 m_WMDownload=
newwxButton( itemCAlgoToolManagerParamsPanel1,
ID_BUTTON5,
_(
"Configure..."), wxDefaultPosition, wxDefaultSize, 0 );
175wxBoxSizer* itemBoxSizer9 =
newwxBoxSizer(wxHORIZONTAL);
176itemBoxSizer2->Add(itemBoxSizer9, 0, wxALIGN_LEFT|wxALL, 5);
178wxStaticText* itemStaticText10 =
newwxStaticText( itemCAlgoToolManagerParamsPanel1, wxID_STATIC,
_(
"Objects to Create"), wxDefaultPosition, wxDefaultSize, 0 );
179itemBoxSizer9->Add(itemStaticText10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
181wxArrayString itemComboBox11Strings;
182itemComboBox11Strings.Add(
_(
"Features representing masked regions"));
183itemComboBox11Strings.Add(
_(
"A sequence location representing masked regions"));
184itemComboBox11Strings.Add(
_(
"\"Both features and sequence location"));
185wxComboBox* itemComboBox11 =
newwxComboBox( itemCAlgoToolManagerParamsPanel1,
ID_COMBOBOX2, wxEmptyString, wxDefaultPosition, wxDefaultSize, itemComboBox11Strings, wxCB_READONLY );
186itemBoxSizer9->Add(itemComboBox11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
188wxCheckBox* itemCheckBox12 =
newwxCheckBox( itemCAlgoToolManagerParamsPanel1,
ID_LOCALRUN,
_(
"Run tool as standalone"), wxDefaultPosition, wxDefaultSize, 0 );
189itemCheckBox12->SetValue(
true);
190itemBoxSizer2->Add(itemCheckBox12, 0, wxALIGN_LEFT|wxALL, 5);
193itemComboBox11->SetValidator( wxGenericValidator(&
GetData().m_OutputType) );
194itemCheckBox12->SetValidator( wxGenericValidator(&
GetData().m_Standalone) );
197wxStaticText* loadingText =
newwxStaticText(itemCAlgoToolManagerParamsPanel1,
ID_LOADING_TEXT,
wxT(
"Windomasker tax ID: none. Loading..."), wxDefaultPosition, wxDefaultSize, 0);
198wxFont bold(wxNORMAL_FONT->GetPointSize(), wxNORMAL_FONT->GetFamily(), wxNORMAL_FONT->GetStyle(), wxFONTWEIGHT_BOLD, wxNORMAL_FONT->GetUnderlined(), wxNORMAL_FONT->GetFaceName());
199loadingText->SetFont(bold);
200loadingText->SetForegroundColour(*wxBLACK);
288 returnwxPanel::TransferDataToWindow();
301 if(!
local)
return;
314GetSizer()->Layout();
324 if(!wxPanel::TransferDataFromWindow())
329 if(selection.empty()) {
331 wxT(
"Please, select sequences to mask."),
wxT(
"Error"),
332wxOK | wxICON_ERROR,
this 339 inttaxId = 0, index =
m_WMTaxIds->GetSelection();
340 if(wxNOT_FOUND != index)
345 wxT(
"Please, select organism."),
wxT(
"Error"),
346wxOK | wxICON_ERROR,
thisstatic 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.
bool FillControl(ICallback *callback, wxControlWithItems &ctrl, bool local, int selectTaxId)
static CTaxIdHelper & GetInstance()
static CWinMaskerFileStorage & GetInstance()
access the application-wide singleton
virtual void TaxonsLoaded(bool local)
static bool ShowToolTips()
Should we show tooltips?
CObjectListWidget * m_ObjectList
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
virtual bool TransferDataToWindow()
Transfer data to the window.
CWindowMaskerParams & GetData()
Data access.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void RestoreDefaults()
override in derived classes
void OnWMDownload(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON5
CWindowMaskerPanel()
Constructors.
~CWindowMaskerPanel()
Destructor.
wxStaticText * m_WMStatic
void Init()
Initialises member variables.
TConstScopedObjects * m_InputObjects
virtual bool TransferDataFromWindow()
Transfer data from the window.
void CreateControls()
Creates the controls and sizers.
bool Create(wxWindow *parent, wxWindowID id=ID_CWINDOWMASKERPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
virtual void LoadSettings()
wxBoxSizer * m_WMStaticBoxSizer
virtual void SaveSettings() const
override in derived classes
void Init()
Initialises member variables.
TConstScopedObjects & SetObjects()
void LoadTableSettings(const CRegistryReadView &view, bool byName=false)
void SaveTableSettings(CRegistryWriteView &view, bool saveSorting=true) const
vector< SConstScopedObject > TConstScopedObjects
TTaxId GetTaxId(const CBioseq_Handle &handle)
return the tax-id associated with a given sequence.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int
A callback function used to compare two keys in a database.
const struct ncbi::grid::netcache::search::fields::SIZE size
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
Process information in the NCBI Registry, including working with configuration files.
static const char * kTableTag
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