Risolti conflitti
git-svn-id: svn://10.65.10.50/trunk@6591 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									6b07980878
								
							
						
					
					
						commit
						f49f7f1f84
					
				@ -16,21 +16,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include <bagn002.h>
 | 
					#include <bagn002.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<<<<<<< applicat.cpp
 | 
					 | 
				
			||||||
=======
 | 
					 | 
				
			||||||
// #define  BITTEST(w,p) (((w) & (0x0001 << (p))) != 0)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
>>>>>>> 1.90.2.4
 | 
					 | 
				
			||||||
///////////////////////////////////////////////////////////
 | 
					///////////////////////////////////////////////////////////
 | 
				
			||||||
// Metodi di accesso globali all'applicazione corrente
 | 
					// Metodi di accesso globali all'applicazione corrente
 | 
				
			||||||
///////////////////////////////////////////////////////////
 | 
					///////////////////////////////////////////////////////////
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HIDDEN TApplication* _application = NULL;
 | 
					HIDDEN TApplication* _application = NULL;
 | 
				
			||||||
<<<<<<< applicat.cpp
 | 
					 | 
				
			||||||
HIDDEN bool _xvt_running = FALSE;
 | 
					HIDDEN bool _xvt_running = FALSE;
 | 
				
			||||||
=======
 | 
					 | 
				
			||||||
HIDDEN BOOL _xvt_running = FALSE;
 | 
					 | 
				
			||||||
>>>>>>> 1.90.2.4
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
// @doc EXTERNAL
 | 
					// @doc EXTERNAL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -572,18 +563,8 @@ void TApplication::run(
 | 
				
			|||||||
    _name = cmd2name(argv[0]);
 | 
					    _name = cmd2name(argv[0]);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
<<<<<<< applicat.cpp
 | 
					 | 
				
			||||||
  const int sn = get_serial_number();
 | 
					  const int sn = get_serial_number();
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
=======
 | 
					 | 
				
			||||||
  if (use_files())
 | 
					 | 
				
			||||||
    init_global_vars();
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    CGetPref();           
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  const int sn = get_serial_number();
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
>>>>>>> 1.90.2.4
 | 
					 | 
				
			||||||
  if (sn < 0)  
 | 
					  if (sn < 0)  
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    error_box("Probabilmente non e' stata inserita la chiave di protezione");
 | 
					    error_box("Probabilmente non e' stata inserita la chiave di protezione");
 | 
				
			||||||
