~ubuntu-branches/ubuntu/karmic/rosegarden/karmic

« back to all changes in this revision

Viewing changes to src/base/Configuration.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-02 00:33:44 UTC
  • mfrom: (1.1.7 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080502003344-67vbfhgqx2yl0ksi
Tags: 1:1.7.0-1ubuntu1
* Merge from Debian unstable. (LP: #225849) Remaining Ubuntu changes:
  - Add usr/share/doc/kde/HTML to rosegarden-data, to provide online
    help documentation.
  - Change fftw3-dev to libfftw3-dev.
  - Update maintainer field as per spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    Rosegarden
5
5
    A sequencer and musical notation editor.
6
6
 
7
 
    This program is Copyright 2000-2007
 
7
    This program is Copyright 2000-2008
8
8
        Guillaume Laurent   <glaurent@telegraph-road.org>,
9
9
        Chris Cannam        <cannam@all-day-breakfast.com>,
10
10
        Richard Bown        <bownie@bownie.com>
165
165
// Keep these in lower case
166
166
const PropertyName DocumentConfiguration::SequencerOptions      = "sequenceroptions";
167
167
const PropertyName DocumentConfiguration::ZoomLevel             = "zoomlevel";
 
168
const PropertyName DocumentConfiguration::TransportMode         = "transportmode";
168
169
 
169
170
 
170
171
DocumentConfiguration::DocumentConfiguration()
171
172
{
172
173
    set<Int>(ZoomLevel, 0);
 
174
    set<String>(TransportMode, ""); // apparently generates an exception if not initialized
173
175
}
174
176
    
175
177
DocumentConfiguration::DocumentConfiguration(const DocumentConfiguration &conf):
211
213
    config << "    <" << ZoomLevel << " type=\"Int\">" << get<Int>(ZoomLevel)
212
214
           << "</" << ZoomLevel << ">\n";
213
215
 
 
216
    config << "    <" << TransportMode << " type=\"String\">" << get<String>(TransportMode)
 
217
           << "</" << TransportMode << ">\n";
 
218
 
214
219
    config << "</configuration>" << endl;
215
220
 
216
221
#if (__GNUC__ < 3)