ba19f3c1dd
git-svn-id: svn://localhost/gambas/trunk@893 867c0c6c-44f3-4631-809d-bfa615b0a4ec
34 lines
593 B
C++
34 lines
593 B
C++
#ifndef __GLISTBOX_H
|
|
#define __GLISTBOX_H
|
|
|
|
#include "gtreeview.h"
|
|
|
|
class gListBox : public gTreeView
|
|
{
|
|
public:
|
|
gListBox(gContainer *parent);
|
|
|
|
//"Properties"
|
|
int index();
|
|
bool isItemSelected(int ind);
|
|
char* itemText(int ind);
|
|
//char** list();
|
|
char *text() { return itemText(index()); }
|
|
|
|
void setIndex(int vl);
|
|
void setItemSelected(int ind, bool vl);
|
|
void setItemText(int ind, char *txt);
|
|
//void setList(char **items);
|
|
|
|
//"Methods"
|
|
void add(char *vl, int pos = -1);
|
|
int find(char *text);
|
|
void remove(int pos);
|
|
|
|
private:
|
|
char *indexToKey(int index);
|
|
int _last_key;
|
|
};
|
|
|
|
#endif
|