@ -637,13 +618,8 @@ bool TApplication::get_version_info(int& year, int& release, int& tag, int& patc
 | 
				
			|||||||
// About box: risposta alla opzione Informazioni del menu File
 | 
					// About box: risposta alla opzione Informazioni del menu File
 | 
				
			||||||
void TApplication::about() const
 | 
					void TApplication::about() const
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
<<<<<<< applicat.cpp
 | 
					 | 
				
			||||||
  const TFilename n(argv(0));
 | 
					  const TFilename n(argv(0));
 | 
				
			||||||
  const word ser_no = dongle().number();
 | 
					  const word ser_no = dongle().number();
 | 
				
			||||||
=======
 | 
					 | 
				
			||||||
  const TFilename n(__argv[0]);
 | 
					 | 
				
			||||||
  const word ser_no = dongle().number();
 | 
					 | 
				
			||||||
>>>>>>> 1.90.2.4
 | 
					 | 
				
			||||||
  int year, release, tag, patch;
 | 
					  int year, release, tag, patch;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (get_version_info(year, release, tag, patch))
 | 
					  if (get_version_info(year, release, tag, patch))
 | 
				
			||||||
 | 
				
			|||||||
@ -155,7 +155,7 @@ bool sorry_box(
 | 
				
			|||||||
// @doc EXTERNAL
 | 
					// @doc EXTERNAL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// @msg yesno_box | Crea una finestra di RICHIESTA con il relativo messaggio
 | 
					// @msg yesno_box | Crea una finestra di RICHIESTA con il relativo messaggio
 | 
				
			||||||
int noyes_box(
 | 
					bool noyes_box(
 | 
				
			||||||
  const char* fmt,   // @parm Messaggio da stampare nella finestra
 | 
					  const char* fmt,   // @parm Messaggio da stampare nella finestra
 | 
				
			||||||
  ...)               // @parmvar Uno o piu' parametri corrispondenti ai codici in <p fmt>
 | 
					  ...)               // @parmvar Uno o piu' parametri corrispondenti ai codici in <p fmt>
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -171,7 +171,7 @@ int noyes_box(
 | 
				
			|||||||
  if (r == RESP_DEFAULT) r = K_NO;
 | 
					  if (r == RESP_DEFAULT) r = K_NO;
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    if (r == RESP_2) r = K_YES;
 | 
					    if (r == RESP_2) r = K_YES;
 | 
				
			||||||
  return r;
 | 
					  return r == K_YES;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -179,7 +179,7 @@ int noyes_box(
 | 
				
			|||||||
// @doc EXTERNAL
 | 
					// @doc EXTERNAL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// @msg yesno_box | Crea una finestra di RICHIESTA con il relativo messaggio
 | 
					// @msg yesno_box | Crea una finestra di RICHIESTA con il relativo messaggio
 | 
				
			||||||
int yesno_box(
 | 
					bool yesno_box(
 | 
				
			||||||
  const char* fmt,   // @parm Messaggio da stampare nella finestra
 | 
					  const char* fmt,   // @parm Messaggio da stampare nella finestra
 | 
				
			||||||
  ...)                           // @parmvar Uno o piu' parametri corrispondenti ai codici in <p fmt>
 | 
					  ...)                           // @parmvar Uno o piu' parametri corrispondenti ai codici in <p fmt>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -206,18 +206,6 @@ int yesno_box(
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
bool noyes_box(const char* fmt, ...)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  buildmsg();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  MessageBeep(MB_ICONQUESTION);
 | 
					 | 
				
			||||||
  int r = MessageBox(GetFocus(), msg, "RICHIESTA",
 | 
					 | 
				
			||||||
                     MB_YESNO | MB_ICONQUESTION | MB_DEFBUTTON2);
 | 
					 | 
				
			||||||
  return r == IDYES;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// @doc EXTERNAL
 | 
					// @doc EXTERNAL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// @msg yesnofatal_box | Crea una finestra di RICHIESTA con il relativo
 | 
					// @msg yesnofatal_box | Crea una finestra di RICHIESTA con il relativo
 | 
				
			||||||
@ -242,7 +230,7 @@ bool yesnofatal_box(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#ifdef DBG  
 | 
					#ifdef DBG  
 | 
				
			||||||
  char s[256]; sprintf(s, "%s\nContinuare ugualmente?", msg);
 | 
					  char s[256]; sprintf(s, "%s\nContinuare ugualmente?", msg);
 | 
				
			||||||
  const int ret = yesno_box("%s", s);
 | 
					  const bool ret = yesno_box("%s", s);
 | 
				
			||||||
  if (!ret) fatal_box(msg);
 | 
					  if (!ret) fatal_box(msg);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
  fatal_box("%s", msg);
 | 
					  fatal_box("%s", msg);
 | 
				
			||||||
 | 
				
			|||||||
@ -8,13 +8,13 @@
 | 
				
			|||||||
#ifdef __cplusplus
 | 
					#ifdef __cplusplus
 | 
				
			||||||
extern "C" {
 | 
					extern "C" {
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
  int message_box(const char* fmt, ...);
 | 
					  bool message_box(const char* fmt, ...);
 | 
				
			||||||
  int warning_box(const char* fmt, ...);
 | 
					  bool warning_box(const char* fmt, ...);
 | 
				
			||||||
  int sorry_box(const char* fmt, ...);
 | 
					  bool sorry_box(const char* fmt, ...);
 | 
				
			||||||
  int error_box(const char* fmt, ...);
 | 
					  bool error_box(const char* fmt, ...);
 | 
				
			||||||
  int fatal_box(const char* fmt, ...);
 | 
					  bool fatal_box(const char* fmt, ...);
 | 
				
			||||||
  int noyes_box(const char* fmt, ...);
 | 
					  bool noyes_box(const char* fmt, ...);
 | 
				
			||||||
  int yesno_box(const char* fmt, ...);
 | 
					  bool yesno_box(const char* fmt, ...);
 | 
				
			||||||
  int yesnocancel_box(const char* fmt, ...);
 | 
					  int yesnocancel_box(const char* fmt, ...);
 | 
				
			||||||
  bool yesnofatal_box(const char* fmt, ...);
 | 
					  bool yesnofatal_box(const char* fmt, ...);
 | 
				
			||||||
  bool __trace(const char* fmt, ...);
 | 
					  bool __trace(const char* fmt, ...);
 | 
				
			||||||
 | 
				
			|||||||
@ -583,10 +583,6 @@ int TConfig::list_paragraphs(TString_array& pl)
 | 
				
			|||||||
  return pl.items();
 | 
					  return pl.items();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<<<<<<< config.cpp
 | 
					 | 
				
			||||||
int TConfig::list_variables(TString_array& vl, bool value, const char* section)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
=======
 | 
					 | 
				
			||||||
HIDDEN int compare_ini_variables(const TObject**o1, const TObject**o2)
 | 
					HIDDEN int compare_ini_variables(const TObject**o1, const TObject**o2)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  const TString* s1 = (const TString*)*o1;
 | 
					  const TString* s1 = (const TString*)*o1;
 | 
				
			||||||
@ -618,7 +614,6 @@ HIDDEN int compare_ini_variables(const TObject**o1, const TObject**o2)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
int TConfig::list_variables(TString_array& vl, bool value, const char* section, const bool sort)
 | 
					int TConfig::list_variables(TString_array& vl, bool value, const char* section, const bool sort)
 | 
				
			||||||
{              
 | 
					{              
 | 
				
			||||||
>>>>>>> 1.54.2.5
 | 
					 | 
				
			||||||
  set_paragraph(section);
 | 
					  set_paragraph(section);
 | 
				
			||||||
  vl.destroy();
 | 
					  vl.destroy();
 | 
				
			||||||
  _data.restart();
 | 
					  _data.restart();
 | 
				
			||||||
 | 
				
			|||||||
@ -84,19 +84,11 @@ KEY TControl::xiev_to_key(const XI_EVENT* xiev)
 | 
				
			|||||||
  KEY key = k;
 | 
					  KEY key = k;
 | 
				
			||||||
  if (key < K_INS || key > K_HELP)
 | 
					  if (key < K_INS || key > K_HELP)
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
<<<<<<< controls.cpp
 | 
					 | 
				
			||||||
    if (xiev->v.chr.shift && (k < ' ' || k >= K_UP)) key += K_SHIFT;
 | 
					 | 
				
			||||||
//    if (xiev->v.chr.control && k >= ' ') key += K_CTRL;
 | 
					 | 
				
			||||||
//  Correzione per gestire i tasti AltGr sulle tastiere non U.S.A.     
 | 
					 | 
				
			||||||
    if (xiev->v.chr.control && ((k >= K_F1 && k <= K_F12) || isalnum(k) || strchr("\r+-*/", k))) 
 | 
					 | 
				
			||||||
      key += K_CTRL;
 | 
					 | 
				
			||||||
=======
 | 
					 | 
				
			||||||
    if (xiev->v.chr.shift && (k < ' ' || k >= K_UP)) key += K_SHIFT;
 | 
					    if (xiev->v.chr.shift && (k < ' ' || k >= K_UP)) key += K_SHIFT;
 | 
				
			||||||
    //if (xiev->v.chr.control && k >= ' ') key += K_CTRL;
 | 
					    //if (xiev->v.chr.control && k >= ' ') key += K_CTRL;
 | 
				
			||||||
//  Correzione per gestire i tasti AltGr sulle tastiere non U.S.A.     
 | 
					//  Correzione per gestire i tasti AltGr sulle tastiere non U.S.A.     
 | 
				
			||||||
    if (xiev->v.chr.control && (k > K_SHIFT || (k >= K_F1 && k <= K_F12) || isalnum(k) || strchr("\r+-*/",k) != NULL)) 
 | 
					    if (xiev->v.chr.control && (k > K_SHIFT || (k >= K_F1 && k <= K_F12) || isalnum(k) || strchr("\r+-*/",k) != NULL)) 
 | 
				
			||||||
      key += K_CTRL;
 | 
					      key += K_CTRL;
 | 
				
			||||||
>>>>>>> 1.99.2.1
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  return key;
 | 
					  return key;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -452,17 +444,11 @@ WINDOW create_interface(WINDOW parent, short x, short y, short dx, short dy,
 | 
				
			|||||||
  def->v.itf->tab_on_enter = TRUE;
 | 
					  def->v.itf->tab_on_enter = TRUE;
 | 
				
			||||||
  def->v.itf->win = win;
 | 
					  def->v.itf->win = win;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<<<<<<< controls.cpp
 | 
					 | 
				
			||||||
  def->v.itf->edit_menu = TRUE;      // Update edit menu items
 | 
					 | 
				
			||||||
  def->v.itf->menu_win = TASK_WIN;   // Window that owns the menu
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
=======
 | 
					 | 
				
			||||||
#ifdef XI_R4
 | 
					#ifdef XI_R4
 | 
				
			||||||
  def->v.itf->edit_menu = TRUE;      // Update edit menu items
 | 
					  def->v.itf->edit_menu = TRUE;      // Update edit menu items
 | 
				
			||||||
  def->v.itf->menu_win = TASK_WIN;   // Window that owns the menu
 | 
					  def->v.itf->menu_win = TASK_WIN;   // Window that owns the menu
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
>>>>>>> 1.99.2.1
 | 
					 | 
				
			||||||
  XI_OBJ* itf = xi_create(NULL, def);
 | 
					  XI_OBJ* itf = xi_create(NULL, def);
 | 
				
			||||||
  CHECK(itf, "Can't create an interface");
 | 
					  CHECK(itf, "Can't create an interface");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -9,6 +9,7 @@
 | 
				
			|||||||
#include <progind.h>
 | 
					#include <progind.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <codeb.h>
 | 
				
			||||||
#include <config.h>
 | 
					#include <config.h>
 | 
				
			||||||
#include <extcdecl.h>
 | 
					#include <extcdecl.h>
 | 
				
			||||||
#include <mailbox.h>                
 | 
					#include <mailbox.h>                
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user