From d1a8285f818eb7e5c3d6a05709ea21a808490b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 19 Mar 2018 19:55:58 +0100 Subject: New upstream version 5.1.0 --- app/bin/misc2.h | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'app/bin/misc2.h') diff --git a/app/bin/misc2.h b/app/bin/misc2.h index 86b466c..d616ad8 100644 --- a/app/bin/misc2.h +++ b/app/bin/misc2.h @@ -1,5 +1,5 @@ -/* - * $Header: /home/dmarkle/xtrkcad-fork-cvs/xtrkcad/app/bin/misc2.h,v 1.7 2008-01-04 02:12:33 tshead Exp $ +/** \file misc2.h + * */ /* XTrkCad - Model Railroad CAD @@ -23,9 +23,9 @@ #ifndef MISC2_H #define MISC2_H -#ifdef WINDOWS -#include -#endif +#include "common.h" +#include "misc.h" +#include "time.h" #define LABEL_MANUF (1<<0) #define LABEL_PARTNO (1<<1) @@ -76,27 +76,25 @@ void GetScaleEasementValues( DIST_T *, DIST_T * ); tieData_p GetScaleTieData( SCALEINX_T ); SCALEINX_T LookupScale( const char * ); BOOL_T GetScaleGauge( SCALEINX_T scaleInx, SCALEDESCINX_T *scaleDescInx, GAUGEINX_T *gaugeInx); - +void SetScaleGauge(SCALEDESCINX_T desc, GAUGEINX_T gauge); BOOL_T DoSetScale( char * ); -static void SetScale( SCALEINX_T ); -void SetScaleGauge( SCALEDESCINX_T, GAUGEINX_T ); void ScaleLengthIncrement( SCALEINX_T, DIST_T ); void LoadScaleList( wList_p ); void LoadGaugeList( wList_p, SCALEDESCINX_T ); BOOL_T CompatibleScale( BOOL_T, SCALEINX_T, SCALEINX_T ); BOOL_T DoSetScaleDesc( void ); -typedef int LAYER_T; -LAYER_T curLayer; + +unsigned int curLayer; long layerCount; -wDrawColor GetLayerColor( LAYER_T ); -BOOL_T GetLayerVisible( LAYER_T ); -BOOL_T GetLayerFrozen( LAYER_T ); -BOOL_T GetLayerOnMap( LAYER_T ); -char * GetLayerName( LAYER_T ); +wDrawColor GetLayerColor( unsigned int ); +BOOL_T GetLayerVisible( unsigned int ); +BOOL_T GetLayerFrozen( unsigned int ); +BOOL_T GetLayerOnMap( unsigned int ); +char * GetLayerName( unsigned int ); BOOL_T ReadLayers( char * ); BOOL_T WriteLayers( FILE * ); - +char * FormatLayerName(unsigned int layerNumber); /* dlayers.c */ void UpdateLayerLists( void ); void DefaultLayerProperties(void); -- cgit v1.2.3