16258dc547
Files correlati : Ricompilazione Demo : [ ] Commento : Riportata la versione 10.05 patch 502 git-svn-id: svn://10.65.10.50/trunk@8388 c028cbd2-c16b-5b4b-a496-9718f37d4682
66 lines
1.5 KiB
C++
Executable File
66 lines
1.5 KiB
C++
Executable File
#ifndef __SC100_H
|
|
#define __SC100_H
|
|
|
|
#ifndef __APPLICAT_H
|
|
#include <applicat.h>
|
|
#endif
|
|
|
|
#ifndef __CGSALDAC_H
|
|
#include "../cg/cgsaldac.h"
|
|
#endif
|
|
|
|
#ifndef __MASK_H
|
|
class TMask;
|
|
class TMask_field;
|
|
#endif
|
|
|
|
class TSaldaconto_app : public TSkeleton_application
|
|
{
|
|
TMask* _msk;
|
|
|
|
TPartite_array _partite;
|
|
|
|
TAssoc_array _colori;
|
|
|
|
bool _allow_firm;
|
|
bool _ges_val;
|
|
|
|
protected: // TApplication
|
|
virtual bool create();
|
|
virtual bool destroy();
|
|
virtual void main_loop();
|
|
virtual bool firm_change_enabled() const { return _allow_firm; }
|
|
virtual void on_config_change();
|
|
|
|
protected:
|
|
void edit_partite(const TMask& m);
|
|
|
|
void load_colors();
|
|
COLOR type2color(char tipor, char tipoc);
|
|
|
|
public:
|
|
TMask& curr_mask() { return *_msk; }
|
|
TPartite_array& partite() { return _partite; }
|
|
|
|
bool gestione_valuta() const { return _ges_val; }
|
|
|
|
void type2colors(char tipor, COLOR& back, COLOR& fore);
|
|
|
|
void gioca_cambi(TMask& m, int force = 0x0);
|
|
|
|
static bool descr_handler(TMask_field& f, KEY k);
|
|
static bool totale_handler(TMask_field& f, KEY k);
|
|
static bool imposte_handler(TMask_field& f, KEY k);
|
|
static bool totval_handler(TMask_field& f, KEY k);
|
|
static bool cambio_handler(TMask_field& f, KEY k);
|
|
static bool datacambio_handler(TMask_field& f, KEY k);
|
|
static bool valuta_handler(TMask_field& f, KEY k);
|
|
|
|
TSaldaconto_app();
|
|
virtual ~TSaldaconto_app() {}
|
|
};
|
|
|
|
inline TSaldaconto_app& app() { return (TSaldaconto_app&)main_app(); }
|
|
|
|
#endif
|