diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
commit | df5520aa2dae5b3ce7abf8733dcdd152898af163 (patch) | |
tree | 00d3047bfb14f682bfb5a21010c731ed649bfed7 /app/bin/misc2.h | |
parent | df247efec654e512242e4f4f1b0212034f9e01fe (diff) | |
parent | ec3c0f6f6e7153fa797dc57a0e95779cbc63a23b (diff) |
Merge branch 'release/debian/1_5.3.0GA-1'debian/1_5.3.0GA-1
Diffstat (limited to 'app/bin/misc2.h')
-rw-r--r-- | app/bin/misc2.h | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/app/bin/misc2.h b/app/bin/misc2.h deleted file mode 100644 index 966f75b..0000000 --- a/app/bin/misc2.h +++ /dev/null @@ -1,115 +0,0 @@ -/** \file misc2.h - * - */ - -/* XTrkCad - Model Railroad CAD - * Copyright (C) 2005 Dave Bullis - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#ifndef MISC2_H -#define MISC2_H - -#include "common.h" -#include "misc.h" -#include "time.h" - -#define LABEL_MANUF (1<<0) -#define LABEL_PARTNO (1<<1) -#define LABEL_DESCR (1<<2) -#define LABEL_COST (1<<7) -#define LABEL_FLIPPED (1<<8) -#define LABEL_TABBED (1<<9) -#define LABEL_UNGROUPED (1<<10) -#define LABEL_SPLIT (1<<11) - -typedef struct { - char * name; - int level; - } logTable_t; -extern dynArr_t logTable_da; -#define logTable(N) DYNARR_N( logTable_t, logTable_da, N ) -extern time_t logClock; -void LogOpen( char * ); -void LogClose( void ); -void LogSet( char *, int ); -int LogFindIndex( char * ); -void LogPrintf( char *, ... ); -#define LOG( DBINX, DBLVL, DBMSG ) \ - if ( DBINX > 0 && logTable( DBINX ).level >= DBLVL ) { \ - LogPrintf DBMSG ; \ - } -#define LOG1( DBINX, DBMSG ) LOG( DBINX, 1, DBMSG ) -#define LOGNAME( DBNAME, DBMSG ) LOG( LogFindIndex( DBNAME ), DBMSG ) - -#define lprintf LogPrintf -void Rdump( FILE * ); -void Rprintf( char *, ... ); - -typedef struct { - DIST_T length; - DIST_T width; - DIST_T spacing; - } tieData_t, *tieData_p; -DIST_T GetScaleTrackGauge( SCALEINX_T ); -DIST_T GetScaleRatio( SCALEINX_T ); -DIST_T GetScaleDescRatio( SCALEDESCINX_T sdi ); -char * GetScaleName( SCALEINX_T ); -SCALEINX_T GetScaleInx( SCALEDESCINX_T scaleInx, GAUGEINX_T gaugeInx ); - -char *GetScaleDesc( SCALEDESCINX_T inx ); -char *GetGaugeDesc( SCALEDESCINX_T scaleInx, GAUGEINX_T gaugeInx ); -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 * ); - -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 ); - -extern unsigned int curLayer; -extern long layerCount; -void SetCurrLayer(wIndex_t inx, const char * name, wIndex_t op, - void * listContext, void * arg); -wDrawColor GetLayerColor( unsigned int ); -BOOL_T GetLayerUseColor( unsigned int); -BOOL_T GetLayerVisible( unsigned int ); -BOOL_T GetLayerFrozen( unsigned int ); -BOOL_T GetLayerOnMap( unsigned int ); -BOOL_T GetLayerModule( unsigned int ); -void SetLayerModule(unsigned int, BOOL_T); -char * GetLayerName( unsigned int ); -void SetLayerName(unsigned int layer, char* name); -BOOL_T ReadLayers( char * ); -BOOL_T WriteLayers( FILE * ); -char * FormatLayerName(unsigned int layerNumber); -/* dlayers.c */ -void UpdateLayerLists( void ); -void DefaultLayerProperties(void); -void ResetLayers( void ); -void SaveLayers( void ); -void RestoreLayers( void ); -void LoadLayerLists( void ); -addButtonCallBack_t InitLayersDialog( void ); -void FillLayerList(wList_p layerList); -void Misc2Init( void ); - -#endif |