View Issue Details

IDProjectCategoryView StatusLast Update
0002118ScribusPlug-inspublic2006-04-15 03:27
ReporterringercAssigned Toringerc 
PrioritylowSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Platformx86 LinuxOSFedora CoreOS Version3
Summary0002118: Write lprof plug-in
DescriptionIt 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.
TagsNo tags attached.
Patch

Relationships

related to 0001286 closed Integration of lcms monitor profiler within Scribus 

Activities

ringerc

2005-06-24 05:24

reporter   ~0005106

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

 

Makefile.am (958 bytes)

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();
}
monitorprofile.cpp (674 bytes)   

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
monitorprofile.h (939 bytes)   

mhanski

2006-04-14 15:10

developer   ~0009960

ringerc: I think we can close this one for the same reasons 1286 has been closed.

ringerc

2006-04-15 03:27

reporter   ~0009995

Agreed

Issue History

Date Modified Username Field Change
2005-06-23 17:36 ringerc New Issue
2005-06-24 05:24 ringerc Note Added: 0005106
2005-06-24 05:25 ringerc File Added: Makefile.am
2005-06-24 05:25 ringerc File Added: monitorprofile.cpp
2005-06-24 05:25 ringerc File Added: monitorprofile.h
2005-10-11 13:28 ringerc Priority normal => low
2005-10-11 14:32 ringerc Relationship added related to 0001286
2006-04-14 15:10 mhanski Note Added: 0009960
2006-04-15 03:27 ringerc Note Added: 0009995
2006-04-15 03:27 ringerc Status assigned => resolved
2006-04-15 03:27 ringerc Resolution open => won't fix
2006-04-15 03:27 ringerc Status resolved => closed