1b64d55829
git-svn-id: svn://10.65.10.50/branches/R_10_00@22882 c028cbd2-c16b-5b4b-a496-9718f37d4682
61 lines
1.6 KiB
C++
Executable File
61 lines
1.6 KiB
C++
Executable File
#ifndef __CI0300_H
|
|
#define __CI0300_H
|
|
|
|
#include "ci0300a.h"
|
|
|
|
///////////////////////////////////////////////////////////
|
|
// TConfigurazioneIndustriale_sheet
|
|
///////////////////////////////////////////////////////////
|
|
|
|
class TConfigurazioneIndustriale_mask : public TAutomask
|
|
{
|
|
protected:
|
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
|
|
|
public:
|
|
void moveup_element(long selrow);
|
|
void movedown_element(long selrow);
|
|
|
|
public:
|
|
TSheet_field& sheet() const { return sfield(F_SHEET); }
|
|
int items() const { return sheet().items(); }
|
|
TString_array& rows_array() { return sheet().rows_array(); }
|
|
TToken_string& row(int i) { return sheet().row(i); }
|
|
|
|
public:
|
|
TConfigurazioneIndustriale_mask() : TAutomask("ci0300a") {}
|
|
};
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
// TConfigurazioneIndustriale_app
|
|
///////////////////////////////////////////////////////////
|
|
|
|
class TConfigurazioneIndustriale_app: public TSkeleton_application
|
|
{
|
|
private:
|
|
TConfigurazioneIndustriale_mask* _mask;
|
|
int _maxelem;
|
|
int _maxlen;
|
|
|
|
private:
|
|
void file_to_sheet();
|
|
void sheet_to_file();
|
|
|
|
protected:
|
|
virtual bool create(void);
|
|
virtual void main_loop();
|
|
virtual bool destroy(void) ;
|
|
|
|
public:
|
|
TConfigurazioneIndustriale_mask& mask() const {return *_mask; }
|
|
|
|
public:
|
|
TConfigurazioneIndustriale_app(int maxelem = 16, int maxlen = 100) : _maxelem(maxelem), _maxlen(maxlen) {}
|
|
virtual ~TConfigurazioneIndustriale_app() {}
|
|
};
|
|
|
|
inline TConfigurazioneIndustriale_app& configurazione_industriale_app() { return (TConfigurazioneIndustriale_app&)main_app(); }
|
|
|
|
#endif // __CI0300_H
|