SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
88GetSizer()->SetSizeHints(
this);
114wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
115itemCAlgoToolManagerParamsPanel1->SetSizer(itemBoxSizer2);
117wxStaticBox* itemStaticBoxSizer3Static =
newwxStaticBox(itemCAlgoToolManagerParamsPanel1,
wxID_ANY,
_(
"Query Sequences"));
118wxStaticBoxSizer* itemStaticBoxSizer3 =
newwxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);
119itemBoxSizer2->Add(itemStaticBoxSizer3, 1, wxGROW|wxALL, 5);
124wxStaticBox* itemStaticBoxSizer5Static =
newwxStaticBox(itemCAlgoToolManagerParamsPanel1,
wxID_ANY,
_(
"Subject Sequence"));
125wxStaticBoxSizer* itemStaticBoxSizer5 =
newwxStaticBoxSizer(itemStaticBoxSizer5Static, wxVERTICAL);
126itemBoxSizer2->Add(itemStaticBoxSizer5, 1, wxGROW|wxALL, 5);
164 const CSeq_loc* seqLoc =
dynamic_cast<const CSeq_loc*
>(
i.object.GetPointer());
175}
NCBI_CATCH(
"CNGAlignPanel get Seq-loc length.");
187min_row = max_row = 0;
193 intmin_length = 0, max_length = 0;
199min_length = max_length = length;
202 for(
int row= 1;
row< nr_rows; ++
row) {
204 if(length <= min_length) {
208 if(length >= max_length) {
224 intmin_row = 0, max_row = 0;
228 m_QueryListCtrl->SetItemState(min_row, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
229 m_SubjectListCtrl->SetItemState(max_row, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
237 if(!CAlgoToolManagerParamsPanel::TransferDataFromWindow())
243 if( que_sel.empty() ){
245 wxT(
"Please select Query sequences."),
wxT(
"Error"),
246wxOK | wxICON_ERROR,
this 253 if( sub_sel.empty() ){
255 wxT(
"Please select Subject sequence."),
wxT(
"Error"),
256wxOK | wxICON_ERROR,
this 268(
wxT(
"This tool gives unpredictable results with sequences\nfrom different projects.\n\nPlease move all sequences to the same project\nand try again."),
wxT(
"Error"),
269wxOK | 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.
CObjectList Data structure representing a list of CObjects with associated Scopes and other optional ...
void Init(TConstScopedObjects &objects)
initializers
void SetInteger(int col, int row, int val)
int AddColumn(EColumnType type, const string &name, int col=-1)
int GetInteger(int col, int row) const
int GetNumColumns() const
access to columns (attribute, indexes)
class CRegistryReadView provides a nested hierarchical view at a particular key.
void LoadTableSettings(const CRegistryReadView &view, bool byName=false)
void SaveTableSettings(CRegistryWriteView &view, bool saveSorting=true) const
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_CATCH(message)
Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.
bool Create(wxWindow *parent, wxWindowID id=ID_CNGALIGNPANEL)
static bool ShowToolTips()
void SetObjects(TConstScopedObjects *objects)
virtual void RestoreDefaults()
override in derived classes
virtual void SaveSettings() const
override in derived classes
SConstScopedObject & SetSubject()
virtual bool TransferDataFromWindow()
TConstScopedObjects & SetQueries()
wxIcon GetIconResource(const wxString &name)
CObjectListWidget * m_QueryListCtrl
CObjectListWidget * m_SubjectListCtrl
wxBitmap GetBitmapResource(const wxString &name)
virtual void LoadSettings()
vector< SConstScopedObject > TConstScopedObjects
TRange GetTotalRange(void) const
TSeqPos GetBioseqLength(void) const
void Reset(void)
Reset reference object.
TObjectType * Release(void)
Release a reference to the object and return a pointer to the object.
position_type GetLength(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool IsWhole(void) const
Check if variant Whole is selected.
unsigned int
A callback function used to compare two keys in a database.
USING_SCOPE(ncbi::objects)
static const char * kTable2Tag
static CObjectList * s_CreateObjList(TConstScopedObjects &objects)
static void s_GetMinMaxRows(const CObjectList &objList, int &min_row, int &max_row)
static const char * kTable1Tag
#define SYMBOL_CNGALIGNPANEL_STYLE
#define row(bind, expected)
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