Commit Graph

30 Commits

Author SHA1 Message Date
Tobias Doerffel
67b99ac48f MMP: write to temporary file first and then rename
In order to avoid data loss because of full disks or other storage
failures write a temporary file first, rename current file to backup
file and rename temporary file to current file.

Closes #26.
2014-01-20 22:34:42 +01:00
Paul Giblock
867b13691d Add support for upgrading to standard output
Useful for me to initially import LMMS presets for use in lmms-lv2.
2013-02-27 15:46:48 -05:00
Paul Giblock
8bbbdacfcb Add support for upgrading presets
This is in addition to songs.  Simply use multimediaProject.  Don't
screw around with Song().  Also, needed to move creation of xml
preamble (processing instruction) due to duplicate entry when
doing a load/save.

Conflicts:
	src/core/main.cpp
2013-02-27 15:36:12 -05:00
Tobias Doerffel
610f01b0f9 moved version information into separate header file to avoid the necessity of a complete recompile each time SVN revision changes
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1913 0778d3d1-df1d-0410-868b-ea421aaaa00d
(cherry picked from commit b25f6f3911)
2010-07-25 18:50:42 +02:00
Tobias Doerffel
f4dbb2ff5c sed: s/( void )/(), s/FALSE/false/, s/TRUE/true
Replaced remaining occurences of old constants and superfluous "void"
on empty argument list of functions.
(cherry picked from commit 166701f9f3)
2009-08-25 01:42:20 +02:00
Tobias Doerffel
1d5cb23385 File and class renames part 1
Most files and most of the core classes and their methods have been
renamed to match new coding style conventions:

391 files changed, 25400 insertions(+), 25598 deletions(-)

Furthermore splitted some files where model and view classes were
declared or implemented together in the same file.

Should be tested thoroughly as I might have missed renaming some virtual
methods or SIGNAL/SLOT parameters.
(cherry picked from commit 8c9a9dd14c)
2009-08-25 01:30:41 +02:00
Tobias Doerffel
edf2d4d104 Whole code base: various cleanups, removed SINGLE_SOURCE_COMPILE relicts
* cleaned up code and improved coding style
* removed old SINGLE_SOURCE_COMPILE macro relicts
* use QString::toUtf8() instead of QString::toAscii() wherever possible

(cherry picked from commit 0bb54199b0)
2009-08-05 17:17:57 +02:00
Tobias Doerffel
33dd77f55c MMP: detect compressed files rather than guessing by extension
Detect whether a given file is compressed by first trying to parse
its content as XML data. If it failed, try to uncompress and
parse again. This is more flexible than just looking whether the
filename extension is "mmpz".

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
(cherry picked from commit c0794d0c41)
2009-06-15 16:28:09 +02:00
Tobias Doerffel
57c4a5abc5 MultimediaProject: splitted constructor for loading either file or data
The old constructor treated the string argument either as filename or
as raw XML data, depending on 2nd parameter. This is a mess and quickly
leads to confusion.

Now we have two constructors taking either a filename as string or a
QByteArray with XML data. Loading actual data has been separated into
MultimediaProject::loadData( const QByteArray & ).

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
(cherry picked from commit 5a00ebd360)
2009-06-11 01:16:30 +02:00
Tobias Doerffel
ea55f6ae64 fixed extension for presets
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1735 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-10-04 20:51:12 +00:00
Paul Giblock
0b24930e20 Improve LB302 with 3 new shapes and button-selectors.
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1657 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-09-21 08:35:47 +00:00
Paul Giblock
58df304c03 Move drumsynth/r_b to drumsynth/r_n_b
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1656 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-09-21 06:07:53 +00:00
Paul Giblock
f4ca1fd758 Fix English grammer, punctuation, and hard to read strings
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1479 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-08-23 21:10:01 +00:00
Tobias Doerffel
64188a9b52 use XML rather than binary blobs for saving plugin-/effect-key
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1433 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-08-04 17:59:44 +00:00
Tobias Doerffel
a3581d1e93 quirks for loading drumsynth-samples whose directory-names have changed from space to underscore
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1409 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-07-30 20:01:38 +00:00
Tobias Doerffel
257e60ab37 reduced header-dependencies
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1406 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-07-28 21:39:08 +00:00
Tobias Doerffel
f5b849fd30 * use QTextStream to save uncompressed XML-files
* when encountering problems while parsing XML-file, print line and column of problem



git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1387 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-07-28 06:45:16 +00:00
Tobias Doerffel
42ab630582 switched back to LB302
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1354 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-07-22 12:01:34 +00:00
Tobias Doerffel
0072b78a72 * fixed and improved various tag-renaming-loops
* added upgrade path from LB302 to LB303



git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1333 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-07-18 13:02:02 +00:00
Tobias Doerffel
49ba9fe2c6 added compat-code for loading old presets where content-node is named "channelsettings"
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1294 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-07-07 10:15:32 +00:00
Tobias Doerffel
04589f98a8 don't mess up projects when loading files being created using 0.4.0-alpha in a later version because "0.4.0-alpha" \< "0.4.0-svn..."
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1261 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-07-01 16:26:24 +00:00
Tobias Doerffel
3b0fb2357b fixed broken load/save of song-global automation
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1257 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-07-01 01:26:55 +00:00
Tobias Doerffel
1b7f86f262 replaced compat-code by proper code in multimediaProject::upgrade()
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1228 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-06-30 16:51:31 +00:00
Paul Giblock
b8c6d8c048 Rename Baseline+BB to Bassline+BB
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1218 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-06-30 02:42:25 +00:00
Tobias Doerffel
9bebe4325b * completely new automation-system with automation-tracks and automation-patterns as well as song-global automation
* made modelView take a QWidget-pointer argument
* trackContentObject-ctor now calls track::addTCO() directly
* optimize various loops to use iterators/const_iterators instead of a running index variable
* drag'n'drop doesn't fool around with pointers anymore - instead use unique journalling-IDs
* moved drag'n'drop handling code from knob to automatableModelView so that all controls can benefit from that



git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1164 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-06-23 22:36:33 +00:00
Tobias Doerffel
d6262bb556 use lmmsconfig.h rather than config.h and use prefixed macro-names
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1097 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-06-08 11:30:47 +00:00
Tobias Doerffel
3eaf3ea31b handle renamed midi-node ("midi" -> "midiport")
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1092 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-06-07 22:37:37 +00:00
Paul Giblock
f6ce2f136c compat-code for time-signature support in older projects
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1030 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-05-28 04:19:42 +00:00
Tobias Doerffel
2fcd8150d9 changed internal MIDI-time-resolution from 64th to 192th resulting for example in better MIDI-import and allowing to use triplet-notes in LMMS
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@908 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-04-09 22:16:52 +00:00
Tobias Doerffel
8ee0a1c430 moved to src/core/
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@845 0778d3d1-df1d-0410-868b-ea421aaaa00d
2008-04-01 20:50:13 +00:00