: m_PkgManager(pkgManager)
82 Create(parent,
id, caption, pos,
size, style);
85 bool CAppPackagesDlg::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
88SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
89CDialog::Create( parent,
id, caption, pos,
size, style );
94GetSizer()->SetSizeHints(
this);
123wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
124itemCDialog1->SetSizer(itemBoxSizer2);
126wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
127itemBoxSizer2->Add(itemBoxSizer3, 1, wxGROW|wxALL, 0);
129wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxVERTICAL);
130itemBoxSizer3->Add(itemBoxSizer4, 2, wxGROW|wxALL, 0);
132 m_PkgList=
newwxListCtrl( itemCDialog1,
ID_LISTCTRL1, wxDefaultPosition, wxDLG_UNIT(itemCDialog1, wxSize(120, 110)), wxLC_REPORT|wxLC_SINGLE_SEL );
133itemBoxSizer4->Add(
m_PkgList, 1, wxGROW|wxALL, wxDLG_UNIT(itemCDialog1, wxSize(5, -1)).x);
135wxCheckBox* itemCheckBox6 =
newwxCheckBox( itemCDialog1,
ID_CHECKBOX1,
_(
"Show invalid packages"), wxDefaultPosition, wxDefaultSize, 0 );
136itemCheckBox6->SetValue(
false);
137itemBoxSizer4->Add(itemCheckBox6, 0, wxALIGN_LEFT|wxALL, wxDLG_UNIT(itemCDialog1, wxSize(5, -1)).x);
139wxBoxSizer* itemBoxSizer7 =
newwxBoxSizer(wxVERTICAL);
140itemBoxSizer3->Add(itemBoxSizer7, 3, wxGROW|wxALL, 0);
142 m_PkgInfo=
newwxTextCtrl( itemCDialog1,
ID_TEXTCTRL1, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
143itemBoxSizer7->Add(
m_PkgInfo, 1, wxGROW|wxALL, wxDLG_UNIT(itemCDialog1, wxSize(5, -1)).x);
147itemBoxSizer7->Add(
m_PkgEnable, 0, wxALIGN_LEFT|wxALL, wxDLG_UNIT(itemCDialog1, wxSize(5, -1)).x);
149wxStaticLine* itemStaticLine10 =
newwxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
150itemBoxSizer2->Add(itemStaticLine10, 0, wxGROW|wxALL, wxDLG_UNIT(itemCDialog1, wxSize(5, -1)).x);
152wxStdDialogButtonSizer* itemStdDialogButtonSizer11 =
newwxStdDialogButtonSizer;
154itemBoxSizer2->Add(itemStdDialogButtonSizer11, 0, wxALIGN_RIGHT|wxALL, wxDLG_UNIT(itemCDialog1, wxSize(5, -1)).x);
155wxButton* itemButton12 =
newwxButton( itemCDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
156itemStdDialogButtonSizer11->AddButton(itemButton12);
158wxButton* itemButton13 =
newwxButton( itemCDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
159itemStdDialogButtonSizer11->AddButton(itemButton13);
161itemStdDialogButtonSizer11->Realize();
175wxCheckBox* itemCheckBox1 = (wxCheckBox*)FindWindow(
ID_CHECKBOX1);
176 boolshowInvalid = itemCheckBox1->GetValue();
180wxCheckBox* itemCheckBox2 = (wxCheckBox*)FindWindow(
ID_CHECKBOX2);
181itemCheckBox2->Enable(
false);
182itemCheckBox2->SetValue(
false);
222 m_PkgList->SetColumnWidth(0, wxLIST_AUTOSIZE);
248 autoindex =
event.GetIndex();
256 stringdescr =
"Description: ";
257wxCheckBox* itemCheckBox = (wxCheckBox*)FindWindow(
ID_CHECKBOX2);
261itemCheckBox->SetValue(
false);
262itemCheckBox->Enable(
false);
265wxStringOutputStream strstr;
266wxTextOutputStream os(strstr);
268 m_PkgInfo->ChangeValue(strstr.GetString());
272itemCheckBox->Enable(
false);
273itemCheckBox->SetValue(
true);
279itemCheckBox->Enable(
true);
283itemCheckBox->Enable(
false);
284itemCheckBox->SetValue(
false);
292 inlinewxTextOutputStream&
operator <<( wxTextOutputStream& os,
const string&
str)
294 returnos << wxString::FromAscii(
str.c_str());
303os <<
wxT(
"Package: ") << name << endl;
304os <<
wxT(
"Description: ") << name <<
wxT(
" application") << endl;
311os <<
wxT(
"Package: ") << manifest->GetName() << endl;
312os <<
wxT(
"Description: ") << manifest->GetDescription() << endl;
313os <<
wxT(
"Version: ");
321os << manifest->GetVersion();
332os <<
wxT(
"Dir: ") << pkg_info.
m_Dir<< endl;
333os <<
wxT(
"Depends on: ") << endl;
334 constobjects::CGuiPkgManifest::TGuiPkgDependency& deps = manifest->GetGuiPkgDependency();
335 ITERATE(objects::CGuiPkgManifest::TGuiPkgDependency, it2, deps) {
336 constobjects::CGuiDependentPkg& pkg = (*it2)->GetGuiDependentPkg();
337os <<
wxT(
" ") << pkg.GetName() <<
wxT(
" ") << pkg.GetVersion() << endl;
349 if(event.IsChecked()) {
350vector<string> basePkgs;
353 ITERATE(vector<string>, it, basePkgs)
357vector<string> dependents;
360 ITERATE(vector<string>, it, dependents)
367vector<string> loadPkgs;
368back_insert_iterator<vector<string> > dest(loadPkgs);
372wxMessageBox(
wxT(
"Changes will take effect when you restart Genome Workbench."),
User-defined methods of the data storage class.
User-defined methods of the data storage class.
EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1
CPkgManager - application Package Manager.
iterator_bool insert(const value_type &val)
const_iterator begin() const
const_iterator find(const key_type &key) const
const_iterator end() const
CNcbiOstream & operator<<(CNcbiOstream &out, const CEquivRange &range)
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_PLUGIN_SUFFIX
#define NCBI_PLUGIN_PREFIX
CConstRef< objects::CGuiPkgManifest > m_Manifest
void OnShowInvalidPkgs(wxCommandEvent &event)
void GetDependentPkgs(const string &pkg_name, vector< string > &dependents) const
static void x_DumpPkgInfo(wxTextOutputStream &os, const string &name, const CPackageInfo &pkg_info)
void OnOkClick(wxCommandEvent &event)
const CPackageInfo * GetPkgInfo(int index, string &pkg_name) const
bool Create(wxWindow *parent, wxWindowID id=ID_CAPPPACKAGESDLG, const wxString &caption=_("Configure Packages"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
static bool ShowToolTips()
void x_LoadPkgList(bool firstTime=false)
void OnPackageSelected(wxListEvent &event)
void GetBasePkgs(const string &pkg_name, vector< string > &basePkgs) const
void SetPackagesToLoad(const vector< string > &packages)
CPkgManager * m_PkgManager
set< string > m_EnabledPkgs
wxIcon GetIconResource(const wxString &name)
#define SYMBOL_CAPPPACKAGESDLG_TITLE
void OnEnablePkg(wxCommandEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
TObjectType * GetPointer(void) const THROWS_NONE
Get pointer,.
#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 string version
version string
const struct ncbi::grid::netcache::search::fields::SIZE size
Define class Dll and for Portable DLL handling.
void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)
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