Patch level : 2.1 nopatch
Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunte necessarie per generazione report git-svn-id: svn://10.65.10.50/trunk@11900 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c6a02882e8
commit
7112dfd722
@ -407,11 +407,8 @@ long TApplication::handler(WINDOW win, EVENT* ep)
|
|||||||
{
|
{
|
||||||
WINDOW w = cur_win();
|
WINDOW w = cur_win();
|
||||||
if (w != NULL_WIN && w != win)
|
if (w != NULL_WIN && w != win)
|
||||||
{
|
|
||||||
// ::dispatch_e_menu(w, ep->v.cmd.tag);
|
|
||||||
dispatch_event(w, *ep, TRUE);
|
dispatch_event(w, *ep, TRUE);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ep->v.cmd.tag >= BAR_ITEM(1))
|
if (ep->v.cmd.tag >= BAR_ITEM(1))
|
||||||
@ -429,19 +426,6 @@ long TApplication::handler(WINDOW win, EVENT* ep)
|
|||||||
else
|
else
|
||||||
return 1; // Divieto!
|
return 1; // Divieto!
|
||||||
break;
|
break;
|
||||||
case E_FONT:
|
|
||||||
{
|
|
||||||
XVT_FNTID new_font = ep->v.font.font_id;
|
|
||||||
char font_ser_desc[512];
|
|
||||||
TConfig font(CONFIG_USER, "Font");
|
|
||||||
|
|
||||||
xvt_font_serialize(new_font, font_ser_desc, sizeof(font_ser_desc));
|
|
||||||
font.set("FontDesc", font_ser_desc);
|
|
||||||
font.set_paragraph("Colors"); // Forza la scrittura del paragrafo
|
|
||||||
|
|
||||||
xvt_load_default_font();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case E_QUIT:
|
case E_QUIT:
|
||||||
if (ep->v.query)
|
if (ep->v.query)
|
||||||
{
|
{
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
#include <incstr.h>
|
#include <incstr.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// Utilities
|
// Utilities
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
@ -140,6 +142,18 @@ const TString& TXmlItem::GetAttr(const char* strAttr) const
|
|||||||
return EMPTY_STRING;
|
return EMPTY_STRING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TXmlItem& TXmlItem::SetAttr(const char* strAttr, int n)
|
||||||
|
{
|
||||||
|
TString16 str;
|
||||||
|
if (n != 0) str << n;
|
||||||
|
return SetAttr(strAttr, str);
|
||||||
|
}
|
||||||
|
|
||||||
|
int TXmlItem::GetIntAttr(const char* strAttr) const
|
||||||
|
{
|
||||||
|
return atoi(GetAttr(strAttr));
|
||||||
|
}
|
||||||
|
|
||||||
TXmlItem& TXmlItem::SetAttr(const char* strAttr, bool b)
|
TXmlItem& TXmlItem::SetAttr(const char* strAttr, bool b)
|
||||||
{
|
{
|
||||||
return SetAttr(strAttr, b ? "1" : "");
|
return SetAttr(strAttr, b ? "1" : "");
|
||||||
|
@ -46,7 +46,8 @@ public:
|
|||||||
|
|
||||||
TXmlItem& SetAttr(const char* strAttr, const char* strVal);
|
TXmlItem& SetAttr(const char* strAttr, const char* strVal);
|
||||||
const TString& GetAttr(const char* strAttr) const;
|
const TString& GetAttr(const char* strAttr) const;
|
||||||
|
TXmlItem& SetAttr(const char* strAttr, int n);
|
||||||
|
int GetIntAttr(const char* strAttr) const;
|
||||||
TXmlItem& SetAttr(const char* strAttr, bool yes);
|
TXmlItem& SetAttr(const char* strAttr, bool yes);
|
||||||
bool GetBoolAttr(const char* strAttr) const;
|
bool GetBoolAttr(const char* strAttr) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user