Modfiche a TForm:
friend TForm_EC_editor, maschera di sezione parametrizzabile. Modifiche a TForm_flags: aggiunto membro memo e funzione set_memo(), per identificare un campo Memo sul form Modifiche a TForm_item: membro _memo, metodo memo() che ritorna lo stato di _flag.memo, e metodo memo_info() che ritorna il reference a _memo. git-svn-id: svn://10.65.10.50/trunk@2341 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4f4ac200cd
commit
b6d2c517b1
@ -42,6 +42,7 @@ const int MAXCOLUMNS = 32;
|
||||
class TForm : public TObject
|
||||
{
|
||||
friend class TForm_editor;
|
||||
friend class TForm_EC_editor;
|
||||
friend class TPrint_section;
|
||||
|
||||
enum bkg_mode
|
||||
@ -51,6 +52,7 @@ class TForm : public TObject
|
||||
TString _name; // Profile name
|
||||
TString _code; // Profile code
|
||||
TString _fontname; // Font name
|
||||
TString _section_mask;// Maschera per la sezione
|
||||
int _fontsize; // Font size
|
||||
int _x, _y; // Offset validi per tutte le sezioni
|
||||
char _char_to_pos; // Carattere utilizzato per il posizionamento dei moduli
|
||||
@ -142,6 +144,7 @@ public:
|
||||
const TString& name() const { return _name; }
|
||||
const TString& code() const { return _code; }
|
||||
|
||||
TString& section_mask() { return _section_mask; }
|
||||
bool edit_level() const { return _editlevel; }
|
||||
void set_edit_level(int n) { _editlevel = n; }
|
||||
void set_description(const char* s) { _desc = s; }
|
||||
@ -190,6 +193,7 @@ struct TForm_flags : public TObject
|
||||
bool dirty : 1;
|
||||
bool finkl : 1;
|
||||
bool finkr : 1;
|
||||
bool memo : 1;
|
||||
|
||||
protected:
|
||||
void print_on(ostream& out) const;
|
||||
@ -200,7 +204,7 @@ public:
|
||||
void set_shown(bool b) { shown = b; }
|
||||
void set_finkl(bool b) { finkl = b; }
|
||||
void set_finkr(bool b) { finkr = b; }
|
||||
|
||||
void set_memo (bool b) { memo = b; }
|
||||
void print_on(TMask& m);
|
||||
void read_from(const TMask& m);
|
||||
|
||||
@ -295,6 +299,7 @@ class TForm_item : public TObject
|
||||
TForm_flags _flag;
|
||||
TBit_array _group;
|
||||
TAssoc_array _special;
|
||||
TToken_string _memo;
|
||||
bool _temp;
|
||||
|
||||
protected:
|
||||
@ -344,6 +349,7 @@ public:
|
||||
bool automagic() const { return _flag.automagic; }
|
||||
bool finkl() const { return _flag.finkl; }
|
||||
bool finkr() const { return _flag.finkr; }
|
||||
bool memo() const { return _flag.memo; }
|
||||
|
||||
virtual bool parse(TScanner&);
|
||||
virtual bool update();
|
||||
@ -367,6 +373,7 @@ public:
|
||||
const TString& prompt() const { return _prompt; }
|
||||
void set_prompt(const char* s) { _prompt = s; }
|
||||
|
||||
const TToken_string& memo_info() { return _memo;}
|
||||
virtual const TString& picture() const; // Da' CHECK
|
||||
virtual void set_picture(const char*); // Da' CHECK
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user