View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002118 | Scribus | Plug-ins | public | 2005-06-23 17:36 | 2006-04-15 03:27 |
Reporter | Assigned To | ||||
Priority | low | Severity | feature | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Platform | x86 Linux | OS | Fedora Core | OS Version | 3 |
Summary | 0002118: Write lprof plug-in | ||||
Description | It should be possible to change lprof - at least qtmonitorprofiler - so it builds as a library. This lib could then be linked to both a thin main.cpp for the standalone app, and into a Scribus module for use as part of Scribus. | ||||
Tags | No tags attached. | ||||
Patch | |||||
related to | 0001286 | closed | Integration of lcms monitor profiler within Scribus |
|
Doing a quick hack version was trivial. Makefile changes have been checked into lprof to permit you to 'make libqtmonitorprofiler.a' . The attached files will then let you compile a Scribus plugin, so long as the hardcoded path is fixed. Doing this properly wouldn't be too tricky, though I'm not sure how much integration between lprof and Scribus can be achieved without the new Plug-in API. Perhaps quite a bit can by using well chosen signals and slots. |
2005-06-24 05:25
|
|
2005-06-24 05:25
|
monitorprofile.cpp (674 bytes)
#include "monitorprofile.h" #include "pluginmanager.h" #include "qtmonitorprofilerdialog.h" QString name() { return QObject::tr("&Monitor profiler..."); } PluginManager::PluginType type() { return PluginManager::Standard; } int ID() { return 9999; } QString actionName() { return "MonitorProfiler"; } QString actionKeySequence() { return ""; } QString actionMenu() { return "Extras"; } QString actionMenuAfterName() { return ""; } bool actionEnabledOnStartup() { return true; } /** Create dialog and insert font into Style menu when user accepts. */ void run(QWidget *d, ScribusApp *plug) { qtMonitorProfilerDialog dialog( 0, 0, TRUE ); dialog.exec(); } |
2005-06-24 05:25
|
monitorprofile.h (939 bytes)
#ifndef MYPLUGIN_H #define MYPLUGIN_H #include "scribus.h" #include "pluginmanager.h" /** Calls the Plugin with the main Application window as parent * and the main Application Class as parameter */ extern "C" void run(QWidget *d, ScribusApp *plug); /** Returns the Name of the Plugin. * This name appears in the relevant Menue-Entrys */ extern "C" QString name(); /** Returns the Type of the Plugin. * 1 = the Plugin is a normal Plugin, which appears in the Extras Menue * 2 = the Plugin is a Import Plugin, which appears in the Import Menue * 3 = the Plugin is a Export Plugin, which appears in the Export Menue * 4 = the Plugin is a resident Plugin */ extern "C" PluginManager::PluginType type(); extern "C" int ID(); extern "C" QString actionName(); extern "C" QString actionKeySequence(); extern "C" QString actionMenu(); extern "C" QString actionMenuAfterName(); extern "C" bool actionEnabledOnStartup(); #endif |
|
ringerc: I think we can close this one for the same reasons 1286 has been closed. |
|
Agreed |
Date Modified | Username | Field | Change |
---|---|---|---|
2005-06-23 17:36 |
|
New Issue | |
2005-06-24 05:24 |
|
Note Added: 0005106 | |
2005-06-24 05:25 |
|
File Added: Makefile.am | |
2005-06-24 05:25 |
|
File Added: monitorprofile.cpp | |
2005-06-24 05:25 |
|
File Added: monitorprofile.h | |
2005-10-11 13:28 |
|
Priority | normal => low |
2005-10-11 14:32 |
|
Relationship added | related to 0001286 |
2006-04-14 15:10 | mhanski | Note Added: 0009960 | |
2006-04-15 03:27 |
|
Note Added: 0009995 | |
2006-04-15 03:27 |
|
Status | assigned => resolved |
2006-04-15 03:27 |
|
Resolution | open => won't fix |
2006-04-15 03:27 |
|
Status | resolved => closed |