Patch level : 10.0
Files correlati : ba0.exe Ricompilazione Demo : [ ] Commento : Corrette alcune colorazioni git-svn-id: svn://10.65.10.50/trunk@17621 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
76404a0845
commit
a956e989ea
@ -366,7 +366,7 @@ void TColor_mask::TPreview_panel::update()
|
|||||||
xvt_font_destroy(fontid);
|
xvt_font_destroy(fontid);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
xvt_dwin_set_font(win(), xvt_default_font());
|
xvt_dwin_set_font(win(), xvtil_default_font());
|
||||||
|
|
||||||
set_opaque_text(false);
|
set_opaque_text(false);
|
||||||
set_pen(p = get_color_entry("Normal"));
|
set_pen(p = get_color_entry("Normal"));
|
||||||
@ -533,7 +533,7 @@ bool TColor_mask::apply_theme()
|
|||||||
}
|
}
|
||||||
xvt_mem_free((DATA_PTR)cc);
|
xvt_mem_free((DATA_PTR)cc);
|
||||||
|
|
||||||
XVT_FNTID defont = xvt_default_font(false, false); // Legge il font standard
|
XVT_FNTID defont = xvtil_default_font(false, false); // Legge il font standard
|
||||||
XVT_FNTID fontid = xvt_res_get_font(0); // Legge il font di sistema
|
XVT_FNTID fontid = xvt_res_get_font(0); // Legge il font di sistema
|
||||||
xvt_font_set_size(fontid, xvt_font_get_size(defont)); // Forza l'altezza standard
|
xvt_font_set_size(fontid, xvt_font_get_size(defont)); // Forza l'altezza standard
|
||||||
xvt_font_serialize(fontid, _font_desc.get_buffer(), _font_desc.size());
|
xvt_font_serialize(fontid, _font_desc.get_buffer(), _font_desc.size());
|
||||||
@ -546,7 +546,7 @@ bool TColor_mask::apply_theme()
|
|||||||
{
|
{
|
||||||
TConfig color(CONFIG_GUI, "Colors");
|
TConfig color(CONFIG_GUI, "Colors");
|
||||||
_color = color.list_variables();
|
_color = color.list_variables();
|
||||||
xvt_font_serialize(xvt_default_font(), _font_desc.get_buffer(), _font_desc.size());
|
xvt_font_serialize(xvtil_default_font(), _font_desc.get_buffer(), _font_desc.size());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -650,7 +650,7 @@ bool TColor_mask::on_field_event(TOperable_field& f, TField_event e, long jolly)
|
|||||||
if (_font_desc.full())
|
if (_font_desc.full())
|
||||||
xvt_font_deserialize(fontid, _font_desc);
|
xvt_font_deserialize(fontid, _font_desc);
|
||||||
else
|
else
|
||||||
xvt_font_copy(fontid, xvt_default_font(), XVT_FA_ALL);
|
xvt_font_copy(fontid, xvtil_default_font(), XVT_FA_ALL);
|
||||||
if (xvt_dm_post_font_sel(win(), fontid, NULL, 0))
|
if (xvt_dm_post_font_sel(win(), fontid, NULL, 0))
|
||||||
{
|
{
|
||||||
xvt_font_serialize(fontid, _font_desc.get_buffer(), _font_desc.size());
|
xvt_font_serialize(fontid, _font_desc.get_buffer(), _font_desc.size());
|
||||||
@ -697,7 +697,7 @@ TColor_mask::TColor_mask()
|
|||||||
set(218, EASY_RIDER ? "X" : "");
|
set(218, EASY_RIDER ? "X" : "");
|
||||||
set(219, TOOL_TEXT ? "X" : "");
|
set(219, TOOL_TEXT ? "X" : "");
|
||||||
|
|
||||||
xvt_font_serialize(xvt_default_font(), _font_desc.get_buffer(), _font_desc.size());
|
xvt_font_serialize(xvtil_default_font(), _font_desc.get_buffer(), _font_desc.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TColor_mask::save_colors(TConfig& colors)
|
void TColor_mask::save_colors(TConfig& colors)
|
||||||
|
@ -196,7 +196,7 @@ short TBook_window::add_page(const TString& caption)
|
|||||||
wd.wtype = WC_NOTEBK;
|
wd.wtype = WC_NOTEBK;
|
||||||
wd.ctlcolors = xcc;
|
wd.ctlcolors = xcc;
|
||||||
wd.v.ctl.ctrl_id = DLG_MAIN;
|
wd.v.ctl.ctrl_id = DLG_MAIN;
|
||||||
wd.v.ctl.font_id = xvt_default_font();
|
wd.v.ctl.font_id = xvtil_default_font();
|
||||||
wd.v.ctl.flags = CTL_FLAG_TAB_BOTTOM; // should be wxCHECK_VERSION(2,8,9)
|
wd.v.ctl.flags = CTL_FLAG_TAB_BOTTOM; // should be wxCHECK_VERSION(2,8,9)
|
||||||
wd.v.ctl.flags |= CTL_FLAG_CENTER_JUST; // old compatibility flags
|
wd.v.ctl.flags |= CTL_FLAG_CENTER_JUST; // old compatibility flags
|
||||||
|
|
||||||
@ -437,15 +437,7 @@ void TOutlook_mask::handler(WINDOW w, EVENT* ep)
|
|||||||
switch (ep->v.cmd.tag)
|
switch (ep->v.cmd.tag)
|
||||||
{
|
{
|
||||||
case 8001:
|
case 8001:
|
||||||
{
|
set(DLG_LOOK, "", true); // Seleziona menu completo
|
||||||
TTree_field& tf = tfield(DLG_TREE);
|
|
||||||
_tree.change_root("MENU_000"); // Torna alla radice standard
|
|
||||||
_tree.goto_root();
|
|
||||||
_tree.shrink_all();
|
|
||||||
tf.win().force_update(); // Provoca la rigenerazione dell'albero collassato
|
|
||||||
tf.on_key(K_SPACE);
|
|
||||||
set(DLG_LOOK, -1); // Deseleziona
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 8002:
|
case 8002:
|
||||||
load_perspective(0); // Ricarica default
|
load_perspective(0); // Ricarica default
|
||||||
@ -529,7 +521,7 @@ bool TOutlook_mask::on_field_event(TOperable_field& o, TField_event e, long joll
|
|||||||
if (ico <= 0 || ico == ICON_RSRC)
|
if (ico <= 0 || ico == ICON_RSRC)
|
||||||
{
|
{
|
||||||
const int area = get_int(DLG_LOOK);
|
const int area = get_int(DLG_LOOK);
|
||||||
if (area >= 0 && area < 16)
|
if (area > 0 && area < 16)
|
||||||
ico = _icon[area];
|
ico = _icon[area];
|
||||||
else
|
else
|
||||||
ico = ICON_RSRC;
|
ico = ICON_RSRC;
|
||||||
@ -544,19 +536,30 @@ bool TOutlook_mask::on_field_event(TOperable_field& o, TField_event e, long joll
|
|||||||
case DLG_LOOK:
|
case DLG_LOOK:
|
||||||
if (e == fe_modify)
|
if (e == fe_modify)
|
||||||
{
|
{
|
||||||
|
TTree_field& tf = tfield(DLG_TREE);
|
||||||
const int sel = atoi(o.get());
|
const int sel = atoi(o.get());
|
||||||
TToken_string id("MENU_000", '/');
|
TToken_string id("MENU_000", '/');
|
||||||
_tree.change_root(id); // Torna alla radice standard
|
_tree.change_root(id); // Torna alla radice standard
|
||||||
for (int i = 0; i < sel; i++)
|
if (sel > 0)
|
||||||
{
|
{
|
||||||
do
|
for (int i = 1; i < sel; i++)
|
||||||
_tree.goto_rbrother(); // Sceglie l'opportuno ramo principale
|
{
|
||||||
while (!_tree.enabled());
|
do
|
||||||
|
_tree.goto_rbrother(); // Sceglie l'opportuno ramo principale
|
||||||
|
while (!_tree.enabled());
|
||||||
|
}
|
||||||
|
_tree.goto_firstson();
|
||||||
|
_tree.curr_id(id);
|
||||||
|
_tree.change_root(id.get(1)); // Imposta una nuova radice
|
||||||
|
synchronize_tree_field(tf);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_tree.goto_root();
|
||||||
|
_tree.shrink_all();
|
||||||
|
tf.win().force_update();
|
||||||
|
tf.on_key(K_SPACE);
|
||||||
}
|
}
|
||||||
_tree.goto_firstson();
|
|
||||||
_tree.curr_id(id);
|
|
||||||
_tree.change_root(id.get(1)); // Imposta una nuova radice
|
|
||||||
synchronize_tree_field(tfield(DLG_TREE));
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
@ -604,6 +607,10 @@ TOutlook_mask::TOutlook_mask(TMenu& menu) : _tree(menu), _locked(false)
|
|||||||
|
|
||||||
TString caption;
|
TString caption;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
int ico = 10219;
|
||||||
|
of->add_item(ico, TR("Menu principale"), 0);
|
||||||
|
_icon[i++] = ico;
|
||||||
for (bool ok = _tree.goto_root(); ok; ok = _tree.goto_rbrother())
|
for (bool ok = _tree.goto_root(); ok; ok = _tree.goto_rbrother())
|
||||||
{
|
{
|
||||||
const TMenuitem& mi = _tree.curr_item();
|
const TMenuitem& mi = _tree.curr_item();
|
||||||
@ -616,10 +623,8 @@ TOutlook_mask::TOutlook_mask(TMenu& menu) : _tree(menu), _locked(false)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const int minimain = 800;
|
|
||||||
|
|
||||||
xvt_pane_add(panel, dlg2win(DLG_TREE), "Menu", 1, 0); // Left upper pane
|
xvt_pane_add(panel, dlg2win(DLG_TREE), "Menu", 1, 0); // Left upper pane
|
||||||
xvt_pane_add(panel, dlg2win(DLG_LOOK), "Bar", 1, 0); // Left lower pane
|
xvt_pane_add(panel, dlg2win(DLG_LOOK), "Aree", 1, 0); // Left lower pane
|
||||||
xvt_pane_add(panel, dlg2win(DLG_MAIN), "Main", 0, 0); // Main pane
|
xvt_pane_add(panel, dlg2win(DLG_MAIN), "Main", 0, 0); // Main pane
|
||||||
save_perspective(0); // Salva default
|
save_perspective(0); // Salva default
|
||||||
load_perspective(1); // Carica custom
|
load_perspective(1); // Carica custom
|
||||||
|
Loading…
x
Reference in New Issue
Block a user