Skip to content

Commit 65c8c38

Browse files
committed
Stuff for GUIEditor
1 parent 4de09ac commit 65c8c38

18 files changed

+1196
-3684
lines changed

Editor/GUIEditorLib.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
#ifndef _GUIEDITORLIB_
22
#define _GUIEDITORLIB_
33

4-
5-
//////////////////////////////////////////////////////////////////////////////////////////
6-
// File: GUIEditorLib.h
7-
//////////////////////////////////////////////////////////////////////////////////////////
8-
// Description: GUI Editor Library Functions
9-
// Project: GUI Library
10-
// Author(s): Jason Boettcher
11-
12-
13-
14-
#include <string>
154
using namespace std;
165

176

Main.cpp

Lines changed: 2 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,19 @@
11

22
//////////////////////////////////////////////////////////////////////////////////////////
3-
// File: main.h
4-
//////////////////////////////////////////////////////////////////////////////////////////
5-
// Description: Header file for test application
6-
// Project: GUI Library
7-
// Author(s): Jason Boettcher
8-
9-
// www.shplorb.com/~jackal
10-
11-
/*
12-
//////////////////////////////////////////////////////////////////////////////////////////
13-
// Method: InitApp
14-
//////////////////////////////////////////////////////////////////////////////////////////
15-
// Description: Initialize the application
16-
bool InitApp(HINSTANCE hInst, int nCmdShow);
17-
18-
19-
20-
//////////////////////////////////////////////////////////////////////////////////////////
21-
// Method: WinProc
22-
//////////////////////////////////////////////////////////////////////////////////////////
23-
// Description: Windows callback procedure
24-
long PASCAL WinProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
25-
26-
27-
28-
//////////////////////////////////////////////////////////////////////////////////////////
29-
// Method: UpdateApp
30-
//////////////////////////////////////////////////////////////////////////////////////////
31-
// Description: Update the application every frame
32-
void UpdateApp(void);
33-
34-
35-
//////////////////////////////////////////////////////////////////////////////////////////
36-
// Method: ProcessEditor
37-
//////////////////////////////////////////////////////////////////////////////////////////
38-
// Description: Main processing function for the editor
39-
40-
void ProcessEditor(void);
41-
42-
43-
void EDDrawControl(void);
44-
45-
RTE::GUIControl *EDCheckMouse(RTE::GUIControl *Parent);
46-
47-
void EDDrawHandle(int X, int Y);
48-
49-
void EDAdjustControl(void);
50-
51-
void EDCheckHandle(void);
52-
53-
void EDInvokeUpdate(void);
54-
55-
std::string EDGetNewControlName(std::string classname);
56-
57-
58-
//////////////////////////////////////////////////////////////////////////////////////////
59-
// Method: EDSave
60-
//////////////////////////////////////////////////////////////////////////////////////////
61-
// Description: Save the layout
62-
63-
void EDSave(void);
64-
65-
66-
//////////////////////////////////////////////////////////////////////////////////////////
67-
// Method: EDLoad
68-
//////////////////////////////////////////////////////////////////////////////////////////
69-
// Description: Load a layout
70-
71-
void EDLoad(void);
72-
73-
74-
75-
// Grab types
76-
enum {
77-
Control = 0,
78-
HandleTopLeft,
79-
HandleTop,
80-
HandleTopRight,
81-
HandleRight,
82-
HandleBottomRight,
83-
HandleBottom,
84-
HandleBottomLeft,
85-
HandleLeft,
86-
} Grab;
87-
88-
89-
// Simple editor structure
90-
typedef struct {
91-
RTE::GUIControl *FocusedControl;
92-
93-
bool GrabbedControl;
94-
int GrabX, GrabY;
95-
int GrabType;
96-
97-
int NX, NY, NX2, NY2;
98-
99-
bool Snap;
100-
int SnapGrid;
101-
102-
RTE::GUISurface *Check[2];
103-
104-
bool DirtyProperties;
105-
106-
int WorkspaceX, WorkspaceY;
107-
108-
} editor_t;
109-
*/
110-
111-
112-
113-
114-
///
115-
///
116-
/// //////////////////////////////////////////////////////////////////////////////////////////
117-
// File: Editor.cpp
3+
// File: main
1184
//////////////////////////////////////////////////////////////////////////////////////////
1195
// Description: Entry point file for the GUI Library editor
1206
// Project: GUI Library
1217
// Author(s): Jason Boettcher
1228
1239

12410

125-
126-
//////////////////////////////////////////////////////////////////////////////////////////
127-
// Inclusions of header files
128-
129-
/*#include <windows.h>
130-
#include <windowsx.h>
131-
#include <stdio.h>*/
132-
133-
13411
#include "TimerMan.h"
13512
#include "GUIEditorApp.h"
13613
#include "GUIEditorLib.h"
13714

138-
#define RECT WINDOWS_RECT
139-
14015
#include "allegro.h"
14116
#include "winalleg.h"
142-
#undef RECT
14317

14418

14519
extern "C" { FILE __iob_func[3] = { *stdin, *stdout, *stderr }; }
@@ -183,4 +57,4 @@ int main(int argc, char *argv[])
18357

18458
return 0;
18559
}
186-
END_OF_MAIN();
60+
END_OF_MAIN()

0 commit comments

Comments
 (0)