git-svn-id: svn://db.shs.com.ru/pip@266 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-09-17 22:05:54 +00:00
parent 362c6bf505
commit be6aaf26a4
7 changed files with 54 additions and 12 deletions

View File

@@ -39,7 +39,10 @@ protected:
};
class TileList;
class PIP_EXPORT TileScrollBar: public PIScreenTile {
friend class TileList;
public:
TileScrollBar(const PIString & n = PIString());
void setMinimum(int v);
@@ -61,6 +64,7 @@ protected:
class PIP_EXPORT TileList: public PIScreenTile {
public:
TileList(const PIString & n = PIString());
~TileList();
enum SelectionMode {
NoSelection,
SingleSelection,
@@ -75,12 +79,13 @@ public:
PIScreenTypes::Alignment alignment;
SelectionMode selection_mode;
PISet<int> selected;
int cur, offset;
int lhei, cur, offset;
protected:
void sizeHint(int & w, int & h) const;
void resizeEvent(int w, int h);
void drawEvent(PIScreenDrawer * d);
bool keyEvent(PIKbdListener::KeyEvent key);
int lhei;
TileScrollBar * scroll;
};