piethernet
git-svn-id: svn://db.shs.com.ru/pip@38 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -67,6 +67,23 @@ protected:
|
||||
|
||||
|
||||
|
||||
class TileButton: public PIScreenTile {
|
||||
public:
|
||||
TileButton(const PIString & n = PIString());
|
||||
enum EventType {
|
||||
ButtonClicked
|
||||
};
|
||||
PIScreenTypes::CellFormat format;
|
||||
PIString text;
|
||||
protected:
|
||||
void sizeHint(int & w, int & h) const;
|
||||
void drawEvent(PIScreenDrawer * d);
|
||||
bool keyEvent(PIKbdListener::KeyEvent key);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class TileButtons: public PIScreenTile {
|
||||
public:
|
||||
TileButtons(const PIString & n = PIString());
|
||||
@@ -83,4 +100,38 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class TileCheck: public PIScreenTile {
|
||||
public:
|
||||
TileCheck(const PIString & n = PIString());
|
||||
enum EventType {
|
||||
Toggled
|
||||
};
|
||||
PIScreenTypes::CellFormat format;
|
||||
PIString text;
|
||||
bool toggled;
|
||||
protected:
|
||||
void sizeHint(int & w, int & h) const;
|
||||
void drawEvent(PIScreenDrawer * d);
|
||||
bool keyEvent(PIKbdListener::KeyEvent key);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class TileProgress: public PIScreenTile {
|
||||
public:
|
||||
TileProgress(const PIString & n = PIString());
|
||||
PIScreenTypes::CellFormat format;
|
||||
PIString prefix;
|
||||
PIString suffix;
|
||||
double maximum;
|
||||
double value;
|
||||
protected:
|
||||
void sizeHint(int & w, int & h) const;
|
||||
void drawEvent(PIScreenDrawer * d);
|
||||
};
|
||||
|
||||
|
||||
#endif // PISCREENTILES_H
|
||||
|
||||
Reference in New Issue
Block a user