Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Pierogi
Summary Forums Tracker Lists Tasks Docs News SCM Files
1 #include "pirmakenames.h"
3 PIRMakeMgr::PIRMakeMgr()
4 {
5   makes[Any_Make] = "Any";
6   makes[Apple_Make] = "Apple";
7   makes[Ei_Make] = "Ei";
8   makes[GoldStar_Make] = "GoldStar";
9   makes[Hauppauge_Make] = "Hauppauge";
10   makes[LG_Make] = "LG";
11   makes[Nokia_Make] = "Nokia";
12   makes[Panasonic_Make] = "Panasonic";
13   makes[Samsung_Make] = "Samsung";
14   makes[Sanyo_Make] = "Sanyo";
15   makes[Sharp_Make] = "Sharp";
16   makes[Sony_Make] = "Sony";
17   makes[Toshiba_Make] = "Toshiba";
18   makes[Zenith_Make] = "Zenith";
19 }
21 const char *PIRMakeMgr::getMakeString(
22   PIRMakeName n)
23 {
24   return makes[n];
25 }
28 void PIRMakeMgr::populateComboBox(
29   QComboBox *cb)
30 {
31   MakeCollection::const_iterator i = makes.begin();
32   while (i != makes.end())
33   {
34     cb->insertItem(i->first, QString(i->second));
35     ++i;
36   }
37 }

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment