42 #include "NCPkgSearchSettings.h" 43 #include "NCPkgStrings.h" 49 NCPkgSearchSettings::NCPkgSearchSettings ( YWidget *parent, std::string label)
50 : NCMultiSelectionBox ( parent, label)
55 NCPkgSearchSettings::~NCPkgSearchSettings()
60 void NCPkgSearchSettings::createLayout()
62 checkName =
new YItem ( _(
"Name of the Package" ),
true);
63 items.push_back (checkName);
64 checkSummary =
new YItem ( _(
"Summary" ),
true);
65 items.push_back (checkSummary);
66 checkKeywords =
new YItem ( _(
"Keywords" ));
67 items.push_back (checkKeywords);
68 checkDescr =
new YItem ( _(
"Description (time-consuming)" ));
69 items.push_back (checkDescr);
70 checkProvides =
new YItem ( _(
"Provides" ));
71 items.push_back (checkProvides);
72 checkRequires =
new YItem ( _(
"Required by" ));
73 items.push_back (checkRequires);
78 bool NCPkgSearchSettings::doCheckName()
80 return checkName->selected();
82 bool NCPkgSearchSettings::doCheckSummary()
84 return checkSummary->selected();
86 bool NCPkgSearchSettings::doCheckKeywords()
88 return checkKeywords->selected();
90 bool NCPkgSearchSettings::doCheckDescr()
92 return checkDescr->selected();
94 bool NCPkgSearchSettings::doCheckProvides()
96 return checkProvides->selected();
98 bool NCPkgSearchSettings::doCheckRequires()
100 return checkRequires->selected();