Günther Brammer
8039a35791
Rename CStdApp to C4AbstractApp
2011-08-27 16:20:39 +02:00
Günther Brammer
1f160083d7
editor: Do not copy and delete the scenario before saving
2011-09-28 01:10:31 +02:00
Günther Brammer
9bc61db360
copyright notices update 2011
2011-09-01 16:58:52 +02:00
Nicolas Hake
fe747db554
Clean up copyright notices
...
Use real names for copyright attribution wherever they are known,
drop duplicates
2011-09-01 12:47:54 +02:00
Günther Brammer
6e5332517d
editor: File/Save (As) again uses Game.ScenarioFile for saving ( #611 )
...
This should make it work again without having to understand what exactly
went wrong.
2011-06-24 14:25:30 +02:00
Günther Brammer
c70013b208
editor: File/Save Game As correctly preserves the Origin
2011-05-15 19:40:14 +02:00
Günther Brammer
3c943479ab
editor: File/Save creates a savegame when the original scenario was one
2011-05-15 19:38:47 +02:00
Günther Brammer
e537296829
editor: Change FileSelect abstraction to use StdStrBuf
...
Of course, windows still uses a buffer on the stack, but at least the other
versions don't.
2011-04-08 23:52:40 +02:00
Günther Brammer
b5dea20dae
Remove some dead code
2011-03-27 18:15:10 +02:00
Armin Burgmeier
2a2408f9a8
Change .c4p extension to .ocp
2011-03-13 16:39:48 +01:00
Armin Burgmeier
eaf62f71f9
Change .c4f extension to .ocf
2011-03-13 16:38:33 +01:00
Armin Burgmeier
e282bf9a9c
Change .c4s extension to .ocs
2011-03-13 16:11:55 +01:00
Günther Brammer
d3ddc171ee
editor/win32: Remove Components menu in favour of external editors
2011-01-19 02:14:59 +01:00
Günther Brammer
4e01716f28
editor: Automatically open landscape tools dialog
...
The landscape tools is mostly useless without the dialog, whereas the other
modes are useful without the dialog.
But mostly this is a side effect of removing PropertyDlg.Active along with
the C4PropertyDlg class.
2011-01-13 18:21:59 +01:00
Günther Brammer
a2015e0db1
editor: Move function autocompletion list generation to C4AulScriptEngine
...
This actually removes some code duplication and makes the ScriptEngine
API smaller.
2011-01-13 01:09:06 +01:00
Günther Brammer
3ef004506c
editor: Store the selected objects only in EditCursor
2011-01-12 23:40:22 +01:00
Günther Brammer
8a0cc8d072
editor/gtk: Move ObjectListDlg to the front when activated while open
...
Previously, the menu entry did nothing when the dialog was open
2011-01-12 22:09:16 +01:00
Günther Brammer
20afa7b470
console mode: Move keyboard input to CStdInProc, make it compile again
2011-01-10 00:01:17 +01:00
Günther Brammer
6d3feabe69
Reduce #includes so that C4Include.h doesn't include C4Value.h
...
This should avoid many complete rebuilds.
2011-01-08 17:04:20 +01:00
Günther Brammer
00db064ad5
SDL: updates for the editor and CStdWindow::Init changes
2011-01-08 02:18:36 +01:00
Günther Brammer
a03f849a4f
application: Simplify the way startup and game initialization works a bit
...
The editor now uses the same methods to start a game startup uses. Startup
no longer uses a nested main loop. Without a game running in the editor,
the application is in startup mode.
2011-01-07 00:51:35 +01:00
Günther Brammer
4d218d46da
editor: Simplify net menu API
2011-01-04 20:31:55 +01:00
Günther Brammer
be342d4a51
copyright notices update 2010
...
This time with more manual checking and using git blame -M -C, so that
a few cases of copied code get a copyright notice corresponding to
their initial introduction.
2010-12-23 01:01:24 +01:00
Günther Brammer
8c2d2d3cc1
editor: consolidate the four status text fields in one function
...
Only a very minor improvement in terms of lines-of-code, but still.
2010-12-14 02:06:23 +01:00
Martin Plicht
44928f1a8d
Platform-specific code in C4Console.cpp gets factored out into C4Console(Win32/GTK).cpp
2010-12-11 19:50:38 +01:00
Günther Brammer
9bf3288c77
Rewrite ParseCommandLine to work on argc/argv instead of a single string
...
Using the standard utility function on windows to split the line and the
operating system provided argc/argv on the others.
Also move the function to C4Application. It's not a huge win because the
flags are spread out between C4Game and C4Application pretty evenly, but
eventually most of them should move to a more appropriate place.
2010-10-04 21:39:19 +02:00
Günther Brammer
93a1e82907
Split out viewport stuff from C4GraphicsSystem to a new C4ViewportList
2010-09-29 03:44:05 +02:00
Armin Burgmeier
bd2f63bf1d
Add an option to build against GTK+ 3
2010-09-22 17:11:19 +02:00
Armin Burgmeier
9f65838ae8
Fix a couple of compiler warnings
2010-04-28 23:43:25 +02:00
Armin Burgmeier
70ac17c040
Mingw64 build fixes
2010-04-18 22:02:01 +02:00
Benjamin Herr
4378de147c
Rerun astyle with missing \ added
2010-03-28 20:58:01 +02:00
Günther Brammer
c40456b55e
Delete window surfaces before breaking the connection to the X server
...
Otherwise, destroying the OpenGL context would crash.
2010-03-25 20:58:46 +01:00
Günther Brammer
b4e37b070b
Change all indentation with spaces to use tabs instead
...
This is a whitespace-only patch. Hopefully, it'll only affect rarely-changed
parts of the engine, since all regularly maintained pieces should already
use tabs.
2010-03-27 17:05:02 +01:00
Benjamin Herr
f553e3f4d4
Use same file filter for Open/Open with players
...
Previously, the gtk /console window would not let me open scenarios
using the Open with players dialog.
2010-03-22 18:00:47 +01:00
Günther Brammer
4204e2fa44
Move the console-window-update-hack to SetInitProgress
...
This avoids drawing to a surface while the surface is created, or during
other DebugLog stuff. SetInitProgress should be called during relatively
stable points.
2010-03-05 01:13:06 +01:00
Nicolas Hake
0b137e8cd5
msvc: Build fixes for x64 compatibility
...
I don't know whether it works, because I don't have 64 bit libraries at the
moment. But at least the syntax errors are gone.
2010-02-27 14:48:01 +01:00
Benjamin Herr
f3b35227ea
avoid lots of gcc warnings
2010-01-25 05:00:59 +01:00
Tobias Zwick
edec15d64f
merge
2009-11-30 17:24:14 +01:00
Nicolas Hake
b3ab7fab5b
Strip down C4Include.h to encourage self-sufficient sources
2009-10-23 09:29:58 +02:00
Sven Eberhardt
af8a4d56b7
silenced some msvc warnings
2009-10-13 20:41:57 +02:00
David Dormagen
a886a18180
replaced remaining TRUE and FALSE (both are invalid now)
2009-09-05 19:22:54 +02:00
Armin Burgmeier
d021b9a586
Fixed a glib warning on startup about the main loop being active already
...
The exact warning message was
GLib-WARNING **: g_main_context_prepare(): main loop already active in another
thread
The problem was that there is code in C4Console.cpp which iterates the Glib
main loop to update the Console window while loading the game. This was not
synchronized with CGLibProc - we can't iterate the mainloop when the CGLibProc
already does.
2009-08-23 19:22:55 -04:00
Günther Brammer
9a8b5dd739
Replace BOOL by bool, TRUE by true, FALSE by false
2009-08-15 20:50:32 +02:00
Günther Brammer
572d00c32e
Move all source files
...
This might make stuff easier to find.
2009-08-10 17:59:18 +02:00