(parent,
id, caption, pos,
size, style);
109CAlgoToolManagerParamsPanel::Create( parent,
id, pos,
size, style );
114GetSizer()->SetSizeHints(
this);
181 if(all_present && all_unique)
183status =
"All present, all unique";
185 else if(all_present && is_unique)
187status =
"All present, one unique";
189 else if(all_present && ! is_unique)
191status =
"All present, mixed";
193 else if(! all_present && all_unique)
195status =
"Some missing, all unique";
197 else if(! all_present && is_unique)
199status =
"Some missing, one unique";
201 else if(! all_present && ! is_unique)
203status =
"Some missing, mixed";
218wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
219itemDialog1->SetSizer(itemBoxSizer2);
224wxStaticBox* itemStaticBoxSizer4Static =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Organism Description"));
225wxStaticBoxSizer* itemStaticBoxSizer4 =
newwxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
226itemBoxSizer2->Add(itemStaticBoxSizer4, 0, wxGROW|wxALL, 5);
228wxBoxSizer* modifierLimitsSizer =
newwxBoxSizer (wxHORIZONTAL);
229itemStaticBoxSizer4->Add (modifierLimitsSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
231wxStaticText* itemStaticText7 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Modifier List"), wxDefaultPosition, wxDefaultSize, 0 );
232modifierLimitsSizer->Add(itemStaticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
234wxArrayString m_ModifierListChoiceStrings;
235m_ModifierListChoiceStrings.Add(
_(
"Custom"));
236m_ModifierListChoiceStrings.Add(
_(
"All"));
241wxStaticText* itemStaticText10 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Maximum modifiers per line"), wxDefaultPosition, wxDefaultSize, 0 );
242modifierLimitsSizer->Add(itemStaticText10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
244wxArrayString m_MaxModifiersStrings;
246m_MaxModifiersStrings.Add(
_(
"no limit"));
248 intnum_total_mods = 0;
252m_MaxModifiersStrings.Add
258wxDefaultPosition, wxDefaultSize,
259m_MaxModifiersStrings, 0 );
261wxALIGN_CENTER_VERTICAL|wxALL, 5);
266 _(
"Use labels (e.g., 'strain BALB')"),
267wxDefaultPosition, wxDefaultSize, 0 );
270wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
272wxStaticBox* modifierGroupLabelBox =
273 newwxStaticBox( itemDialog1, wxID_STATIC,
_(
"Available Modifiers"),
274wxDefaultPosition, wxDefaultSize, 0 );
275wxStaticBoxSizer* modifierGroup =
276 newwxStaticBoxSizer(modifierGroupLabelBox, wxHORIZONTAL);
277itemStaticBoxSizer4->Add(modifierGroup, 0, wxGROW|wxALL, 5);
279wxBoxSizer* modifierColumn =
newwxBoxSizer (wxVERTICAL);
280modifierGroup->Add(modifierColumn, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
281 intnum_in_column = 0;
284 if(num_in_column == 4) {
285modifierColumn =
newwxBoxSizer (wxVERTICAL);
286modifierGroup->Add(modifierColumn, 0,
287wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
290wxBoxSizer *
row=
newwxBoxSizer (wxHORIZONTAL);
291modifierColumn->Add (
row, 0, wxALIGN_LEFT|wxALL, 5);
295wxDefaultPosition, wxDefaultSize, 0 ));
303 if(first_value.length() > 25) {
304first_value = first_value.substr(0, 22) +
"...";
306 label+=
" '"+ first_value +
"'";
307wxStaticText* textLabel =
308 newwxStaticText( itemDialog1, wxID_STATIC,
310wxDefaultPosition, wxDefaultSize, 0 );
311 row->Add(textLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
320wxArrayString HIVStrings;
321HIVStrings.Add(
_(
"Prefer Clone"));
322HIVStrings.Add(
_(
"Prefer Isolate"));
323HIVStrings.Add(
_(
"Want Both Isolate and Clone"));
325 m_HIVRule=
newwxRadioBox (itemDialog1,
wxID_ANY,
_(
"HIV Rule"), wxDefaultPosition, wxDefaultSize,
326HIVStrings, 1, wxRA_SPECIFY_ROWS);
327itemStaticBoxSizer4->Add (
m_HIVRule, 0, wxALIGN_LEFT|wxALL, 5);
330wxStaticBox* otherOptionsGroupLabelBox =
newwxStaticBox( itemDialog1, wxID_STATIC,
_(
"Other Options"), wxDefaultPosition, wxDefaultSize, 0 );
331wxStaticBoxSizer* otherOptionsGroup =
newwxStaticBoxSizer(otherOptionsGroupLabelBox, wxHORIZONTAL);
332itemStaticBoxSizer4->Add(otherOptionsGroup, 0, wxGROW|wxALL, 5);
334wxBoxSizer* otherOptionsColumn =
newwxBoxSizer (wxVERTICAL);
335otherOptionsGroup->Add(otherOptionsColumn, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
339otherOptionsColumn->Add(
m_LeaveParen, 0, wxALIGN_LEFT|wxALL, 5);
341 m_NoSp=
newwxCheckBox( itemDialog1,
ID_DO_NOT_APPLY_TO_SP,
_(
"Do not apply modifiers to 'sp.' organisms"), wxDefaultPosition, wxDefaultSize, 0 );
342 m_NoSp->SetValue(
true);
343otherOptionsColumn->Add(
m_NoSp, 0, wxALIGN_LEFT|wxALL, 5);
345 m_NoNr=
newwxCheckBox( itemDialog1,
ID_DO_NOT_APPLY_TO_NR,
_(
"Do not apply modifiers to 'nr.' organisms"), wxDefaultPosition, wxDefaultSize, 0 );
346 m_NoNr->SetValue(
true);
347otherOptionsColumn->Add(
m_NoNr, 0, wxALIGN_LEFT|wxALL, 5);
349otherOptionsColumn =
newwxBoxSizer (wxVERTICAL);
350otherOptionsGroup->Add(otherOptionsColumn, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
356 m_NoCf=
newwxCheckBox( itemDialog1,
ID_DO_NOT_APPLY_TO_CF,
_(
"Do not apply modifiers to 'cf.' organisms"), wxDefaultPosition, wxDefaultSize, 0 );
357 m_NoCf->SetValue(
true);
358otherOptionsColumn->Add(
m_NoCf, 0, wxALIGN_LEFT|wxALL, 5);
360 m_NoAff=
newwxCheckBox( itemDialog1,
ID_DO_NOT_APPLY_TO_AFF,
_(
"Do not apply modifiers to 'aff.' organisms"), wxDefaultPosition, wxDefaultSize, 0 );
362otherOptionsColumn->Add(
m_NoAff, 0, wxALIGN_LEFT|wxALL, 5);
364otherOptionsColumn =
newwxBoxSizer (wxVERTICAL);
365otherOptionsGroup->Add(otherOptionsColumn, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
371wxStaticBox* itemStaticBoxSizer17Static =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Feature Clauses"));
372wxStaticBoxSizer* featureBox =
newwxStaticBoxSizer(itemStaticBoxSizer17Static, wxVERTICAL);
373itemBoxSizer2->Add(featureBox, 0, wxGROW|wxALL, 5);
375wxBoxSizer* featureRow1 =
newwxBoxSizer (wxHORIZONTAL);
376featureBox->Add (featureRow1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
378wxBoxSizer* featureListGroup =
newwxBoxSizer (wxVERTICAL);
379featureRow1->Add (featureListGroup, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
381wxBoxSizer* itemBoxSizer18 =
newwxBoxSizer(wxHORIZONTAL);
382featureListGroup->Add(itemBoxSizer18, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
384wxStaticText* itemStaticText19 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Features or Complete"), wxDefaultPosition, wxDefaultSize, 0 );
385itemBoxSizer18->Add(itemStaticText19, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
387wxArrayString m_FeatureListChoiceStrings;
388m_FeatureListChoiceStrings.Add(
_(
"List Features"));
389m_FeatureListChoiceStrings.Add(
_(
"Complete Sequence"));
390m_FeatureListChoiceStrings.Add(
_(
"Complete Genome"));
395wxArrayString m_ProductClauseChoiceStrings;
396m_ProductClauseChoiceStrings.Add(
_(
"No mitochondrial or chloroplast suffix"));
397m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for mitochondrial product(s)"));
398m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for chloroplast product(s)"));
399m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for kinetoplast product(s)"));
400m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for plastid product(s)"));
401m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for chromoplast product(s)"));
402m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for cyanelle product(s)"));
403m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for apicoplast product(s)"));
404m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for leucoplast product(s)"));
405m_ProductClauseChoiceStrings.Add(
_(
"Nuclear gene(s) for proplastid product(s)"));
406m_ProductClauseChoiceStrings.Add(
_(
"Nuclear genes based on CDS products"));
407m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of mitochondrial gene"));
408m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of chloroplast gene"));
409m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of kinetoplast gene"));
410m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of plastid gene"));
411m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of chromoplast gene"));
412m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of cyanelle gene"));
413m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of apicoplast gene"));
414m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of leucoplast gene"));
415m_ProductClauseChoiceStrings.Add(
_(
"Nuclear copy of proplastid gene"));
428wxStaticBox* optionalFeaturesBoxLabel =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Optional Features"));
429wxStaticBoxSizer* optionalFeaturesBox =
newwxStaticBoxSizer(optionalFeaturesBoxLabel, wxHORIZONTAL);
430featureRow1->Add(optionalFeaturesBox, 0, wxGROW|wxALL, 5);
432wxBoxSizer* optionalFeaturesColumn =
newwxBoxSizer (wxVERTICAL);
433optionalFeaturesBox->Add (optionalFeaturesColumn, 0, wxALIGN_LEFT|wxALL, 5);
437optionalFeaturesColumn->Add(
m_KeepExons, 0, wxALIGN_LEFT|wxALL, 5);
441optionalFeaturesColumn->Add(
m_KeepIntrons, 0, wxALIGN_LEFT|wxALL, 5);
445optionalFeaturesColumn->Add(
m_Keep5UTRs, 0, wxALIGN_LEFT|wxALL, 5);
449optionalFeaturesColumn->Add(
m_Keep3UTRs, 0, wxALIGN_LEFT|wxALL, 5);
451optionalFeaturesColumn =
newwxBoxSizer (wxVERTICAL);
452optionalFeaturesBox->Add (optionalFeaturesColumn, 0, wxALIGN_LEFT|wxALL, 5);
461optionalFeaturesColumn =
newwxBoxSizer (wxVERTICAL);
462optionalFeaturesBox->Add (optionalFeaturesColumn, 0, wxALIGN_LEFT|wxALL, 5);
466optionalFeaturesColumn->Add(
m_KeepMiscFeats, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
468wxArrayString m_MiscFeatParseRuleStrings;
469m_MiscFeatParseRuleStrings.Add(
_(
"Look for Noncoding Products"));
470m_MiscFeatParseRuleStrings.Add(
_(
"Use comment before first semicolon"));
476wxBoxSizer* featureRow2 =
newwxBoxSizer (wxHORIZONTAL);
477featureBox->Add (featureRow2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
479wxStaticBox* suppressFeaturesBoxLabel =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Suppress Features"));
480wxStaticBoxSizer* suppressFeaturesBox =
newwxStaticBoxSizer(suppressFeaturesBoxLabel, wxHORIZONTAL);
481featureRow2->Add(suppressFeaturesBox, 0, wxGROW|wxALL, 5);
483wxButton* itemButton39 =
newwxButton( itemDialog1,
ID_SUPPRESS_FEATURES,
_(
"Suppress Features"), wxDefaultPosition, wxDefaultSize, 0 );
484suppressFeaturesBox->Add(itemButton39, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
486wxStaticBox* suppressOptionsBoxLabel =
newwxStaticBox(itemDialog1,
wxID_ANY,
_(
"Suppress"));
487wxStaticBoxSizer* suppressOptionsBox =
newwxStaticBoxSizer(suppressOptionsBoxLabel, wxVERTICAL);
488featureRow2->Add(suppressOptionsBox, 0, wxGROW|wxALL, 5);
685 returnwxPanel::TransferDataToWindow();
691 if(wxPanel::TransferDataFromWindow()) {
742 if(selected == 10) {
780 else if(selected > 10) {
900 boolallow_hiv_rule =
true;
903 n<
m_ModifierButtons.size() && n < m_Params->m_ModifierList.size() && allow_hiv_rule;
911allow_hiv_rule =
false;
914 returnallow_hiv_rule;
EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1
static string s_GetModifierStatus(bool all_present, bool all_unique, bool is_unique)
static const char * kTableTag
#define ID_SUPPRESS_GENE_CLUSTER
#define ID_INCLUDE_INTRONS
#define ID_MODIFIERS_PER_LINE
#define ID_INCLUDE_MISC_FEATS
#define ID_SUPPRESS_ALTERNATIVE_SPLICE
#define ID_MODIFIER_CHECKBOX
#define ID_SUPPRESS_TRANSPOSON
#define ID_INCLUDE_REGULATORY_FEATURES
#define ID_USE_FAKE_PROMOTERS
#define ID_LEAVE_PARENTHETICAL
#define ID_INCLUDE_COUNTRY_TEXT
#define ID_USE_NCRNA_COMMENT
#define ID_SUPPRESS_LOCUS_TAGS
#define ID_DO_NOT_APPLY_TO_AFF
#define ID_SUPPRESS_FEATURES
#define ID_DO_NOT_APPLY_TO_SP
#define ID_ADD_ALT_SPLICE
#define ID_KEEP_AFTER_SEMICOLON
#define ID_MISC_FEAT_RULE
#define ID_DO_NOT_APPLY_TO_CF
#define ID_DO_NOT_APPLY_TO_NR
void OnChangeMiscFeat(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=10025, const wxString &caption=_("Autodef Params Panel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxCheckBox * m_IncludeCountry
void Init()
Initializes member variables.
vector< wxCheckBox * > m_ModifierButtons
wxChoice * m_MaxModifiers
wxChoice * m_FeatureListChoice
bool TransferDataFromWindow()
static bool ShowToolTips()
Should we show tooltips?
set< objects::CFeatListItem > m_SuppressedFeatures
wxChoice * m_ModifierListChoice
void RestoreDefaults()
override in derived classes
void SetParams(SAutodefParams *params, TConstScopedObjects *objects)
void OnChangeModifierListChoice(wxCommandEvent &event)
wxCheckBox * m_SuppressTransposon
wxCheckBox * m_AppendAltSplice
void CreateControls()
Creates the controls and sizers.
virtual void SetRegistryPath(const string &path)
CAlgoToolManagerParamsPanel.
virtual void LoadSettings()
wxChoice * m_ProductClauseChoice
wxCheckBox * m_LeaveParen
wxCheckBox * m_SuppressAltSplice
wxChoice * m_MiscFeatParseRule
wxCheckBox * m_KeepMiscFeats
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxCheckBox * m_SuppressLocusTags
wxCheckBox * m_KeepRegulatoryFeatures
wxCheckBox * m_UseFakePromoters
wxCheckBox * m_KeepAfterSemicolon
void OnChangeModifierSelection(wxCommandEvent &event)
wxCheckBox * m_KeepIntrons
wxCheckBox * m_SupressGeneCluster
wxCheckBox * m_UseNcRNAComment
void OnSuppressFeatures(wxCommandEvent &event)
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
~CAutodefParamsPanel()
Destructor.
bool TransferDataToWindow()
TConstScopedObjects * m_InputObjects
virtual void SaveSettings() const
override in derived classes
SAutodefParams * m_Params
CObjectListWidget * m_ObjectListCtrl
CAutodefParamsPanel()
Constructors.
void GetSelected(TFeatTypeItemSet &feat_types)
void SetSelected(TFeatTypeItemSet &feat_types)
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.
set< objects::CFeatListItem > m_SuppressedFeatures
bool m_SuppressMobileElementSubfeatures
unsigned int m_MiscFeatRule
objects::CAutoDefSourceDescription::TAvailableModifierVector m_ModifierList
bool m_LeaveParenthetical
bool m_KeepRegulatoryFeatures
bool m_KeepAfterSemicolon
bool m_SuppressFeatureAltSplice
unsigned int m_ProductFlag
unsigned int m_NuclearCopyFlag
unsigned int m_FeatureListType
bool m_IncludeCountryText
bool m_SpecifyNuclearProduct
bool m_GeneClusterOppStrand
TConstScopedObjects m_SeqEntries
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static const char label[]
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