2008-10-07 09:02:41 +00:00
|
|
|
#include <about.h>
|
|
|
|
#include <applicat.h>
|
|
|
|
#include <colors.h>
|
|
|
|
#include <config.h>
|
|
|
|
#include <dongle.h>
|
|
|
|
#include <prefix.h>
|
|
|
|
#include <sqlset.h>
|
2009-11-04 14:49:29 +00:00
|
|
|
#include <toolfld.h>
|
|
|
|
#include <urldefid.h>
|
|
|
|
#include <utility.h>
|
2008-10-07 09:02:41 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
2009-11-04 14:49:29 +00:00
|
|
|
// TAdavnced_property sheet
|
2008-10-07 09:02:41 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
class TAdvanced_property_sheet : public TMask
|
2008-10-07 09:02:41 +00:00
|
|
|
{
|
2009-11-04 14:49:29 +00:00
|
|
|
TProp_field* _pf;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual long handler(WINDOW win, EVENT* e);
|
2009-11-19 12:04:13 +00:00
|
|
|
void edit();
|
2009-11-04 14:49:29 +00:00
|
|
|
void esporta();
|
|
|
|
|
|
|
|
public:
|
|
|
|
void freeze(bool on) { _pf->freeze(on); }
|
|
|
|
void add_cat(const char* prompt);
|
|
|
|
void add_prop(const char* prompt, const char* value);
|
|
|
|
void add_prop(const char* prompt, long value);
|
2009-11-19 12:04:13 +00:00
|
|
|
bool curr_prop(TString& prop, TVariant& value);
|
2009-11-04 14:49:29 +00:00
|
|
|
|
|
|
|
void set_read_only(bool ro = true);
|
|
|
|
TAdvanced_property_sheet(const char* title = "", int width = 78, int height = 20);
|
|
|
|
};
|
|
|
|
|
|
|
|
long TAdvanced_property_sheet::handler(WINDOW win, EVENT* e)
|
|
|
|
{
|
|
|
|
if (_pf != NULL)
|
|
|
|
{
|
|
|
|
switch (e->type)
|
|
|
|
{
|
|
|
|
case E_SIZE:
|
|
|
|
if (win == _pf->win().parent())
|
|
|
|
_pf->win().maximize();
|
|
|
|
break;
|
|
|
|
case E_CONTROL:
|
|
|
|
switch(e->v.ctl.id)
|
|
|
|
{
|
2009-11-19 12:04:13 +00:00
|
|
|
case DLG_EDIT: edit(); return 0L;
|
2009-11-04 14:49:29 +00:00
|
|
|
case DLG_EXPORT: esporta(); return 0L;
|
|
|
|
default: break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return TMask::handler(win, e);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TAdvanced_property_sheet::add_cat(const char* prompt)
|
|
|
|
{
|
|
|
|
_pf->set_property(prompt, (const char*)NULL, prompt);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TAdvanced_property_sheet::add_prop(const char* prompt, const char* value)
|
|
|
|
{
|
|
|
|
_pf->set_property(prompt, value, prompt);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TAdvanced_property_sheet::add_prop(const char* prompt, long value)
|
|
|
|
{
|
|
|
|
_pf->set_property(prompt, value, prompt);
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOLEAN export_cb(WINDOW pg, XVT_TREEVIEW_NODE node, void* jolly)
|
|
|
|
{
|
|
|
|
char name[_MAX_PATH];
|
|
|
|
if (xvt_prop_get_string(pg, node, name, sizeof(name)))
|
|
|
|
{
|
|
|
|
ostream& out = *(ostream*)jolly;
|
|
|
|
char value[_MAX_PATH];
|
|
|
|
if (xvt_prop_get_data(pg, node, value, sizeof(value)))
|
|
|
|
out << '\t' << name << '\t' << value << endl; // Property
|
|
|
|
else
|
|
|
|
out << name << endl; // Category
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2009-11-19 12:04:13 +00:00
|
|
|
void TAdvanced_property_sheet::edit()
|
|
|
|
{
|
|
|
|
TString name;
|
|
|
|
TVariant value;
|
|
|
|
if (_pf->current_property(name, value))
|
|
|
|
{
|
|
|
|
TFilename n = value.as_string();
|
|
|
|
if (n.exist())
|
|
|
|
{
|
|
|
|
#ifdef WIN32
|
2010-02-15 12:11:55 +00:00
|
|
|
if (n.ends_with(".msk", true) || n.ends_with(".ini", true))
|
2009-11-19 12:04:13 +00:00
|
|
|
{
|
|
|
|
n.insert("notepad ");
|
|
|
|
xvt_sys_execute(n, FALSE, FALSE);
|
2010-02-15 12:11:55 +00:00
|
|
|
} else
|
2009-11-19 12:04:13 +00:00
|
|
|
#endif
|
2010-02-15 12:11:55 +00:00
|
|
|
xvt_sys_goto_url(n, "open");
|
2009-11-19 12:04:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
void TAdvanced_property_sheet::esporta()
|
|
|
|
{
|
|
|
|
TString cap; get_caption(cap);
|
|
|
|
for (char* buf = cap.get_buffer(); *buf; buf++)
|
|
|
|
{
|
|
|
|
switch (*buf)
|
|
|
|
{
|
|
|
|
case '?':
|
|
|
|
case '(':
|
|
|
|
case ')':
|
|
|
|
case '/':
|
|
|
|
case '\\':
|
|
|
|
case '*': *buf = ' '; break;
|
|
|
|
default : break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cap.strip_spaces();
|
|
|
|
if (cap.blank())
|
|
|
|
cap = "export";
|
|
|
|
TFilename name;
|
|
|
|
name.tempdir(); name.add(cap); name.ext("xls");
|
|
|
|
if (name.full()) // Dummy test
|
|
|
|
{
|
|
|
|
ofstream xls(name);
|
|
|
|
_pf->for_each_property(export_cb, &xls);
|
|
|
|
}
|
|
|
|
if (name.exist())
|
|
|
|
xvt_sys_goto_url(name, "open");
|
|
|
|
}
|
|
|
|
|
|
|
|
void TAdvanced_property_sheet::set_read_only(bool ro)
|
|
|
|
{
|
|
|
|
xvt_prop_set_read_only(_pf->win().win(), NULL, ro);
|
|
|
|
}
|
|
|
|
|
|
|
|
TAdvanced_property_sheet::TAdvanced_property_sheet(const char* title, int width, int height)
|
|
|
|
: TMask(title && *title ? title : TR("Proprieta'"), 1, width, height), _pf(NULL)
|
|
|
|
{
|
|
|
|
add_button_tool(DLG_CANCEL, TR("Ritorna"), TOOL_CANCEL);
|
|
|
|
add_button_tool(DLG_EXPORT, TR("Esporta"), TOOL_EXCEL);
|
2009-11-19 12:04:13 +00:00
|
|
|
if (is_power_reseller(true))
|
|
|
|
add_button_tool(DLG_EDIT, TR("Edit"), TOOL_EDIT);
|
2009-11-04 14:49:29 +00:00
|
|
|
add_button_tool(DLG_HELP, TR("Help"), TOOL_HELP);
|
|
|
|
|
|
|
|
_pf = new TProp_field(this);
|
|
|
|
_pf->create(DLG_USER, 0, 0, 0, 0, page_win(0));
|
|
|
|
}
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TBasic_property sheet
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TBasic_property_sheet : public TArray_sheet
|
|
|
|
{
|
2008-10-07 09:02:41 +00:00
|
|
|
protected:
|
|
|
|
virtual bool get_cell_colors(int row, int col, COLOR& fore, COLOR& back) const;
|
|
|
|
|
|
|
|
public:
|
2009-11-04 14:49:29 +00:00
|
|
|
void add_cat(const char* cat);
|
|
|
|
void add_prop(const char* prop, const char* val);
|
|
|
|
void add_prop(const char* prop, long val);
|
|
|
|
TBasic_property_sheet(const char* title, int width, int height);
|
2008-10-07 09:02:41 +00:00
|
|
|
};
|
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
bool TBasic_property_sheet::get_cell_colors(int r, int col, COLOR& fore, COLOR& back) const
|
2008-10-07 09:02:41 +00:00
|
|
|
{
|
2009-11-04 14:49:29 +00:00
|
|
|
const TToken_string& riga = ((TBasic_property_sheet*)this)->row(r);
|
|
|
|
const bool changed = riga.items() == 1;
|
|
|
|
if (changed)
|
2008-10-07 09:02:41 +00:00
|
|
|
{
|
2009-11-04 14:49:29 +00:00
|
|
|
fore = FOCUS_COLOR;
|
|
|
|
back = REQUIRED_BACK_COLOR;
|
|
|
|
return true;
|
2008-10-07 09:02:41 +00:00
|
|
|
}
|
2009-11-04 14:49:29 +00:00
|
|
|
return changed;
|
2008-10-07 09:02:41 +00:00
|
|
|
}
|
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
|
|
|
|
void TBasic_property_sheet::add_cat(const char* cat)
|
|
|
|
{
|
|
|
|
add(cat);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TBasic_property_sheet::add_prop(const char* prop, const char* val)
|
2008-10-07 09:02:41 +00:00
|
|
|
{
|
2009-11-04 14:49:29 +00:00
|
|
|
TToken_string r;
|
|
|
|
r = prop;
|
|
|
|
r.add(val);
|
2008-10-07 09:02:41 +00:00
|
|
|
add(r);
|
|
|
|
}
|
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
void TBasic_property_sheet::add_prop(const char* prop, long val)
|
|
|
|
{
|
|
|
|
add_prop(prop, format("%ld", val));
|
|
|
|
}
|
|
|
|
|
|
|
|
TBasic_property_sheet::TBasic_property_sheet(const char* title, int width, int height)
|
|
|
|
: TArray_sheet(-1, -1, width, height, title, format("@%d|@%d", width/4-2, 3*width/4-2))
|
|
|
|
{ }
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TProperty sheet
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
void TProperty_sheet::add_cat(const char* cat)
|
|
|
|
{
|
|
|
|
if (_power)
|
|
|
|
((TAdvanced_property_sheet*)_ps)->add_cat(cat);
|
|
|
|
else
|
|
|
|
((TBasic_property_sheet*)_ps)->add_cat(cat);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TProperty_sheet::add_prop(const char* prop, const char* val)
|
2008-10-07 09:02:41 +00:00
|
|
|
{
|
2009-11-04 14:49:29 +00:00
|
|
|
if (_power)
|
|
|
|
((TAdvanced_property_sheet*)_ps)->add_prop(prop, val);
|
|
|
|
else
|
|
|
|
((TBasic_property_sheet*)_ps)->add_prop(prop, val);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TProperty_sheet::add_prop(const char* prop, long val)
|
|
|
|
{
|
|
|
|
if (_power)
|
|
|
|
((TAdvanced_property_sheet*)_ps)->add_prop(prop, val);
|
|
|
|
else
|
|
|
|
((TBasic_property_sheet*)_ps)->add_prop(prop, val);
|
2008-10-07 09:02:41 +00:00
|
|
|
}
|
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
void TProperty_sheet::freeze(bool f)
|
2008-10-07 09:02:41 +00:00
|
|
|
{
|
2009-11-04 14:49:29 +00:00
|
|
|
if (_power)
|
|
|
|
((TAdvanced_property_sheet*)_ps)->freeze(f);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TProperty_sheet::set_read_only(bool ro)
|
|
|
|
{
|
|
|
|
if (_power)
|
|
|
|
((TAdvanced_property_sheet*)_ps)->set_read_only(ro);
|
|
|
|
}
|
|
|
|
|
|
|
|
KEY TProperty_sheet::run()
|
|
|
|
{ return _ps->run(); }
|
|
|
|
|
|
|
|
|
|
|
|
TProperty_sheet::TProperty_sheet(const char* title, int width, int height)
|
|
|
|
{
|
|
|
|
_power = is_power_reseller();
|
|
|
|
if (_power)
|
|
|
|
_ps = new TAdvanced_property_sheet(title, width, height);
|
|
|
|
else
|
|
|
|
_ps = new TBasic_property_sheet(title, width, height);
|
|
|
|
}
|
|
|
|
|
|
|
|
TProperty_sheet::~TProperty_sheet()
|
|
|
|
{
|
|
|
|
delete _ps;
|
|
|
|
}
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// Finestra informazioni
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TInfo_mask : public TProperty_sheet
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TInfo_mask();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
TInfo_mask::TInfo_mask() : TProperty_sheet(TR("Informazioni"))
|
|
|
|
{
|
|
|
|
freeze(true);
|
|
|
|
|
2008-10-07 09:02:41 +00:00
|
|
|
const word ser_no = dongle().number();
|
|
|
|
|
2008-11-21 10:14:46 +00:00
|
|
|
int year = 2091, release = 10, tag = 0, patch = 1;
|
2009-11-04 14:49:29 +00:00
|
|
|
TString80 versione = "2091.10.00";
|
2008-10-07 09:02:41 +00:00
|
|
|
if (main_app().get_version_info(year, release, tag, patch))
|
2009-11-04 14:49:29 +00:00
|
|
|
versione.format("%d.%02d.%02d Patch %d", year, release, tag, patch);
|
2008-10-07 09:02:41 +00:00
|
|
|
|
2009-12-15 14:59:17 +00:00
|
|
|
TString16 datamod;
|
|
|
|
TFilename cmdline = main_app().argv(0);
|
|
|
|
cmdline.ext("exe");
|
|
|
|
if (cmdline.exist())
|
|
|
|
{
|
|
|
|
const time_t mtime = xvt_fsys_file_attr(cmdline, XVT_FILE_ATTR_MTIME);
|
2010-02-09 10:11:25 +00:00
|
|
|
struct tm data; localtime_s(&data, &mtime);
|
|
|
|
datamod.format("%02d-%02d-%04d", data.tm_mday, data.tm_mon+1, data.tm_year+1900);
|
2009-12-15 14:59:17 +00:00
|
|
|
}
|
2008-11-14 16:41:23 +00:00
|
|
|
TString80 stros, strwx, strcpu;
|
2008-10-07 09:02:41 +00:00
|
|
|
xvt_sys_get_version(stros.get_buffer(), strwx.get_buffer(), stros.size());
|
2008-11-14 16:41:23 +00:00
|
|
|
xvt_sys_get_host_name(strcpu.get_buffer(), strcpu.size());
|
2008-10-07 09:02:41 +00:00
|
|
|
|
|
|
|
TString arg;
|
2010-02-09 10:11:25 +00:00
|
|
|
for (int a = 0; a < main_app().argc(); a++)
|
|
|
|
arg << main_app().argv(a) << ' ';
|
|
|
|
arg.trim();
|
2008-10-07 09:02:41 +00:00
|
|
|
|
|
|
|
TConfig campoini(CONFIG_INSTALL, "Main");
|
|
|
|
TConfig userini(CONFIG_GUI, "Printer");
|
2009-12-24 11:36:31 +00:00
|
|
|
|
2008-10-07 09:02:41 +00:00
|
|
|
TString prot;
|
|
|
|
const TDongleHardware dhw = dongle().hardware();
|
|
|
|
switch (dhw)
|
|
|
|
{
|
|
|
|
case _dongle_hardlock: prot = "Hardlock"; break;
|
|
|
|
case _dongle_eutron : prot = "Eutron"; break;
|
2010-02-09 10:11:25 +00:00
|
|
|
case _dongle_network : prot = dongle().server_name(); break;
|
2010-12-23 09:24:46 +00:00
|
|
|
case _dongle_aladdin : prot = "Aladdin"; break;
|
2008-10-07 09:02:41 +00:00
|
|
|
default : prot = TR("Nessuna"); break;
|
|
|
|
}
|
|
|
|
|
2010-02-09 10:11:25 +00:00
|
|
|
int type = campoini.get_int("Type", "Main");
|
2008-10-07 09:02:41 +00:00
|
|
|
const char* tipo = NULL;
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case 1: tipo = TR("Postazione singola"); break;
|
|
|
|
case 2: tipo = TR("Server"); break;
|
|
|
|
case 3: tipo = TR("Client"); break;
|
|
|
|
default:
|
|
|
|
if (campoini.get_bool("TestDatabase"))
|
|
|
|
{
|
|
|
|
if (dhw == _dongle_network)
|
2010-02-09 10:11:25 +00:00
|
|
|
{
|
2008-10-07 09:02:41 +00:00
|
|
|
tipo = TR("Server");
|
2010-02-09 10:11:25 +00:00
|
|
|
campoini.set("Type", type = 2);
|
|
|
|
}
|
2008-10-07 09:02:41 +00:00
|
|
|
else
|
|
|
|
tipo = TR("Server o Postazione singola");
|
|
|
|
}
|
|
|
|
else
|
2010-02-09 10:11:25 +00:00
|
|
|
{
|
2008-10-07 09:02:41 +00:00
|
|
|
tipo = TR("Client");
|
2010-02-09 10:11:25 +00:00
|
|
|
campoini.set("Type", type = 3);
|
|
|
|
}
|
2008-10-07 09:02:41 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
TFilename temp; temp.tempdir();
|
|
|
|
TString strdb, strsql;
|
|
|
|
{
|
|
|
|
TISAM_recordset rs("");
|
|
|
|
strdb = rs.driver_version();
|
|
|
|
}
|
|
|
|
{
|
|
|
|
TSQL_recordset rs("");
|
|
|
|
strsql = rs.driver_version();
|
|
|
|
}
|
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
add_cat(TR("Programma"));
|
|
|
|
add_prop(TR("Versione"), versione);
|
2009-11-23 15:42:18 +00:00
|
|
|
add_prop(TR("Data"), datamod);
|
|
|
|
add_prop(TR("Linea di Comando"), arg);
|
|
|
|
add_prop(TR("Utente"), user());
|
|
|
|
|
|
|
|
add_cat(TR("Licenza"));
|
|
|
|
add_prop(TR("Installazione"), tipo);
|
2009-11-04 14:49:29 +00:00
|
|
|
add_prop(TR("Protezione"), prot);
|
|
|
|
add_prop(TR("N. di serie"), ser_no);
|
|
|
|
if (ser_no > 0)
|
2010-12-15 16:02:53 +00:00
|
|
|
{
|
2009-11-04 14:49:29 +00:00
|
|
|
add_prop(TR("Assistenza"), dongle().year_assist());
|
2010-12-15 16:02:53 +00:00
|
|
|
Tdninst dninst;
|
|
|
|
add_prop(TR("Controllo"), dninst.assist_year());
|
|
|
|
}
|
2009-11-04 14:49:29 +00:00
|
|
|
|
|
|
|
add_cat(TR("Area dati"));
|
|
|
|
TFilename study = firm2dir(-1);
|
|
|
|
add_prop(TR("Studio"), study);
|
|
|
|
const long codditta = campoini.get_long("Firm", "Main");
|
|
|
|
add_prop(TR("Ditta"), codditta);
|
2008-10-07 09:02:41 +00:00
|
|
|
if (prefix_valid())
|
|
|
|
{
|
|
|
|
const TFirm& f = prefix().firm();
|
2009-11-04 14:49:29 +00:00
|
|
|
add_prop(TR("Ragione Sociale"), f.ragione_sociale());
|
|
|
|
add_prop(TR("Valuta"), f.codice_valuta());
|
2008-10-07 09:02:41 +00:00
|
|
|
}
|
2008-12-23 09:05:22 +00:00
|
|
|
else
|
2009-11-04 14:49:29 +00:00
|
|
|
add_prop(TR("Ragione Sociale"), campoini.get("Company"));
|
2008-10-07 09:02:41 +00:00
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
add_cat(TR("Dati Stazione"));
|
|
|
|
add_prop(TR("Sistema Operativo"), stros);
|
|
|
|
add_prop(TR("Utente"), user());
|
|
|
|
add_prop(TR("Computer"), strcpu);
|
2008-10-07 09:02:41 +00:00
|
|
|
|
2010-03-02 11:23:20 +00:00
|
|
|
TString16 strfree;
|
2008-12-04 16:37:47 +00:00
|
|
|
const long mbfree = xvt_fsys_get_disk_free_space(study, 'M');
|
2010-03-02 11:23:20 +00:00
|
|
|
if (mbfree > 8192)
|
|
|
|
strfree.format("%ld Gb", mbfree/1024);
|
|
|
|
else
|
|
|
|
strfree.format("%ld Mb", mbfree);
|
|
|
|
add_prop(TR("Spazio su disco"), strfree);
|
2009-11-04 14:49:29 +00:00
|
|
|
add_prop(TR("File temporanei"), temp);
|
2008-10-07 09:02:41 +00:00
|
|
|
|
2008-11-21 10:14:46 +00:00
|
|
|
TString printer;
|
|
|
|
printer = userini.get("Name", "Printer");
|
2008-10-07 09:02:41 +00:00
|
|
|
if (printer.blank())
|
2008-11-21 10:14:46 +00:00
|
|
|
printer = TR("Nessuna");
|
2009-11-04 14:49:29 +00:00
|
|
|
add_prop(TR("Stampante"), printer);
|
|
|
|
|
|
|
|
add_cat(TR("Configurazioni"));
|
|
|
|
add_prop(TR("Config locale"), campoini.name());
|
|
|
|
add_prop(TR("Config studio"), study.add("studio.ini"));
|
|
|
|
if (codditta > 0)
|
|
|
|
{
|
|
|
|
study = firm2dir(codditta);
|
|
|
|
add_prop(TR("Config ditta"), study.add("ditta.ini"));
|
|
|
|
}
|
|
|
|
add_prop(TR("Config utente"), userini.name());
|
|
|
|
study = firm2dir(-1); study.add("config"); study.add(strcpu); study.ext("ini");
|
|
|
|
add_prop(TR("Config stazione"), study),
|
2008-10-07 09:02:41 +00:00
|
|
|
|
2009-11-04 14:49:29 +00:00
|
|
|
add_cat(TR("Librerie di supporto"));
|
2008-11-21 10:14:46 +00:00
|
|
|
xvt_print_pdf_version(printer.get_buffer(), printer.size());
|
2009-11-04 14:49:29 +00:00
|
|
|
add_prop(TR("Libreria DB"), strdb);
|
|
|
|
add_prop(TR("Libreria GUI"), strwx);
|
|
|
|
add_prop(TR("Libreria PDF"), printer);
|
|
|
|
add_prop(TR("Libreria SQL"), strsql);
|
2010-03-02 11:23:20 +00:00
|
|
|
#ifdef _MSC_VER
|
2010-04-13 14:30:29 +00:00
|
|
|
const int cver = _MSC_VER / 100 - 6;
|
|
|
|
const int csub = _MSC_VER % 100;
|
|
|
|
add_prop(TR("Libreria C++"), format("Microsoft Visual Studio %d.%d", cver, csub));
|
2009-11-12 15:10:58 +00:00
|
|
|
#endif
|
2009-11-04 14:49:29 +00:00
|
|
|
|
|
|
|
set_read_only();
|
|
|
|
freeze(false);
|
2008-10-07 09:02:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// About box: risposta alla opzione Informazioni del menu File
|
|
|
|
void about()
|
|
|
|
{
|
|
|
|
TInfo_mask info;
|
|
|
|
info.run();
|
|
|
|
}
|
|
|
|
|