30 Commits

Author SHA1 Message Date
Erik Faye-Lund
6693c3f8f4 protocol: use network byte-order
The network code assumes that the client and server have the
same endianess. This isn't always the case, so let's change
it all to network byte-order.

This change is not backwards compatible, so old clients and
new editors (or vica verca) will not work together any more.
2010-08-29 23:43:10 +02:00
Erik Faye-Lund
163194e338 editor: increase warning level and fix warnings
While we're at it, let's fix-up some code-style errors.
2010-08-29 23:43:08 +02:00
Erik Faye-Lund
e640a4ab6a editor: explicit C-declaration around sync/data.h
Trade an explicit extern "C" declaration for three
defined(__cplusplus) wrapped ones.
2010-07-06 23:03:37 +02:00
Erik Faye-Lund
9f6eeb0b5d editor: portability fixes
This is mostly just nit-pickery that allows most of the editor to
be compiled with MinGW. The nasty COM-stuff for the XML-loader in
syncdocument.cpp is still not compiling, though. There's also some
missing resource definitions, it seems.
2010-03-24 21:41:35 +01:00
Erik Faye-Lund
f22e5c3bcd editor: support unicode filenames 2010-03-24 20:08:44 +01:00
Erik Faye-Lund
06c75438cf editor: get rid of some TCHARism
We dont need unicode everywhere. TCHARism is just noise.
2010-03-24 18:21:09 +01:00
Erik Faye-Lund
874c5b8ede rename LICENSE.TXT to COPYING 2010-03-19 17:41:37 +01:00
Erik Faye-Lund
70bcea33ab clean up network code 2010-03-19 17:41:35 +01:00
Erik Faye-Lund
decf843c04 player/client: port to C
Make sure that all code included in the player and client is
pure C. This helps on portability.
2010-03-19 17:41:34 +01:00
Erik Faye-Lund
bd4c5d31b3 Removed ini-file stuff. Sorry Skrebbel, but it wasn't good enough ;) 2010-03-19 17:41:30 +01:00
Erik Faye-Lund
634588aeed Removed superfluous "virtual" keywords. It's only the base-class that needs the methods to be declared as virtual. 2010-03-19 17:41:27 +01:00
Erik Faye-Lund
b6bdcd264f undo should be applied backwards... 2010-03-19 17:41:27 +01:00
Erik Faye-Lund
1eb06de644 rows as a document property 2010-03-19 17:41:26 +01:00
Erik Faye-Lund
45a9afd6bf Only ask to save if document has been changed. Remembers old save-points. Also corrected an error message. 2010-03-19 17:41:23 +01:00
Erik Faye-Lund
cef4af984d Improved encapsulation and const-correctness. 2010-03-19 17:41:21 +01:00
Erik Faye-Lund
cedd448878 fixed some crashes, and repainting to "round up" (or rather - add one). 2010-03-19 17:41:18 +01:00
Erik Faye-Lund
aa65670383 track-reordering works \o/ 2010-03-19 17:41:17 +01:00
Erik Faye-Lund
a244529a4f Renamed actualTracks to tracks, removed dead code (the out-commented empty function purgeUnused), replaced "Error" with NULL (This gives a localized error-string) for MessageBox in one place. 2010-03-19 17:41:17 +01:00
Erik Faye-Lund
f405a24e07 Using the NetworkSocket stuff for the server as well. Hopefully doing some better encapsulation of issues in the network protocol. 2010-03-19 17:41:16 +01:00
Erik Faye-Lund
06b07193c5 Made sure quiting the client pauses the tracker.
Prevented pause-commands from being sent when not connected.
Fixed Save-command so it doesn't (wrongly) report an error.
Added document filename to window title
2010-03-19 17:41:15 +01:00
Egbert Teeselink
da96ca4262 added inifile support though filthy static class thingy. 2010-03-19 17:41:13 +01:00
Erik Faye-Lund
eb180b4d15 Partial fix for bug 1896587. Added a fileNew()-function, and made it do some of what it's supposed to do. However, it only clears the part of the document that is within the max-row range. To fix properly, a separate function to clear a track should be added, and all tracks should be iterated through and truncated to 0. Another issue, is that there's no real purgeUnused()-method in SyncDocument yet, and it's a bit tricky to implement (needs to remap properly). But, at least some of this seems to work-ish now.
Also added a menu-hook for fileNew.
2010-03-19 17:41:11 +01:00
Erik Faye-Lund
72e0b8f93a more getter-usage, and moving the getTrackIndexFromPos()-method to the module it's used in 2010-03-19 17:41:11 +01:00
Erik Faye-Lund
ae82cf7306 load/save from the menu 2010-03-19 17:41:11 +01:00
Erik Faye-Lund
74da2a1c62 fixed pasting and removed a mem-leak 2010-03-19 17:41:10 +01:00
Erik Faye-Lund
9767ad5852 moved XML-loading/saving routines to a separate source-file, so the nasty COM-stuff doesn't contaminate all code ;) 2010-03-19 17:41:10 +01:00
Erik Faye-Lund
f49cc1ab73 added loading-support 2010-03-19 17:41:09 +01:00
Erik Faye-Lund
7f8b12890a getters - use them! 2010-03-19 17:41:09 +01:00
Erik Faye-Lund
ff614fbbb9 added support for pre-connection editing 2010-03-19 17:41:09 +01:00
Erik Faye-Lund
74eee30216 renamed SyncEditData to SyncDocument, since that's essentially what it is ;) 2010-03-19 17:41:08 +01:00