Patch level : 10.0
Files correlati : ba0 Ricompilazione Demo : [ ] Commento : Corretto nome server di chiavi in finestra about Aggiunto prompt color al tema Migliorata esportazione excel dei report Aggiunto supporto per disabilitazione nodi negli alberi git-svn-id: svn://10.65.10.50/trunk@19840 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b67d2199aa
commit
a1b9e5171d
@ -318,11 +318,11 @@ TInfo_mask::TInfo_mask() : TProperty_sheet(TR("Informazioni"))
|
|||||||
{
|
{
|
||||||
case _dongle_hardlock: prot = "Hardlock"; break;
|
case _dongle_hardlock: prot = "Hardlock"; break;
|
||||||
case _dongle_eutron : prot = "Eutron"; break;
|
case _dongle_eutron : prot = "Eutron"; break;
|
||||||
case _dongle_network : prot = ini_get_string(CONFIG_INSTALL, "Main", "Dongle", "Server"); break;
|
case _dongle_network : prot = campoini.get("Dongle", "Server"); break;
|
||||||
default : prot = TR("Nessuna"); break;
|
default : prot = TR("Nessuna"); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int type = campoini.get_int("Type");
|
const int type = campoini.get_int("Type", "Main");
|
||||||
const char* tipo = NULL;
|
const char* tipo = NULL;
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
@ -21,6 +21,7 @@ extern COLOR BTN_DARK_COLOR;
|
|||||||
extern COLOR TOOL_BACK_COLOR;
|
extern COLOR TOOL_BACK_COLOR;
|
||||||
extern COLOR NORMAL_COLOR;
|
extern COLOR NORMAL_COLOR;
|
||||||
extern COLOR NORMAL_BACK_COLOR;
|
extern COLOR NORMAL_BACK_COLOR;
|
||||||
|
extern COLOR PROMPT_COLOR;
|
||||||
extern COLOR DISABLED_COLOR;
|
extern COLOR DISABLED_COLOR;
|
||||||
extern COLOR DISABLED_BACK_COLOR;
|
extern COLOR DISABLED_BACK_COLOR;
|
||||||
extern COLOR FOCUS_COLOR;
|
extern COLOR FOCUS_COLOR;
|
||||||
|
@ -29,6 +29,7 @@ COLOR BTN_DARK_COLOR = COLOR_GRAY;
|
|||||||
COLOR TOOL_BACK_COLOR = COLOR_GRAY;
|
COLOR TOOL_BACK_COLOR = COLOR_GRAY;
|
||||||
COLOR NORMAL_COLOR = COLOR_BLACK;
|
COLOR NORMAL_COLOR = COLOR_BLACK;
|
||||||
COLOR NORMAL_BACK_COLOR = COLOR_WHITE;
|
COLOR NORMAL_BACK_COLOR = COLOR_WHITE;
|
||||||
|
COLOR PROMPT_COLOR = NORMAL_COLOR;
|
||||||
COLOR DISABLED_COLOR = COLOR_DKGRAY;
|
COLOR DISABLED_COLOR = COLOR_DKGRAY;
|
||||||
COLOR DISABLED_BACK_COLOR = MASK_BACK_COLOR;
|
COLOR DISABLED_BACK_COLOR = MASK_BACK_COLOR;
|
||||||
COLOR FOCUS_COLOR = NORMAL_COLOR;
|
COLOR FOCUS_COLOR = NORMAL_COLOR;
|
||||||
@ -345,6 +346,7 @@ void customize_colors()
|
|||||||
MASK_DARK_COLOR = colors.get_color("MaskDark", NULL, -1, MASK_DARK_COLOR);
|
MASK_DARK_COLOR = colors.get_color("MaskDark", NULL, -1, MASK_DARK_COLOR);
|
||||||
NORMAL_COLOR = colors.get_color("Normal", NULL, -1, NORMAL_COLOR);
|
NORMAL_COLOR = colors.get_color("Normal", NULL, -1, NORMAL_COLOR);
|
||||||
NORMAL_BACK_COLOR = colors.get_color("NormalBack", NULL, -1, NORMAL_BACK_COLOR);
|
NORMAL_BACK_COLOR = colors.get_color("NormalBack", NULL, -1, NORMAL_BACK_COLOR);
|
||||||
|
PROMPT_COLOR = colors.get_color("Prompt", NULL, -1, PROMPT_COLOR);
|
||||||
REQUIRED_BACK_COLOR = colors.get_color("RequiredBack", NULL, -1, REQUIRED_BACK_COLOR);
|
REQUIRED_BACK_COLOR = colors.get_color("RequiredBack", NULL, -1, REQUIRED_BACK_COLOR);
|
||||||
DISABLED_COLOR = colors.get_color("Disabled", NULL, -1, DISABLED_COLOR);
|
DISABLED_COLOR = colors.get_color("Disabled", NULL, -1, DISABLED_COLOR);
|
||||||
DISABLED_BACK_COLOR = colors.get_color("DisabledBack", NULL, -1, DISABLED_BACK_COLOR);
|
DISABLED_BACK_COLOR = colors.get_color("DisabledBack", NULL, -1, DISABLED_BACK_COLOR);
|
||||||
@ -973,13 +975,13 @@ unsigned long TControl::flags2attr(const char* flags) const
|
|||||||
{
|
{
|
||||||
switch(toupper(*f))
|
switch(toupper(*f))
|
||||||
{
|
{
|
||||||
case '*': attrib |= XI_ATR_PASSWORD; break;
|
case '*': attrib |= XI_ATR_PASSWORD; break;
|
||||||
case 'C': attrib |= XI_ATR_HCENTER; break;
|
case 'C': attrib |= XI_ATR_HCENTER; break;
|
||||||
case 'D': attrib &= ~XI_ATR_ENABLED; break;
|
case 'D': attrib &= ~XI_ATR_ENABLED; break;
|
||||||
case 'H': attrib &= ~XI_ATR_VISIBLE; break;
|
case 'H': attrib &= ~XI_ATR_VISIBLE; break;
|
||||||
case 'L': attrib |= XI_ATR_READONLY; break;
|
case 'L': attrib |= XI_ATR_READONLY; break;
|
||||||
case 'R': attrib |= XI_ATR_RJUST; break;
|
case 'R': attrib |= XI_ATR_RJUST; break;
|
||||||
default : break;
|
default : break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return attrib;
|
return attrib;
|
||||||
@ -989,7 +991,7 @@ const char* TControl::parse_caption(const char* cap, bool& bold, bool& big, COLO
|
|||||||
{
|
{
|
||||||
bold = false;
|
bold = false;
|
||||||
big = false;
|
big = false;
|
||||||
color = NORMAL_COLOR;
|
color = PROMPT_COLOR;
|
||||||
|
|
||||||
const char* t;
|
const char* t;
|
||||||
|
|
||||||
@ -1747,16 +1749,16 @@ void TPushbutton_control::update()
|
|||||||
const long attrib = xi_get_attrib(_obj);
|
const long attrib = xi_get_attrib(_obj);
|
||||||
if (attrib & XI_ATR_VISIBLE)
|
if (attrib & XI_ATR_VISIBLE)
|
||||||
{
|
{
|
||||||
WINDOW win = parent();
|
XinWindow win = xi_get_window(_obj);
|
||||||
XI_RCT rct; xi_get_rect(_obj, &rct); // = _obj->v.btn->rct;
|
XI_RCT rct; xi_get_rect(_obj, &rct); // = _obj->v.btn->rct;
|
||||||
xi_inflate_rect(&rct, -3);
|
xi_inflate_rect(&rct, -3);
|
||||||
xi_set_clip((XinWindow)win, &rct);
|
xi_set_clip(win, &rct);
|
||||||
|
|
||||||
// Cancello il testo sottostante
|
// Cancello il testo sottostante
|
||||||
CBRUSH brush = { PAT_SOLID, BTN_BACK_COLOR };
|
CBRUSH brush = { PAT_SOLID, BTN_BACK_COLOR };
|
||||||
xvt_dwin_set_cbrush(win, &brush);
|
xvt_dwin_set_cbrush((WINDOW)win, &brush);
|
||||||
xvt_dwin_set_std_cpen(win, TL_PEN_HOLLOW);
|
xvt_dwin_set_std_cpen((WINDOW)win, TL_PEN_HOLLOW);
|
||||||
xi_draw_rect((XinWindow)win, &rct);
|
xi_draw_rect(win, &rct);
|
||||||
|
|
||||||
const int bmp = (_bmp_dn > 0 && _obj->v.btn->down) ? _bmp_dn : _bmp_up;
|
const int bmp = (_bmp_dn > 0 && _obj->v.btn->down) ? _bmp_dn : _bmp_up;
|
||||||
if (bmp > 0)
|
if (bmp > 0)
|
||||||
@ -1765,9 +1767,9 @@ void TPushbutton_control::update()
|
|||||||
RCT& dst = xvtil_align_rect(i.rect(), (RCT&)rct, 'C', 'C', '-');
|
RCT& dst = xvtil_align_rect(i.rect(), (RCT&)rct, 'C', 'C', '-');
|
||||||
if (_obj->v.btn->down)
|
if (_obj->v.btn->down)
|
||||||
xvt_rect_offset(&dst, 2, 2);
|
xvt_rect_offset(&dst, 2, 2);
|
||||||
i.draw(win, dst);
|
i.draw((WINDOW)win, dst);
|
||||||
}
|
}
|
||||||
xi_set_clip((XinWindow)win, NULL);
|
xi_set_clip(win, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1871,7 +1873,6 @@ TRadiobutton_control::TRadiobutton_control(WINDOW win, short cid,
|
|||||||
XI_OBJ_DEF* btn_def = xi_add_button_def(def, cid + b*1000, NULL, attrib, (char*)t, next);
|
XI_OBJ_DEF* btn_def = xi_add_button_def(def, cid + b*1000, NULL, attrib, (char*)t, next);
|
||||||
CHECKD(btn_def, "Can't create definition for radio-button ", cid);
|
CHECKD(btn_def, "Can't create definition for radio-button ", cid);
|
||||||
btn_def->app_data = (long)this;
|
btn_def->app_data = (long)this;
|
||||||
|
|
||||||
XI_BTN_DEF* btn = btn_def->v.btn;
|
XI_BTN_DEF* btn = btn_def->v.btn;
|
||||||
btn->type = XIBT_RADIOBTN;
|
btn->type = XIBT_RADIOBTN;
|
||||||
btn->fore_color = color;
|
btn->fore_color = color;
|
||||||
|
@ -8,11 +8,11 @@
|
|||||||
|
|
||||||
static bool is_outlook_menu_chain()
|
static bool is_outlook_menu_chain()
|
||||||
{
|
{
|
||||||
const TFixed_string app(__argv[0]);
|
const TFilename n = __argv[0];
|
||||||
|
const TString& app = n.name_only();
|
||||||
if (app.match("*ba[0,1]*", true))
|
if (app.match("*ba[0,1]*", true))
|
||||||
return false;
|
return false;
|
||||||
TConfig ini(CONFIG_GUI, "Colors");
|
return ini_get_int(CONFIG_GUI, "Colors", "TreeView") == 3;
|
||||||
return ini.get_int("TreeView") == 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// @doc EXTERNAL
|
// @doc EXTERNAL
|
||||||
|
@ -1737,11 +1737,11 @@ bool TBook::export_excel(TFilename& fname, bool signature)
|
|||||||
col = x * cpi() / res.x;
|
col = x * cpi() / res.x;
|
||||||
wid = w * cpi() / res.x;
|
wid = w * cpi() / res.x;
|
||||||
} else
|
} else
|
||||||
if (str.starts_with("<text owner=B"))
|
if (str.starts_with("<text owner="))
|
||||||
{
|
{
|
||||||
// <text owner=B1>
|
// <text owner=B1>
|
||||||
const char* section = str.get(1);
|
const char* section = str.get(1);
|
||||||
if (section[0] == 'B' && section[1] > '0')
|
if ((section[0] == 'B'||section[0]=='F') && section[1]>'0')
|
||||||
tab.add_field(col, wid);
|
tab.add_field(col, wid);
|
||||||
// Raggiunge fine del testo
|
// Raggiunge fine del testo
|
||||||
while (str != "</text>" && !ifs.eof())
|
while (str != "</text>" && !ifs.eof())
|
||||||
|
@ -1510,7 +1510,7 @@ bool TCursor_sheet::in_key(const TFieldref& fr) const
|
|||||||
TCursor_sheet::TCursor_sheet(TCursor* cursor, const char* fields,
|
TCursor_sheet::TCursor_sheet(TCursor* cursor, const char* fields,
|
||||||
const char* title, const char* head,
|
const char* title, const char* head,
|
||||||
byte buttons, short sht_y, WINDOW parent)
|
byte buttons, short sht_y, WINDOW parent)
|
||||||
: TSheet(sht_y ? 2 : 0, sht_y ? 2 : 0, sht_y ? -2 : 0, sht_y ? -2 : 0,
|
: TSheet(sht_y ? 3 : 0, sht_y ? 3 : 0, sht_y ? -3 : 0, sht_y ? -3 : 0,
|
||||||
title, head, buttons, sht_y, parent), _cursor(cursor)
|
title, head, buttons, sht_y, parent), _cursor(cursor)
|
||||||
{
|
{
|
||||||
TToken_string fldlst(fields);
|
TToken_string fldlst(fields);
|
||||||
|
@ -279,11 +279,17 @@ bool TTree_window::add_child(XVT_TREEVIEW_NODE parent)
|
|||||||
ii = im_nor->xvt_image();
|
ii = im_nor->xvt_image();
|
||||||
}
|
}
|
||||||
XVT_TREEVIEW_NODE child = xvt_treeview_add_child_node(_ctrl, parent, type, ii, ic, ie, desc, NULL, id);
|
XVT_TREEVIEW_NODE child = xvt_treeview_add_child_node(_ctrl, parent, type, ii, ic, ie, desc, NULL, id);
|
||||||
if (child != NULL && type == XVT_TREEVIEW_NODE_NONTERMINAL && _tree->expanded())
|
if (child != NULL)
|
||||||
{
|
{
|
||||||
for (bool ok = _tree->goto_firstson(); ok; ok = _tree->goto_rbrother())
|
if (!_tree->enabled())
|
||||||
add_child(child);
|
xvt_treeview_enable_node(_ctrl, child, FALSE);
|
||||||
xvt_treeview_expand_node(_ctrl, child, FALSE);
|
|
||||||
|
if (type == XVT_TREEVIEW_NODE_NONTERMINAL && _tree->expanded())
|
||||||
|
{
|
||||||
|
for (bool ok = _tree->goto_firstson(); ok; ok = _tree->goto_rbrother())
|
||||||
|
add_child(child);
|
||||||
|
xvt_treeview_expand_node(_ctrl, child, FALSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_tree->goto_node(id);
|
_tree->goto_node(id);
|
||||||
@ -394,6 +400,7 @@ void TTree_window::update()
|
|||||||
if (_header.full())
|
if (_header.full())
|
||||||
{
|
{
|
||||||
clear(MASK_BACK_COLOR);
|
clear(MASK_BACK_COLOR);
|
||||||
|
set_color(PROMPT_COLOR, MASK_BACK_COLOR);
|
||||||
short x = 3, y = 0;
|
short x = 3, y = 0;
|
||||||
FOR_EACH_TOKEN(_header, row)
|
FOR_EACH_TOKEN(_header, row)
|
||||||
stringat(x, y++, row);
|
stringat(x, y++, row);
|
||||||
@ -541,6 +548,7 @@ TTree_window::TTree_window(int x, int y, int dx, int dy, WINDOW parent, TTree_fi
|
|||||||
xcc[2].type = XVT_COLOR_HIGHLIGHT; xcc[2].color = FOCUS_BACK_COLOR;
|
xcc[2].type = XVT_COLOR_HIGHLIGHT; xcc[2].color = FOCUS_BACK_COLOR;
|
||||||
xcc[3].type = XVT_COLOR_SELECT; xcc[3].color = FOCUS_COLOR;
|
xcc[3].type = XVT_COLOR_SELECT; xcc[3].color = FOCUS_COLOR;
|
||||||
xcc[4].type = XVT_COLOR_BLEND; xcc[4].color = MASK_BACK_COLOR;
|
xcc[4].type = XVT_COLOR_BLEND; xcc[4].color = MASK_BACK_COLOR;
|
||||||
|
xcc[5].type = XVT_COLOR_TROUGH; xcc[5].color = DISABLED_COLOR;
|
||||||
xvt_ctl_set_colors(_ctrl, xcc, XVT_COLOR_ACTION_SET);
|
xvt_ctl_set_colors(_ctrl, xcc, XVT_COLOR_ACTION_SET);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -642,7 +650,7 @@ TOutlook_window::TOutlook_window(int x, int y, int dx, int dy, WINDOW parent, TO
|
|||||||
{
|
{
|
||||||
XVT_COLOR_COMPONENT xcc[4]; memset(xcc, 0, sizeof(xcc));
|
XVT_COLOR_COMPONENT xcc[4]; memset(xcc, 0, sizeof(xcc));
|
||||||
xcc[0].type = XVT_COLOR_BACKGROUND; xcc[0].color = BTN_BACK_COLOR;
|
xcc[0].type = XVT_COLOR_BACKGROUND; xcc[0].color = BTN_BACK_COLOR;
|
||||||
xcc[1].type = XVT_COLOR_FOREGROUND; xcc[1].color = NORMAL_COLOR;
|
xcc[1].type = XVT_COLOR_FOREGROUND; xcc[1].color = PROMPT_COLOR;
|
||||||
|
|
||||||
WIN_DEF wd; memset(&wd, 0, sizeof(wd));
|
WIN_DEF wd; memset(&wd, 0, sizeof(wd));
|
||||||
wd.wtype = WC_OUTLOOKBAR;
|
wd.wtype = WC_OUTLOOKBAR;
|
||||||
|
@ -595,7 +595,7 @@ bool is_power_station()
|
|||||||
{
|
{
|
||||||
ps = FALSE;
|
ps = FALSE;
|
||||||
const TDongle& d = dongle();
|
const TDongle& d = dongle();
|
||||||
if (d.number() == 0 && d.hardware() != _dongle_network)
|
if (d.number() == 0)
|
||||||
{
|
{
|
||||||
const char* const ranger[] = { "ANTARES", "ARCHIMEDE", "BATMOBILE", "KIRK",
|
const char* const ranger[] = { "ANTARES", "ARCHIMEDE", "BATMOBILE", "KIRK",
|
||||||
"MOBILE", "PICARD", "SPOCK", "SULU", "UHURA", NULL };
|
"MOBILE", "PICARD", "SPOCK", "SULU", "UHURA", NULL };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user