]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/dialogs/dialogs-gtk.h
Wrap GTK
[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 <gtk/gtk.h>
24 #include "qerplugin.h"
25
26 struct BuildStairsRS {
27         char mainTexture[256];
28         char riserTexture[256];
29         int direction;
30         int style;
31         int stairHeight;
32         bool bUseDetail;
33 };
34
35 struct ResetTextureRS {
36         int bResetTextureName;
37         char textureName[256];
38         char newTextureName[256];
39
40         int bResetScale[2];
41         float fScale[2];
42
43         int bResetShift[2];
44         float fShift[2];
45
46         int bResetRotation;
47         int rotation;
48 };
49
50 struct TrainThingRS {
51         float fRadiusX, fRadiusY;
52         float fStartAngle, fEndAngle;
53         int iNumPoints;
54         float fStartHeight, fEndHeight;
55 };
56
57 struct IntersectRS {
58         int nBrushOptions;
59         bool bUseDetail;
60         bool bDuplicateOnly;
61 };
62
63 struct PolygonRS {
64         bool bUseBorder;
65         bool bInverse;
66         bool bAlignTop;
67         int nSides;
68         int nBorderWidth;
69 };
70
71 struct DoorRS {
72         char mainTexture[256];
73         char trimTexture[256];
74         bool bScaleMainH;
75         bool bScaleMainV;
76         bool bScaleTrimH;
77         bool bScaleTrimV;
78         int nOrientation;
79 };
80
81 struct PathPlotterRS {
82         int nPoints;
83         float fMultiplier;
84         float fGravity;
85         bool bNoUpdate;
86         bool bShowExtra;
87 };
88
89 struct MakeChainRS {
90         char linkName[256];
91         int linkNum;
92 };
93
94 typedef struct _GtkWidget GtkWidget;
95
96 struct TwinWidget {
97         GtkWidget* one;
98         GtkComboBox* two;
99 };
100
101 EMessageBoxReturn DoMessageBox( const char* lpText, const char* lpCaption, EMessageBoxType type );
102 EMessageBoxReturn DoIntersectBox( IntersectRS* rs );
103 EMessageBoxReturn DoPolygonBox( PolygonRS* rs );
104 EMessageBoxReturn DoResetTextureBox( ResetTextureRS* rs );
105 EMessageBoxReturn DoBuildStairsBox( BuildStairsRS* rs );
106 EMessageBoxReturn DoDoorsBox( DoorRS* rs );
107 EMessageBoxReturn DoPathPlotterBox( PathPlotterRS* rs );
108 EMessageBoxReturn DoCTFColourChangeBox();
109 EMessageBoxReturn DoTrainThingBox( TrainThingRS* rs );
110 EMessageBoxReturn DoMakeChainBox( MakeChainRS* rs );
111 //GtkWidget* GetProgressWindow(char* title, GtkProgressBar* feedback);
112
113 #endif