]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/dialogs/dialogs-gtk.h
Merge remote-tracking branch 'ttimo/master'
[xonotic/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 struct MakeChainRS {
89         char linkName[256];
90         int linkNum;
91 };
92
93 typedef struct _GtkWidget GtkWidget;
94
95 struct TwinWidget {
96         GtkWidget* one;
97         GtkWidget* two;
98 };
99
100 EMessageBoxReturn DoMessageBox( const char* lpText, const char* lpCaption, EMessageBoxType type );
101 EMessageBoxReturn DoIntersectBox( IntersectRS* rs );
102 EMessageBoxReturn DoPolygonBox( PolygonRS* rs );
103 EMessageBoxReturn DoResetTextureBox( ResetTextureRS* rs );
104 EMessageBoxReturn DoBuildStairsBox( BuildStairsRS* rs );
105 EMessageBoxReturn DoDoorsBox( DoorRS* rs );
106 EMessageBoxReturn DoPathPlotterBox( PathPlotterRS* rs );
107 EMessageBoxReturn DoCTFColourChangeBox();
108 EMessageBoxReturn DoTrainThingBox( TrainThingRS* rs );
109 EMessageBoxReturn DoMakeChainBox( MakeChainRS* rs );
110 //GtkWidget* GetProgressWindow(char* title, GtkProgressBar* feedback);
111
112 #endif