]> icculus.org git repositories - divverent/netradiant.git/blob - contrib/bobtoolz/dialogs/dialogs-gtk.h
initial
[divverent/netradiant.git] / contrib / bobtoolz / dialogs / dialogs-gtk.h
1 /*
2 BobToolz plugin for GtkRadiant
3 Copyright (C) 2001 Gordon Biggans
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19
20 #if !defined(INCLUDED_DIALOGS_GTK_H)
21 #define INCLUDED_DIALOGS_GTK_H
22
23 #include "qerplugin.h"
24
25 struct BuildStairsRS{
26         char mainTexture[256];
27         char riserTexture[256];
28         int direction;
29         int style;
30         int stairHeight;
31         bool bUseDetail;
32 };
33
34 struct ResetTextureRS {
35         int bResetTextureName;
36         char textureName[256];
37         char newTextureName[256];
38
39         int bResetScale[2];
40         float fScale[2];
41
42         int bResetShift[2];
43         float fShift[2];
44
45         int bResetRotation;
46         int rotation;
47 };
48
49 struct TrainThingRS {
50         float fRadiusX, fRadiusY;
51         float fStartAngle, fEndAngle;
52         int iNumPoints;
53         float fStartHeight, fEndHeight;
54 };
55
56 struct IntersectRS{
57         int nBrushOptions;
58         bool bUseDetail;
59         bool bDuplicateOnly;
60 };
61
62 struct PolygonRS{
63         bool bUseBorder;
64         bool bInverse;
65         bool bAlignTop;
66         int nSides;
67         int nBorderWidth;
68 };
69
70 struct DoorRS{
71         char mainTexture[256];
72         char trimTexture[256];
73         bool bScaleMainH;
74         bool bScaleMainV;
75         bool bScaleTrimH;
76         bool bScaleTrimV;
77         int nOrientation;
78 };
79
80 struct PathPlotterRS{
81         int nPoints;
82         float fMultiplier;
83         float fGravity;
84         bool bNoUpdate;
85         bool bShowExtra;
86 };
87
88 typedef struct _GtkWidget GtkWidget;
89
90 struct TwinWidget{
91         GtkWidget* one;
92         GtkWidget* two;
93 };
94
95 EMessageBoxReturn DoMessageBox(const char* lpText, const char* lpCaption, EMessageBoxType type);
96 EMessageBoxReturn DoIntersectBox(IntersectRS* rs);
97 EMessageBoxReturn DoPolygonBox(PolygonRS* rs);
98 EMessageBoxReturn DoResetTextureBox (ResetTextureRS* rs);
99 EMessageBoxReturn DoBuildStairsBox(BuildStairsRS* rs);
100 EMessageBoxReturn DoDoorsBox(DoorRS* rs);
101 EMessageBoxReturn DoPathPlotterBox(PathPlotterRS* rs);
102 EMessageBoxReturn DoCTFColourChangeBox();
103 EMessageBoxReturn DoTrainThingBox (TrainThingRS* rs);
104
105 //GtkWidget* GetProgressWindow(char* title, GtkProgressBar* feedback);
106
107 #endif