Changeset View
Changeset View
Standalone View
Standalone View
filters/svgexporter.cc
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | QString SVGExporter::menuIcon() const | 51 | QString SVGExporter::menuIcon() const | ||
52 | { | 52 | { | ||
53 | return "image-svg+xml"; | 53 | return "image-svg+xml"; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | void SVGExporter::run( const KigPart& part, KigWidget& w ) | 56 | void SVGExporter::run( const KigPart& part, KigWidget& w ) | ||
57 | { | 57 | { | ||
58 | KigFileDialog* kfd = new KigFileDialog( | 58 | KigFileDialog* kfd = new KigFileDialog( | ||
59 | QStandardPaths::writableLocation( QStandardPaths::PicturesLocation ), i18n( "*.svg|Scalable Vector Graphics (*.svg)" ), | 59 | QStandardPaths::writableLocation( QStandardPaths::PicturesLocation ), i18n( "Scalable Vector Graphics (*.svg)" ), | ||
60 | i18n( "Export as SVG" ), &w ); | 60 | i18n( "Export as SVG" ), &w ); | ||
61 | kfd->setOptionCaption( i18n( "SVG Options" ) ); | 61 | kfd->setOptionCaption( i18n( "SVG Options" ) ); | ||
62 | SVGExporterOptions* opts = new SVGExporterOptions( 0L ); | 62 | SVGExporterOptions* opts = new SVGExporterOptions( 0L ); | ||
63 | kfd->setOptionsWidget( opts ); | 63 | kfd->setOptionsWidget( opts ); | ||
64 | opts->setGrid( part.document().grid() ); | 64 | opts->setGrid( part.document().grid() ); | ||
65 | opts->setAxes( part.document().axes() ); | 65 | opts->setAxes( part.document().axes() ); | ||
66 | if ( !kfd->exec() ) | 66 | if ( !kfd->exec() ) | ||
67 | return; | 67 | return; | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |