List (will this even work???)

This commit is contained in:
simon.kagstrom 2009-11-15 15:31:07 +00:00
parent 59365e831f
commit 2cb604b095

View File

@ -52,6 +52,35 @@ private:
gcn::Label *title; gcn::Label *title;
}; };
class List : public gcn::Widget
{
public:
class PrivListModel : public gcn::ListModel
{
public:
PrivListModel(const char **msgs, int n_msgs) : msgs(msgs), n_msgs(n_msgs)
{
}
int getNumberOfElements()
{
return this->n_msgs;
}
std::string getElementAt(int i)
{
return this->msgs[this->n_msgs];
}
const char **msgs;
int n_msgs;
};
List(const char **msgs, int n_msgs) {
}
};
/* /*
* List boxes and drop downs need an instance of a list model * List boxes and drop downs need an instance of a list model
* in order to display a list. * in order to display a list.