pisdr windows drives support

git-svn-id: svn://db.shs.com.ru/pip@57 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-04-01 11:58:17 +00:00
parent 136e5ea040
commit fce75cb88f
13 changed files with 364 additions and 26 deletions

View File

@@ -28,8 +28,9 @@
class PIP_EXPORT TileSimple: public PIScreenTile {
public:
TileSimple(const PIString & n = PIString());
typedef PIPair<PIString, PIScreenTypes::CellFormat> Row;
TileSimple(const PIString & n = PIString());
TileSimple(const Row & r);
PIVector<Row> content;
PIScreenTypes::Alignment alignment;
protected:
@@ -148,4 +149,26 @@ protected:
};
class PIP_EXPORT TileInput: public PIScreenTile {
public:
TileInput(const PIString & n = PIString());
/*enum EventType {
EditFinished
};*/
PIScreenTypes::CellFormat format;
PIString text;
int max_length;
protected:
void sizeHint(int & w, int & h) const;
void drawEvent(PIScreenDrawer * d);
bool keyEvent(PIKbdListener::KeyEvent key);
void reserCursor();
int cur, offset;
bool inv;
PITimeMeasurer tm_blink;
};
#endif // PISCREENTILES_H