diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-07-03 10:19:30 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-07-03 10:19:30 +0200 |
commit | a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (patch) | |
tree | e469179df67a0e0db49161a43cbf8076a189f6f4 /app/bin/dlayer.h | |
parent | 5d2c2b27a6323e2666378b986129b2a7c2c39e5c (diff) |
New upstream version 5.3.0GAupstream/5.3.0GAupstream
Diffstat (limited to 'app/bin/dlayer.h')
-rw-r--r-- | app/bin/dlayer.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/app/bin/dlayer.h b/app/bin/dlayer.h new file mode 100644 index 0000000..bc67063 --- /dev/null +++ b/app/bin/dlayer.h @@ -0,0 +1,69 @@ + +/** \file dlayer.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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef DLAYER_H +#define DLAYER_H + +#include "common.h" +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 GetLayerUseDefault( unsigned int ); +SCALEINX_T GetLayerScale( unsigned int ); +BOOL_T GetLayerUseColor( unsigned int); +BOOL_T GetLayerVisible( unsigned int ); +void FlipLayer( void * layerVP ); +BOOL_T GetLayerFrozen( unsigned int ); +BOOL_T GetLayerOnMap( unsigned int ); +BOOL_T GetLayerModule( unsigned int ); +BOOL_T GetLayerHidden( unsigned int); +tieData_t GetLayerTieData( unsigned int ); +DIST_T GetLayerMinTrackRadius( unsigned int layer ); +ANGLE_T GetLayerMaxTrackGrade( unsigned int layer ); +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); +// void UpdateLayerLists( void ); +void DefaultLayerProperties(void); +void UpdateLayerDlg( unsigned int ); +void ResetLayers( void ); +void SaveLayers( void ); +void RestoreLayers( void ); +void LoadLayerLists( void ); +addButtonCallBack_t InitLayersDialog( void ); +addButtonCallBack_t InitDrawOrderDialog( void ); +void FillLayerList(wList_p layerList); + +void LayerAllDefaults(); +void LayerSetCounts(); +int FindUnusedLayer(unsigned int start); +void DecrementLayerObjects(unsigned int index); +void IncrementLayerObjects(unsigned int index); + + +#endif |