Skip to content

Commit

Permalink
Engine: removed excessive header guidialoginternaldefs.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Oct 16, 2023
1 parent 5ec52ba commit 55c81e9
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 60 deletions.
1 change: 0 additions & 1 deletion Engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ target_sources(engine
gui/guidialog.cpp
gui/guidialog.h
gui/guidialogdefines.h
gui/guidialoginternaldefs.h
gui/mycontrols.h
gui/mylabel.cpp
gui/mylabel.h
Expand Down
2 changes: 1 addition & 1 deletion Engine/gui/cscidialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef __AGS_EE_GUI__CSCIDIALOG_H
#define __AGS_EE_GUI__CSCIDIALOG_H

#include "gui/guidialoginternaldefs.h"
#include "gui/guidialogdefines.h"

int CSCIGetVersion();
int CSCIDrawWindow(int xx, int yy, int wid, int hit);
Expand Down
3 changes: 2 additions & 1 deletion Engine/gui/guidialogdefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//=============================================================================
//
//
// Constants for built-in GUI dialogs.
//
//=============================================================================
#ifndef __AGS_EE_GUI__GUIDIALOGDEFINES_H
Expand All @@ -32,6 +32,7 @@
#define MSG_QUITDIALOG 995 // "Do you want to quit?"

#include "ac/gamesetup.h"
#define TEXT_HT usetup.textheight

/*#define COL251 26
#define COL252 28
Expand Down
30 changes: 0 additions & 30 deletions Engine/gui/guidialoginternaldefs.h

This file was deleted.

6 changes: 2 additions & 4 deletions Engine/gui/mylabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
// http://www.opensource.org/licenses/artistic-license-2.0.php
//
//=============================================================================

#include "gui/mylabel.h"
#include <string.h>
#include "ac/display.h"
#include "ac/gamesetup.h"
#include "ac/string.h"
#include "font/fonts.h"
#include "gui/guidefines.h"
#include "gui/mylabel.h"
#include "gui/guidialoginternaldefs.h"
#include "gui/guidialogdefines.h"

using namespace Common;

Expand Down
6 changes: 3 additions & 3 deletions Engine/gui/mylistbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
// http://www.opensource.org/licenses/artistic-license-2.0.php
//
//=============================================================================
#include "gui/mylistbox.h"
#include <string.h>
#include "ac/common.h"
#include "ac/gamesetup.h"
#include "ac/keycode.h"
#include "font/fonts.h"
#include "gfx/bitmap.h"
#include "gui/guidialog.h"
#include "gui/guidialoginternaldefs.h"
#include "gui/mylistbox.h"
#include "gui/guidialogdefines.h"

using AGS::Common::Bitmap;
using namespace AGS::Common;

extern int numcurso, hotx, hoty;

Expand Down
10 changes: 5 additions & 5 deletions Engine/gui/mypushbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
// http://www.opensource.org/licenses/artistic-license-2.0.php
//
//=============================================================================
#include "gui/mypushbutton.h"
#include <string.h>
#include "ac/common.h"
#include "ac/sys_events.h"
#include "ac/timer.h"
#include "font/fonts.h"
#include "gui/mypushbutton.h"
#include "gfx/bitmap.h"
#include "gui/guidialog.h"
#include "gui/guidialoginternaldefs.h"
#include "gui/guidialogdefines.h"
#include "main/game_run.h"
#include "gfx/bitmap.h"
#include "platform/base/agsplatformdriver.h"
#include "ac/timer.h"

using AGS::Common::Bitmap;
using namespace AGS::Common;

extern int windowbackgroundcolor, pushbuttondarkcolor;
extern int pushbuttonlightcolor;
Expand Down
6 changes: 3 additions & 3 deletions Engine/gui/mytextbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
// http://www.opensource.org/licenses/artistic-license-2.0.php
//
//=============================================================================
#include "gui/mytextbox.h"
#include <stdio.h>
#include <string.h>
#include "ac/keycode.h"
#include "font/fonts.h"
#include "gui/mytextbox.h"
#include "gui/guidialoginternaldefs.h"
#include "gfx/bitmap.h"
#include "gui/guidialogdefines.h"

using AGS::Common::Bitmap;
using namespace AGS::Common;

extern int windowbackgroundcolor;
extern int cbuttfont;
Expand Down
3 changes: 1 addition & 2 deletions Engine/gui/newcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
// http://www.opensource.org/licenses/artistic-license-2.0.php
//
//=============================================================================

#include "gui/newcontrol.h"
#include "gui/guidialog.h"
#include "gui/guidialoginternaldefs.h"
#include "gui/guidialogdefines.h"

extern int topwindowhandle;

Expand Down
4 changes: 0 additions & 4 deletions OSX/xcode/AGSKit/AGSKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,6 @@
526F27D51D3B5CC300EF4E1F /* guidialog.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 526F25581D3B5CC300EF4E1F /* guidialog.cpp */; };
526F27D61D3B5CC300EF4E1F /* guidialog.h in Headers */ = {isa = PBXBuildFile; fileRef = 526F25591D3B5CC300EF4E1F /* guidialog.h */; };
526F27D71D3B5CC300EF4E1F /* guidialogdefines.h in Headers */ = {isa = PBXBuildFile; fileRef = 526F255A1D3B5CC300EF4E1F /* guidialogdefines.h */; };
526F27D81D3B5CC300EF4E1F /* guidialoginternaldefs.h in Headers */ = {isa = PBXBuildFile; fileRef = 526F255B1D3B5CC300EF4E1F /* guidialoginternaldefs.h */; };
526F27D91D3B5CC300EF4E1F /* mycontrols.h in Headers */ = {isa = PBXBuildFile; fileRef = 526F255C1D3B5CC300EF4E1F /* mycontrols.h */; };
526F27DA1D3B5CC300EF4E1F /* mylabel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 526F255D1D3B5CC300EF4E1F /* mylabel.cpp */; };
526F27DB1D3B5CC300EF4E1F /* mylabel.h in Headers */ = {isa = PBXBuildFile; fileRef = 526F255E1D3B5CC300EF4E1F /* mylabel.h */; };
Expand Down Expand Up @@ -1776,7 +1775,6 @@
526F25581D3B5CC300EF4E1F /* guidialog.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = guidialog.cpp; sourceTree = "<group>"; };
526F25591D3B5CC300EF4E1F /* guidialog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = guidialog.h; sourceTree = "<group>"; };
526F255A1D3B5CC300EF4E1F /* guidialogdefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = guidialogdefines.h; sourceTree = "<group>"; };
526F255B1D3B5CC300EF4E1F /* guidialoginternaldefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = guidialoginternaldefs.h; sourceTree = "<group>"; };
526F255C1D3B5CC300EF4E1F /* mycontrols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mycontrols.h; sourceTree = "<group>"; };
526F255D1D3B5CC300EF4E1F /* mylabel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mylabel.cpp; sourceTree = "<group>"; };
526F255E1D3B5CC300EF4E1F /* mylabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mylabel.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3253,7 +3251,6 @@
526F25581D3B5CC300EF4E1F /* guidialog.cpp */,
526F25591D3B5CC300EF4E1F /* guidialog.h */,
526F255A1D3B5CC300EF4E1F /* guidialogdefines.h */,
526F255B1D3B5CC300EF4E1F /* guidialoginternaldefs.h */,
526F255C1D3B5CC300EF4E1F /* mycontrols.h */,
526F255D1D3B5CC300EF4E1F /* mylabel.cpp */,
526F255E1D3B5CC300EF4E1F /* mylabel.h */,
Expand Down Expand Up @@ -3909,7 +3906,6 @@
526F22EC1D3B5C4900EF4E1F /* guislider.h in Headers */,
526F22EF1D3B5C4900EF4E1F /* aastr.h in Headers */,
205229A028E8EBA900589E91 /* debugmanager.h in Headers */,
526F27D81D3B5CC300EF4E1F /* guidialoginternaldefs.h in Headers */,
526F27DF1D3B5CC300EF4E1F /* mypushbutton.h in Headers */,
20E67DB328F1BDE000B95C00 /* system.h in Headers */,
526F23131D3B5C4900EF4E1F /* vorbisenc.h in Headers */,
Expand Down
1 change: 0 additions & 1 deletion Solutions/Engine.App/Engine.App.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,6 @@
<ClInclude Include="..\..\Engine\gui\gui.h" />
<ClInclude Include="..\..\Engine\gui\guidialog.h" />
<ClInclude Include="..\..\Engine\gui\guidialogdefines.h" />
<ClInclude Include="..\..\Engine\gui\guidialoginternaldefs.h" />
<ClInclude Include="..\..\Engine\gui\mycontrols.h" />
<ClInclude Include="..\..\Engine\gui\mylabel.h" />
<ClInclude Include="..\..\Engine\gui\mylistbox.h" />
Expand Down
3 changes: 0 additions & 3 deletions Solutions/Engine.App/Engine.App.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1364,9 +1364,6 @@
<ClInclude Include="..\..\Engine\gui\guidialogdefines.h">
<Filter>Header Files\gui</Filter>
</ClInclude>
<ClInclude Include="..\..\Engine\gui\guidialoginternaldefs.h">
<Filter>Header Files\gui</Filter>
</ClInclude>
<ClInclude Include="..\..\Engine\gui\mycontrols.h">
<Filter>Header Files\gui</Filter>
</ClInclude>
Expand Down
2 changes: 0 additions & 2 deletions iOS/xcode/ags/ags.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,6 @@
526F1E801D3B513400EF4E1F /* guidialog.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = guidialog.cpp; sourceTree = "<group>"; };
526F1E811D3B513400EF4E1F /* guidialog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = guidialog.h; sourceTree = "<group>"; };
526F1E821D3B513400EF4E1F /* guidialogdefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = guidialogdefines.h; sourceTree = "<group>"; };
526F1E831D3B513400EF4E1F /* guidialoginternaldefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = guidialoginternaldefs.h; sourceTree = "<group>"; };
526F1E841D3B513400EF4E1F /* mycontrols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mycontrols.h; sourceTree = "<group>"; };
526F1E851D3B513400EF4E1F /* mylabel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mylabel.cpp; sourceTree = "<group>"; };
526F1E861D3B513400EF4E1F /* mylabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mylabel.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1922,7 +1921,6 @@
526F1E801D3B513400EF4E1F /* guidialog.cpp */,
526F1E811D3B513400EF4E1F /* guidialog.h */,
526F1E821D3B513400EF4E1F /* guidialogdefines.h */,
526F1E831D3B513400EF4E1F /* guidialoginternaldefs.h */,
526F1E841D3B513400EF4E1F /* mycontrols.h */,
526F1E851D3B513400EF4E1F /* mylabel.cpp */,
526F1E861D3B513400EF4E1F /* mylabel.h */,
Expand Down

0 comments on commit 55c81e9

Please sign in to comment.