Changes

Jump to: navigation, search

Console Framework Classes 20103 - OOP344

2,566 bytes added, 13:35, 8 November 2010
FWField
FWDialog* container();
};
</syntaxhighlight></big>
===FWLabel===
<big><syntaxhighlight lang="cpp">
 
class FWLabel: public FWField{
 
int _length;
 
void aloCpy(const char* str, int len = -1);
 
public:
 
FWLabel(const char *Str, int Row, int Col,
 
int Len = -1);
 
FWLabel(int Row, int Col, int Len);
 
~FWLabel();
 
void draw(int Refresh = FW_NO_REFRESH) const;
 
int edit();
 
bool editable()const;
 
void set(const void* str);
 
};
 
</syntaxhighlight></big>
 
===FWDialog===
 
<big><syntaxhighlight lang="cpp">
 
class FWDialog: public FWBorder{
private:
int _fnum;
int _curidx;
FWField* _fld[FW_MAX_NO_FIELDS];
bool _dyn[FW_MAX_NO_FIELDS];
bool _editable;
public:
FWDialog(FWBorder *Container = (FWBorder*)0,
int Row = -1, int Col = -1,
int Width = -1, int Height = -1,
bool Borderd = false,
const char* Border=FW_BORDER_CHARS);
virtual ~FWDialog();
void draw(int fn = FW_NO_REFRESH)const;
int edit(int fn = FW_NO_REFRESH);
 
 
int add(FWField* field, bool dynamic = true);
int add(FWField& field, bool dynamic = false);
FWDialog& operator<<(FWField* field);
FWDialog& operator<<(FWField& field);
 
 
bool editable();
int fieldNum()const;
int curIndex()const;
 
 
FWField& operator[](unsigned int index);
FWField& curField();
};
 
 
</syntaxhighlight></big>
 
 
===FWLineEdit===
 
 
<big><syntaxhighlight lang="cpp">
 
class FWLineEdit: public FWField{
bool _dyn;
int _maxdatalen;
int* _insertmode;
int _curpos;
int _offset;
public:
FWLineEdit(char* Str, int Row, int Col, int Width,
int Maxdatalen, int* Insertmode,
bool Bordered = false,
const char* Border=FW_BORDER_CHARS);
FWLineEdit(int Row, int Col, int Width,
int Maxdatalen, int* Insertmode,
bool Bordered = false,
const char* Border=FW_BORDER_CHARS);
~FWLineEdit();
void draw(int Refresh = FW_NO_REFRESH)const;
int edit();
bool editable()const;
 
void set(const void* Str);
};
 
</syntaxhighlight></big>
===FWButton===
 
<big><syntaxhighlight lang="cpp">
 
class FWButton: public FWField{
int _length;
public:
FWButton(const char *Str, int Row, int Col,
bool Bordered = true,
const char* Border=FW_BORDER_CHARS);
virtual ~FWButton();
void draw(int Refresh = FW_NO_REFRESH) const;
int edit();
bool editable()const;
void set(const void* str);
};
 
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
</syntaxhighlight></big>
<big><syntaxhighlight lang="cpp">
</syntaxhighlight></big>

Navigation menu