~7-eric/inkscape/boolop-fix

« back to all changes in this revision

Viewing changes to src/ui/dialog/inkscape-preferences.cpp

Merge Google Summer of Code unit refactor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "preferences.h"
29
29
#include "verbs.h"
30
30
#include "selcue.h"
31
 
#include "unit-constants.h"
 
31
#include "util/units.h"
32
32
#include <iostream>
33
33
#include "enums.h"
34
34
#include "desktop-handles.h"
1428
1428
                           _("Automatically reload linked images when file is changed on disk"));
1429
1429
    _misc_bitmap_editor.init("/options/bitmapeditor/value", true);
1430
1430
    _page_bitmaps.add_line( false, _("_Bitmap editor:"), _misc_bitmap_editor, "", "", true);
1431
 
    _importexport_export_res.init("/dialogs/export/defaultxdpi/value", 0.0, 6000.0, 1.0, 1.0, PX_PER_IN, true, false);
 
1431
    _importexport_export_res.init("/dialogs/export/defaultxdpi/value", 0.0, 6000.0, 1.0, 1.0, Inkscape::Util::Quantity::convert(1, "in", "px"), true, false);
1432
1432
    _page_bitmaps.add_line( false, _("Default export _resolution:"), _importexport_export_res, _("dpi"),
1433
1433
                            _("Default bitmap resolution (in dots per inch) in the Export dialog"), false);
1434
 
    _bitmap_copy_res.init("/options/createbitmap/resolution", 1.0, 6000.0, 1.0, 1.0, PX_PER_IN, true, false);
 
1434
    _bitmap_copy_res.init("/options/createbitmap/resolution", 1.0, 6000.0, 1.0, 1.0, Inkscape::Util::Quantity::convert(1, "in", "px"), true, false);
1435
1435
    _page_bitmaps.add_line( false, _("Resolution for Create Bitmap _Copy:"), _bitmap_copy_res, _("dpi"),
1436
1436
                            _("Resolution used by the Create Bitmap Copy command"), false);
1437
1437
    {
1443
1443
        _bitmap_import_quality.init("/dialogs/import/quality", 1, 100, 1, 1, 100, true, false);
1444
1444
        _page_bitmaps.add_line( false, _("Bitmap import quality:"), _bitmap_import_quality, "%", "Bitmap import quality (jpeg only). 100 is best quality", false);
1445
1445
    }
1446
 
    _importexport_import_res.init("/dialogs/import/defaultxdpi/value", 0.0, 6000.0, 1.0, 1.0, PX_PER_IN, true, false);
 
1446
    _importexport_import_res.init("/dialogs/import/defaultxdpi/value", 0.0, 6000.0, 1.0, 1.0, Inkscape::Util::Quantity::convert(1, "in", "px"), true, false);
1447
1447
    _page_bitmaps.add_line( false, _("Default _import resolution:"), _importexport_import_res, _("dpi"),
1448
1448
                            _("Default bitmap resolution (in dots per inch) for bitmap import"), false);
1449
1449
    _importexport_import_res_override.init(_("Override file resolution"), "/dialogs/import/forcexdpi", false);