ba0.cpp Aggiunto supporto per campi 3D
ba0200a.uml Aggiunto checkbox per campi 3D git-svn-id: svn://10.65.10.50/trunk@5867 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
22328a76d7
commit
b22774b5bc
14
ba/ba0.cpp
14
ba/ba0.cpp
@ -16,8 +16,6 @@
|
||||
#include <utility.h>
|
||||
#include <urldefid.h>
|
||||
|
||||
#include <extcdecl.h> // CGetPrawinName
|
||||
|
||||
#include <nditte.h>
|
||||
|
||||
#include "ba0.h"
|
||||
@ -125,6 +123,7 @@ TColor_mask::TColor_mask()
|
||||
{
|
||||
TConfig color(CONFIG_USER, "Colors");
|
||||
_color = color.list_variables();
|
||||
set(113, color.get_bool("Campi3D"));
|
||||
|
||||
for (int f = fields()-1; f >= 0; f--)
|
||||
{
|
||||
@ -217,6 +216,7 @@ void TColor_mask::save_colors()
|
||||
TConfig colors(CONFIG_USER, "Colors");
|
||||
FOR_EACH_ASSOC_STRING(_color, obj, key, str)
|
||||
colors.set(key, str);
|
||||
colors.set("Campi3D", get_bool(113) ? "X" : "");
|
||||
}
|
||||
|
||||
COLOR TColor_mask::get_color_entry(const char* name) const
|
||||
@ -1390,7 +1390,10 @@ bool TMenu_application::check_user()
|
||||
|
||||
#if XVT_OS == XVT_OS_WIN
|
||||
if (ok && utente != "PRASSI")
|
||||
WritePrivateProfileString("Main", "User", utente, CGetPrawinName());
|
||||
{
|
||||
TConfig prawin(CONFIG_INSTALL, "Main");
|
||||
prawin.set("User", utente);
|
||||
}
|
||||
#endif
|
||||
|
||||
return ok;
|
||||
@ -1733,9 +1736,8 @@ int main(int argc, char** argv)
|
||||
|
||||
if (user().blank())
|
||||
{
|
||||
char u[16];
|
||||
GetPrivateProfileString("Main", "User", "PRASSI", u, sizeof(u), CGetPrawinName());
|
||||
user() = u;
|
||||
TConfig prawin(CONFIG_INSTALL, "Main");
|
||||
user() = prawin.get("User");
|
||||
}
|
||||
|
||||
TFilename menu = (argc < 2) ? "baprassi.men" : argv[1];
|
||||
|
@ -65,6 +65,11 @@ BEGIN
|
||||
PROMPT 36 5 "Sfondo"
|
||||
END
|
||||
|
||||
BOOLEAN 113
|
||||
BEGIN
|
||||
PROMPT 1 7 "Campi 3D"
|
||||
END
|
||||
|
||||
GROUPBOX DLG_NULL 14 5
|
||||
BEGIN
|
||||
PROMPT 35 7 "Bottone"
|
||||
|
Loading…
x
Reference in New Issue
Block a user