Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 15ea930a6b)
r14.1.x r14.1.1
Michele Calgaro 1 year ago
parent 799c052006
commit 6fcd754ef7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -300,7 +300,7 @@ class ToolStar : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
ToolStar(QObject *parent, const char *name, const QStringList &amp;); ToolStar(TQObject *parent, const char *name, const QStringList &amp;);
virtual ~ToolStar(); virtual ~ToolStar();
}; };
@ -324,7 +324,7 @@ typedef KGenericFactory&lt;ToolStar&gt; ToolStarFactory;
K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) ) K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) )
ToolStar::ToolStar(QObject *parent, const char *name, const QStringList &amp;) ToolStar::ToolStar(TQObject *parent, const char *name, const QStringList &amp;)
: KParts::Plugin(parent, name) : KParts::Plugin(parent, name)
{ {
setInstance(ToolStarFactory::instance()); setInstance(ToolStarFactory::instance());
@ -485,7 +485,7 @@ ToolStar::~ToolStar()
<listitem <listitem
><para ><para
>color: una representació <classname >color: una representació <classname
>QColor</classname >TQColor</classname
> d'aquest canal per a la visualització de la interfície de l'usuari, per exemple en histogrames.</para > d'aquest canal per a la visualització de la interfície de l'usuari, per exemple en histogrames.</para
></listitem> ></listitem>
<listitem <listitem
@ -521,7 +521,7 @@ ToolStar::~ToolStar()
> es pot dividir en uns quants grups: conversió, identificació i manipulació. </para > es pot dividir en uns quants grups: conversió, identificació i manipulació. </para
><para ><para
>Totes les classes han de ser capaces de convertir un píxel a 8 bit RGB (és a dir, un <classname >Totes les classes han de ser capaces de convertir un píxel a 8 bit RGB (és a dir, un <classname
>QColor</classname >TQColor</classname
>), i preferiblement també a 16 bit L*a*b. Addicionalment, hi ha un mètode per a convertir a qualsevol espai de color des de l'actual espai de color. </para >), i preferiblement també a 16 bit L*a*b. Addicionalment, hi ha un mètode per a convertir a qualsevol espai de color des de l'actual espai de color. </para
><para ><para
>Els espais de color es descriuen amb el vector <classname >Els espais de color es descriuen amb el vector <classname
@ -809,7 +809,7 @@ public:
>El filtre pintura a l'oli usa l'estri multiintegral: </para> >El filtre pintura a l'oli usa l'estri multiintegral: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -817,7 +817,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1157,9 +1157,9 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
> es crida per a crear l'estri d'opció que el &chalk; mostrarà a l'eina. Ja que hi ha una eina per dispositiu d'entrada, l'estat d'una eina es pot mantenir a l'eina. Aquest mètode es crida només un cop: l'estri d'opció s'emmagatzema i es recupera el següent cop que l'eina s'activa. </para> > es crida per a crear l'estri d'opció que el &chalk; mostrarà a l'eina. Ja que hi ha una eina per dispositiu d'entrada, l'estat d'una eina es pot mantenir a l'eina. Aquest mètode es crida només un cop: l'estri d'opció s'emmagatzema i es recupera el següent cop que l'eina s'activa. </para>
<programlisting <programlisting
>QWidget* KisToolStar::createOptionWidget(QWidget* parent) >TQWidget* KisToolStar::createOptionWidget(TQWidget* parent)
{ {
QWidget *widget = KisToolShape::createOptionWidget(parent); TQWidget *widget = KisToolShape::createOptionWidget(parent);
m_optWidget = new WdgToolStar(widget); m_optWidget = new WdgToolStar(widget);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1215,7 +1215,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter); virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1452,7 +1452,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString filename = m_chain -> inputFile(); <co id="import4" /> TQString filename = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>data_file_name</parameter >data_file_name</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>data_io_device</parameter >data_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,9 +261,9 @@ this prolog
>Arranja les dades d'informe des del fitxer <replaceable >Arranja les dades d'informe des del fitxer <replaceable
>data_io_device</replaceable >data_io_device</replaceable
>. El dispositiu IO pot ser qualsevol successor de la classe <classname >. El dispositiu IO pot ser qualsevol successor de la classe <classname
>QIODevice</classname >TQIODevice</classname
>. Per exemple, per a agafar registres directament de la base de dades, creeu un successor <classname >. Per exemple, per a agafar registres directament de la base de dades, creeu un successor <classname
>QIODevice</classname >TQIODevice</classname
> i redefiniu totes les funcionalitats necessàries. </funcsynopsisinfo> > i redefiniu totes les funcionalitats necessàries. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -274,7 +274,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>template_file_name</parameter >template_file_name</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -291,7 +291,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>template_io_device</parameter >template_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -299,8 +299,8 @@ this prolog
>Arranja la plantilla d'informe des del fitxer <replaceable >Arranja la plantilla d'informe des del fitxer <replaceable
>template_io_device</replaceable >template_io_device</replaceable
>. El dispositiu IO pot ser qualsevol successor de la classe <classname >. El dispositiu IO pot ser qualsevol successor de la classe <classname
>QIODevice</classname >TQIODevice</classname
>. Per exemple, per a obtenir una plantilla d'informe des d'un dispositiu d'emmagatzematge en xarxa o una base de dades, creeu un siccessor QIODevice i redefiniu totes les funcionalitats necessàries. </funcsynopsisinfo> >. Per exemple, per a obtenir una plantilla d'informe des d'un dispositiu d'emmagatzematge en xarxa o una base de dades, creeu un siccessor TQIODevice i redefiniu totes les funcionalitats necessàries. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -409,14 +409,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -594,7 +594,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -602,40 +602,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -300,7 +300,7 @@ class ToolStar : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
ToolStar(QObject *parent, const char *name, const QStringList &amp;); ToolStar(TQObject *parent, const char *name, const QStringList &amp;);
virtual ~ToolStar(); virtual ~ToolStar();
}; };
@ -324,7 +324,7 @@ typedef KGenericFactory&lt;ToolStar&gt; ToolStarFactory;
K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) ) K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) )
ToolStar::ToolStar(QObject *parent, const char *name, const QStringList &amp;) ToolStar::ToolStar(TQObject *parent, const char *name, const QStringList &amp;)
: KParts::Plugin(parent, name) : KParts::Plugin(parent, name)
{ {
setInstance(ToolStarFactory::instance()); setInstance(ToolStarFactory::instance());
@ -485,7 +485,7 @@ ToolStar::~ToolStar()
<listitem <listitem
><para ><para
>farve: en repræsentation med <classname >farve: en repræsentation med <classname
>QColor</classname >TQColor</classname
> af kanalen for visualisering i brugergrænseflade, for eksempel i histogrammer.</para > af kanalen for visualisering i brugergrænseflade, for eksempel i histogrammer.</para
></listitem> ></listitem>
<listitem <listitem
@ -521,7 +521,7 @@ ToolStar::~ToolStar()
> kan deles op i et antal grupper: konvertering, identifikation og behandling. </para > kan deles op i et antal grupper: konvertering, identifikation og behandling. </para
><para ><para
>Alle klasser skal kunne konvertere et billedpunkt fra og til 8-bit RGB (dvs. en <classname >Alle klasser skal kunne konvertere et billedpunkt fra og til 8-bit RGB (dvs. en <classname
>QColor</classname >TQColor</classname
>), og helst også til og fra 16-bit L*a*b*. Desuden er der en metode til at konvertere til et hvilket som helst andet farverum fra det nuværende farverum. </para >), og helst også til og fra 16-bit L*a*b*. Desuden er der en metode til at konvertere til et hvilket som helst andet farverum fra det nuværende farverum. </para
><para ><para
>Farverum beskrives af vektoren <classname >Farverum beskrives af vektoren <classname
@ -809,7 +809,7 @@ public:
>Oliemalerifiltret bruger multiheltalskontrollen: </para> >Oliemalerifiltret bruger multiheltalskontrollen: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -817,7 +817,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1157,9 +1157,9 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
> kaldes for at oprette den grafiske indstillingskontrol som &chalk; viser fanebladet. Eftersom der er et værktøj per indtastningsenhed og per visning, kan tilstanden af et værktøj opbevares i værktøjet. Denne metode kaldes kun en gang: den grafiske indstillingskontrol opbevares og hentes næste gang værktøjet aktiveres. </para> > kaldes for at oprette den grafiske indstillingskontrol som &chalk; viser fanebladet. Eftersom der er et værktøj per indtastningsenhed og per visning, kan tilstanden af et værktøj opbevares i værktøjet. Denne metode kaldes kun en gang: den grafiske indstillingskontrol opbevares og hentes næste gang værktøjet aktiveres. </para>
<programlisting <programlisting
>QWidget* KisToolStar::createOptionWidget(QWidget* parent) >TQWidget* KisToolStar::createOptionWidget(TQWidget* parent)
{ {
QWidget *widget = KisToolShape::createOptionWidget(parent); TQWidget *widget = KisToolShape::createOptionWidget(parent);
m_optWidget = new WdgToolStar(widget); m_optWidget = new WdgToolStar(widget);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1215,7 +1215,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter); virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1452,7 +1452,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString filename = m_chain -> inputFile(); <co id="import4" /> TQString filename = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -220,7 +220,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>datafilnavn</parameter >datafilnavn</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -237,7 +237,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>data io-enhed</parameter >data io-enhed</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -245,9 +245,9 @@ this prolog
>Henter rapportdata fra filen <replaceable >Henter rapportdata fra filen <replaceable
>data io-enhed</replaceable >data io-enhed</replaceable
>. I/O-enheden kan være hvilken som helst klasse afledt fra klassen <replaceable >. I/O-enheden kan være hvilken som helst klasse afledt fra klassen <replaceable
>QIODevice</replaceable >TQIODevice</replaceable
>. For eksempel for direkte at hente poster fra databasen, opret en afledt klasse fra <classname >. For eksempel for direkte at hente poster fra databasen, opret en afledt klasse fra <classname
>QIODevice</classname >TQIODevice</classname
> og omdefinér alle nødvendige funktioner. </funcsynopsisinfo> > og omdefinér alle nødvendige funktioner. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -258,7 +258,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>skabelonfilnavn</parameter >skabelonfilnavn</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -275,7 +275,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>skabelon_io_enhed</parameter >skabelon_io_enhed</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -283,8 +283,8 @@ this prolog
>Sætter rapportskabelon fra filen <replaceable >Sætter rapportskabelon fra filen <replaceable
>skabelon_io_enhed</replaceable >skabelon_io_enhed</replaceable
>. I/O-enheden kan være en hvilken som helst klasse afledt fra klassen <classname >. I/O-enheden kan være en hvilken som helst klasse afledt fra klassen <classname
>QIODevice</classname >TQIODevice</classname
>. For eksempel for at hente en rapportskabelon direkte fra netværket eller en database, opret en afledt klasse fra QIODevice og omdefinér alle nødvendige funktioner. </funcsynopsisinfo> >. For eksempel for at hente en rapportskabelon direkte fra netværket eller en database, opret en afledt klasse fra TQIODevice og omdefinér alle nødvendige funktioner. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -393,14 +393,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -578,7 +578,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -586,40 +586,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -300,7 +300,7 @@ class ToolStar : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
ToolStar(QObject *parent, const char *name, const QStringList &amp;); ToolStar(TQObject *parent, const char *name, const QStringList &amp;);
virtual ~ToolStar(); virtual ~ToolStar();
}; };
@ -324,7 +324,7 @@ typedef KGenericFactory&lt;ToolStar&gt; ToolStarFactory;
K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) ) K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) )
ToolStar::ToolStar(QObject *parent, const char *name, const QStringList &amp;) ToolStar::ToolStar(TQObject *parent, const char *name, const QStringList &amp;)
: KParts::Plugin(parent, name) : KParts::Plugin(parent, name)
{ {
setInstance(ToolStarFactory::instance()); setInstance(ToolStarFactory::instance());
@ -485,7 +485,7 @@ ToolStar::~ToolStar()
<listitem <listitem
><para ><para
>Farbe: eine <classname >Farbe: eine <classname
>QColor</classname >TQColor</classname
>-Darstellung dieses Kanals für die grafische Benutzeroberfläche, z. B. für das Histogramm.</para >-Darstellung dieses Kanals für die grafische Benutzeroberfläche, z. B. für das Histogramm.</para
></listitem> ></listitem>
<listitem <listitem
@ -521,7 +521,7 @@ ToolStar::~ToolStar()
> können in Gruppen unterteilt werden: Konvertierung, Erkennung und Manipulation. </para > können in Gruppen unterteilt werden: Konvertierung, Erkennung und Manipulation. </para
><para ><para
>Alle Klassen müssen in der Lage sein, ein Pixel aus und in 8-bit-RGB zu konvertieren (d. h., ein <classname >Alle Klassen müssen in der Lage sein, ein Pixel aus und in 8-bit-RGB zu konvertieren (d. h., ein <classname
>QColor</classname >TQColor</classname
>), und möglichst auch in und aus 16-bit-L*a*b*. Zusätzlich gibt es eine Methode, um vom aktuellen Farbraum in jeden anderen Farbraum zu konvertieren. </para >), und möglichst auch in und aus 16-bit-L*a*b*. Zusätzlich gibt es eine Methode, um vom aktuellen Farbraum in jeden anderen Farbraum zu konvertieren. </para
><para ><para
>Farbräume werden vom <classname >Farbräume werden vom <classname
@ -809,7 +809,7 @@ public:
>Der Ölgemälde-Filter verwendet die Multi-Integer-Vorrichtung: </para> >Der Ölgemälde-Filter verwendet die Multi-Integer-Vorrichtung: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -817,7 +817,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1155,9 +1155,9 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
> wird aufgerufen, um ein Einstellungs-Widget zu erstellen, das &chalk; auf der Karteikarte anzeigt. Da es ein Werkzeug pro Eingabegeräte pro Ansicht ist, kann der Zustand eines Werkzeugs im Werkzeug gehalten werden. Diese Methode wird nur einmal aufgerufen: das Einstellungs-Widget wird gespeichert und beim nächsten Aufruf wieder hergestellt. </para> > wird aufgerufen, um ein Einstellungs-Widget zu erstellen, das &chalk; auf der Karteikarte anzeigt. Da es ein Werkzeug pro Eingabegeräte pro Ansicht ist, kann der Zustand eines Werkzeugs im Werkzeug gehalten werden. Diese Methode wird nur einmal aufgerufen: das Einstellungs-Widget wird gespeichert und beim nächsten Aufruf wieder hergestellt. </para>
<programlisting <programlisting
>QWidget* KisToolStar::createOptionWidget(QWidget* parent) >TQWidget* KisToolStar::createOptionWidget(TQWidget* parent)
{ {
QWidget *widget = KisToolShape::createOptionWidget(parent); TQWidget *widget = KisToolShape::createOptionWidget(parent);
m_optWidget = new WdgToolStar(widget); m_optWidget = new WdgToolStar(widget);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1213,7 +1213,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter); virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1448,7 +1448,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString filename = m_chain -> inputFile(); <co id="import4" /> TQString filename = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>Daten_Datei_Name</parameter >Daten_Datei_Name</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>data_io_device</parameter >data_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,9 +261,9 @@ this prolog
>Fügt Bericht-Daten aus der Datei <replaceable >Fügt Bericht-Daten aus der Datei <replaceable
> data_io_device</replaceable > data_io_device</replaceable
> ein. IO-Device kann irgend ein Nachfolger der Klasse <classname > ein. IO-Device kann irgend ein Nachfolger der Klasse <classname
>QIODevice </classname >TQIODevice </classname
> sein. Ein Beispiel: Um Berichte direkt aus der Datenbank zu erzeugen, erstellen Sie einen <classname > sein. Ein Beispiel: Um Berichte direkt aus der Datenbank zu erzeugen, erstellen Sie einen <classname
>QIODevice</classname >TQIODevice</classname
>-Nachfolger und definieren die gesamte erforderliche Funktionalität erneut. </funcsynopsisinfo> >-Nachfolger und definieren die gesamte erforderliche Funktionalität erneut. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -274,7 +274,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>template_file_name</parameter >template_file_name</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -291,7 +291,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>template_io_device</parameter >template_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -299,8 +299,8 @@ this prolog
>Erstellt eine Berichtvorlage aus der Datei <replaceable >Erstellt eine Berichtvorlage aus der Datei <replaceable
>template_io_device</replaceable >template_io_device</replaceable
>. IO-Device kann jeder Nachfolger der Klasse <classname >. IO-Device kann jeder Nachfolger der Klasse <classname
>QIODevice</classname >TQIODevice</classname
> sein. Ein Beispiel: um eine Berichtvorlage aus einem Speicher im Netzwerk oder einer Datenbank zu erhalten, erstellen Sie einen QIODevice-Nachfolger und definieren die Funktionalität neu. </funcsynopsisinfo> > sein. Ein Beispiel: um eine Berichtvorlage aus einem Speicher im Netzwerk oder einer Datenbank zu erhalten, erstellen Sie einen TQIODevice-Nachfolger und definieren die Funktionalität neu. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -409,14 +409,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -594,7 +594,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -602,40 +602,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nombre_arch_datos</parameter >nombre_arch_datos</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>disp_datos_es</parameter >disp_datos_es</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,9 +261,9 @@ this prolog
>Toma los datos para el informe del archivo <replaceable >Toma los datos para el informe del archivo <replaceable
>disp_datos_es</replaceable >disp_datos_es</replaceable
>. El dispositivo de E/S puede ser cualquier heredero de la clase <classname >. El dispositivo de E/S puede ser cualquier heredero de la clase <classname
>QIODevice</classname >TQIODevice</classname
>. Por ejemplo, para recoger registros directamente de la base de datos, cree un heredero de <classname >. Por ejemplo, para recoger registros directamente de la base de datos, cree un heredero de <classname
>QIODevice</classname >TQIODevice</classname
> y redefina toda la funcionalidad necesaria. </funcsynopsisinfo> > y redefina toda la funcionalidad necesaria. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -274,7 +274,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nombre_arch_plantilla</parameter >nombre_arch_plantilla</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -291,7 +291,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>disp_es_plantilla</parameter >disp_es_plantilla</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -299,8 +299,8 @@ this prolog
>Toma la plantilla del informe del archivo <replaceable >Toma la plantilla del informe del archivo <replaceable
>disp_es_plantilla</replaceable >disp_es_plantilla</replaceable
> . El dispositivo de E/S puede ser cualquier heredero de la clase <classname > . El dispositivo de E/S puede ser cualquier heredero de la clase <classname
>QIODevice</classname >TQIODevice</classname
>. Por ejemplo, para obtener una plantilla del informe de algún sitio de almacenamiento de la red o una base de datos, cree un heredero de QIODevice y redefina toda la funcionalidad necesaria. </funcsynopsisinfo> >. Por ejemplo, para obtener una plantilla del informe de algún sitio de almacenamiento de la red o una base de datos, cree un heredero de TQIODevice y redefina toda la funcionalidad necesaria. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -410,14 +410,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -595,7 +595,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -603,40 +603,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -300,7 +300,7 @@ class ToolStar : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
ToolStar(QObject *parent, const char *name, const QStringList &amp;); ToolStar(TQObject *parent, const char *name, const QStringList &amp;);
virtual ~ToolStar(); virtual ~ToolStar();
}; };
@ -324,7 +324,7 @@ typedef KGenericFactory&lt;ToolStar&gt; ToolStarFactory;
K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) ) K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) )
ToolStar::ToolStar(QObject *parent, const char *name, const QStringList &amp;) ToolStar::ToolStar(TQObject *parent, const char *name, const QStringList &amp;)
: KParts::Plugin(parent, name) : KParts::Plugin(parent, name)
{ {
setInstance(ToolStarFactory::instance()); setInstance(ToolStarFactory::instance());
@ -485,7 +485,7 @@ ToolStar::~ToolStar()
<listitem <listitem
><para ><para
>värv: antud kanali <classname >värv: antud kanali <classname
>QColor</classname >TQColor</classname
> esindus kasutajaliidese tarbeks, näiteks histogrammis.</para > esindus kasutajaliidese tarbeks, näiteks histogrammis.</para
></listitem> ></listitem>
<listitem <listitem
@ -521,7 +521,7 @@ ToolStar::~ToolStar()
> meetodid võib jagada mitmesse rühma: teisendamine, tuvastamine ja manipuleerimine. </para > meetodid võib jagada mitmesse rühma: teisendamine, tuvastamine ja manipuleerimine. </para
><para ><para
>Kõik klassid peavad suutma teisendada pikslit 8-bitisest RGB-st ja 8-bitisesse RGB-sse (s.t. <classname >Kõik klassid peavad suutma teisendada pikslit 8-bitisest RGB-st ja 8-bitisesse RGB-sse (s.t. <classname
>QColor</classname >TQColor</classname
>), võimaluse korral ka 16-bitisest L*a*b-ist ja 16- bitisesse L*a*b-i. Lisaks on ka meetod, mis võimaldab teisendada mis tahes värviruumist aktiivsesse värviruumi. </para >), võimaluse korral ka 16-bitisest L*a*b-ist ja 16- bitisesse L*a*b-i. Lisaks on ka meetod, mis võimaldab teisendada mis tahes värviruumist aktiivsesse värviruumi. </para
><para ><para
>Värviruume kirjeldavad <classname >Värviruume kirjeldavad <classname
@ -809,7 +809,7 @@ public:
>Õlimaalifilter kasutab mitme täisarvuga vidinat: </para> >Õlimaalifilter kasutab mitme täisarvuga vidinat: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -817,7 +817,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1157,9 +1157,9 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
> kutsutakse välja valikuvidina loomiseks, mida &chalk; näitab kaardil. Et töööriist on iga sisendseadme iga vaate jaoks, tuleb tööriista olek hoida tööriistas. Seda meetodit kutsutakse välja ainult üks kord: valikuvidin salvestatakse ja hangitakse uuesti järgmine kord, kui tööriist aktiveeritakse. </para> > kutsutakse välja valikuvidina loomiseks, mida &chalk; näitab kaardil. Et töööriist on iga sisendseadme iga vaate jaoks, tuleb tööriista olek hoida tööriistas. Seda meetodit kutsutakse välja ainult üks kord: valikuvidin salvestatakse ja hangitakse uuesti järgmine kord, kui tööriist aktiveeritakse. </para>
<programlisting <programlisting
>QWidget* KisToolStar::createOptionWidget(QWidget* parent) >TQWidget* KisToolStar::createOptionWidget(TQWidget* parent)
{ {
QWidget *widget = KisToolShape::createOptionWidget(parent); TQWidget *widget = KisToolShape::createOptionWidget(parent);
m_optWidget = new WdgToolStar(widget); m_optWidget = new WdgToolStar(widget);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1215,7 +1215,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter); virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1452,7 +1452,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString filename = m_chain -> inputFile(); <co id="import4" /> TQString filename = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>andmefaili_nimi</parameter >andmefaili_nimi</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>andmete_IO_seade</parameter >andmete_IO_seade</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,9 +261,9 @@ this prolog
>Määrab võtmega <replaceable >Määrab võtmega <replaceable
>andmete_IO_seade</replaceable >andmete_IO_seade</replaceable
>, millisest failist aruanne andmeid võtab. IO-seade võib olla suvaline klassi <classname >, millisest failist aruanne andmeid võtab. IO-seade võib olla suvaline klassi <classname
>QIODevice</classname >TQIODevice</classname
> järglane. Näiteks andmete tõmbamiseks vahetult andmebaasist loo <classname > järglane. Näiteks andmete tõmbamiseks vahetult andmebaasist loo <classname
>QIODevice</classname >TQIODevice</classname
> järglane ning defineeri vajalikud funktsioonid ümber. </funcsynopsisinfo> > järglane ning defineeri vajalikud funktsioonid ümber. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -274,7 +274,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>mallifaili_nimi</parameter >mallifaili_nimi</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -291,7 +291,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>malli_IO_seade</parameter >malli_IO_seade</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -299,8 +299,8 @@ this prolog
>Määrab võtmega <replaceable >Määrab võtmega <replaceable
>malli_IO_seade</replaceable >malli_IO_seade</replaceable
> aruande malli. IO-seade võib olla suvaline klassi <classname > aruande malli. IO-seade võib olla suvaline klassi <classname
>QIODevice</classname >TQIODevice</classname
> järglane. Näiteks aruande malli hankimiseks võrgust või andmebaasist loo QIODevice järglane ja defineeri kõik vajalikud funktsioonid ümber. </funcsynopsisinfo> > järglane. Näiteks aruande malli hankimiseks võrgust või andmebaasist loo TQIODevice järglane ja defineeri kõik vajalikud funktsioonid ümber. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -409,14 +409,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -594,7 +594,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -602,40 +602,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -222,7 +222,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nom_du_fichier_de_données</parameter >nom_du_fichier_de_données</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -239,7 +239,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>data_io_device</parameter >data_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -247,9 +247,9 @@ this prolog
>Détermine les données du rapport depuis le fichier <replaceable >Détermine les données du rapport depuis le fichier <replaceable
>data_io_device</replaceable >data_io_device</replaceable
>. Le périphérique d'entrées-sorties peut être un successeur d'une classe <classname >. Le périphérique d'entrées-sorties peut être un successeur d'une classe <classname
>QIODevice</classname >TQIODevice</classname
>. Par exemple, pour chercher des enregistrements directement depuis la base de données, créez un successeur <classname >. Par exemple, pour chercher des enregistrements directement depuis la base de données, créez un successeur <classname
>QIODevice</classname >TQIODevice</classname
> et redéfinissez toutes les fonctionnalités nécessaires. </funcsynopsisinfo> > et redéfinissez toutes les fonctionnalités nécessaires. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -260,7 +260,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nom_du_fichier_modèle</parameter >nom_du_fichier_modèle</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -277,7 +277,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>template_io_device</parameter >template_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -285,8 +285,8 @@ this prolog
>Détermine le modèle de rapport depuis le fichier <replaceable >Détermine le modèle de rapport depuis le fichier <replaceable
>template_io_device</replaceable >template_io_device</replaceable
>. Le périphérique d'entrées-sorties peut être un successeur d'une classe <classname >. Le périphérique d'entrées-sorties peut être un successeur d'une classe <classname
>QIODevice</classname >TQIODevice</classname
>. Par exemple, pour obtenir un modèle de rapport pour le stockage réseau ou les bases de données, créez un successeur QIODevice et redéfinissez toutes les fonctionnalités nécessaires. </funcsynopsisinfo> >. Par exemple, pour obtenir un modèle de rapport pour le stockage réseau ou les bases de données, créez un successeur TQIODevice et redéfinissez toutes les fonctionnalités nécessaires. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -396,14 +396,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -581,7 +581,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -589,40 +589,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -299,7 +299,7 @@ class ToolStar : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
ToolStar(QObject *parent, const char *name, const QStringList &amp;); ToolStar(TQObject *parent, const char *name, const QStringList &amp;);
virtual ~ToolStar(); virtual ~ToolStar();
}; };
@ -323,7 +323,7 @@ typedef KGenericFactory&lt;ToolStar&gt; ToolStarFactory;
K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) ) K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) )
ToolStar::ToolStar(QObject *parent, const char *name, const QStringList &amp;) ToolStar::ToolStar(TQObject *parent, const char *name, const QStringList &amp;)
: KParts::Plugin(parent, name) : KParts::Plugin(parent, name)
{ {
setInstance(ToolStarFactory::instance()); setInstance(ToolStarFactory::instance());
@ -484,7 +484,7 @@ ToolStar::~ToolStar()
<listitem <listitem
><para ><para
>colore: una rappresentazione <classname >colore: una rappresentazione <classname
>QColor</classname >TQColor</classname
> di questo canale per la visualizzazione nell'interfaccia utente, per esempio con istogrammi.</para > di questo canale per la visualizzazione nell'interfaccia utente, per esempio con istogrammi.</para
></listitem> ></listitem>
<listitem <listitem
@ -520,7 +520,7 @@ ToolStar::~ToolStar()
> possono essere divisi in un certo numero di gruppi: conversione, identificazione e manipolazione. </para > possono essere divisi in un certo numero di gruppi: conversione, identificazione e manipolazione. </para
><para ><para
>Tutte le classi devono poter convertire un pixel da e in RGB a 8 bit (per esempio, un <classname >Tutte le classi devono poter convertire un pixel da e in RGB a 8 bit (per esempio, un <classname
>QColor</classname >TQColor</classname
>), e preferibilmente anche in e da L*a*b a 16 bit. Inoltre, c'è un metodo per convertire in qualsiasi spazio di colori da quello attuale. </para >), e preferibilmente anche in e da L*a*b a 16 bit. Inoltre, c'è un metodo per convertire in qualsiasi spazio di colori da quello attuale. </para
><para ><para
>Gli spazi di colori sono descritti dal vettore <classname >Gli spazi di colori sono descritti dal vettore <classname
@ -810,7 +810,7 @@ public:
>Il filtro di pittura a olio usa il widget multiintero: </para> >Il filtro di pittura a olio usa il widget multiintero: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -818,7 +818,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1158,9 +1158,9 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
> viene chiamato per creare il widget di opzioni che &chalk; mostrerà nella scheda. Siccome c'è uno strumento per dispositivo di input per vista, lo stato di uno strumento può essere mantenuto nello strumento stesso. Questo metodo viene chiamato una sola volta: il widget di opzioni viene memorizzato e recuperato la prossima volta che lo strumento viene attivato. </para> > viene chiamato per creare il widget di opzioni che &chalk; mostrerà nella scheda. Siccome c'è uno strumento per dispositivo di input per vista, lo stato di uno strumento può essere mantenuto nello strumento stesso. Questo metodo viene chiamato una sola volta: il widget di opzioni viene memorizzato e recuperato la prossima volta che lo strumento viene attivato. </para>
<programlisting <programlisting
>QWidget* KisToolStar::createOptionWidget(QWidget* parent) >TQWidget* KisToolStar::createOptionWidget(TQWidget* parent)
{ {
QWidget *widget = KisToolShape::createOptionWidget(parent); TQWidget *widget = KisToolShape::createOptionWidget(parent);
m_optWidget = new WdgToolStar(widget); m_optWidget = new WdgToolStar(widget);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1218,7 +1218,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter); virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1457,7 +1457,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString filename = m_chain -> inputFile(); <co id="import4" /> TQString filename = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>name_file_dati</parameter >name_file_dati</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>dispositivo_io_dati</parameter >dispositivo_io_dati</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,9 +261,9 @@ this prolog
>Imposta i dati di rapporto dal file <replaceable >Imposta i dati di rapporto dal file <replaceable
>dispositivo_io_dati</replaceable >dispositivo_io_dati</replaceable
>. Il dispositivo IO può essere qualsiasi discendente della classe <classname >. Il dispositivo IO può essere qualsiasi discendente della classe <classname
>QIODevice</classname >TQIODevice</classname
>. Per esempio, per prendere dati direttamente dalla banca dati, crea un discendente di<classname >. Per esempio, per prendere dati direttamente dalla banca dati, crea un discendente di<classname
>QIODevice</classname >TQIODevice</classname
> e ridefiniscine tutte le funzionalità necessarie. </funcsynopsisinfo> > e ridefiniscine tutte le funzionalità necessarie. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -274,7 +274,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nome_file_modello</parameter >nome_file_modello</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -291,7 +291,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>dispositivo_io_modello</parameter >dispositivo_io_modello</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -299,9 +299,9 @@ this prolog
>Imposta il modello di rapporto dal file <replaceable >Imposta il modello di rapporto dal file <replaceable
>dispositivo_io_modello</replaceable >dispositivo_io_modello</replaceable
>. Il dispositivo IO può essere qualsiasi discendente della classe <classname >. Il dispositivo IO può essere qualsiasi discendente della classe <classname
>QIODevice</classname >TQIODevice</classname
>. Per esempio, per ottenere un modello di rapporto dalla rete o da una banca dati, crea un discendente di<classname >. Per esempio, per ottenere un modello di rapporto dalla rete o da una banca dati, crea un discendente di<classname
>QIODevice</classname >TQIODevice</classname
> e ridefiniscine tutte le funzionalità necessarie. </funcsynopsisinfo> > e ridefiniscine tutte le funzionalità necessarie. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -411,14 +411,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -596,7 +596,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -604,40 +604,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -301,7 +301,7 @@ class ToolStar : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
ToolStar(QObject *parent, const char *name, const QStringList &amp;); ToolStar(TQObject *parent, const char *name, const QStringList &amp;);
virtual ~ToolStar(); virtual ~ToolStar();
}; };
@ -325,7 +325,7 @@ typedef KGenericFactory&lt;ToolStar&gt; ToolStarFactory;
K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) ) K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) )
ToolStar::ToolStar(QObject *parent, const char *name, const QStringList &amp;) ToolStar::ToolStar(TQObject *parent, const char *name, const QStringList &amp;)
: KParts::Plugin(parent, name) : KParts::Plugin(parent, name)
{ {
setInstance(ToolStarFactory::instance()); setInstance(ToolStarFactory::instance());
@ -486,7 +486,7 @@ ToolStar::~ToolStar()
<listitem <listitem
><para ><para
>color: a <classname >color: a <classname
>QColor</classname >TQColor</classname
> representation of this channel for user interface visualization, for instance in histograms.</para > representation of this channel for user interface visualization, for instance in histograms.</para
></listitem> ></listitem>
<listitem <listitem
@ -522,7 +522,7 @@ ToolStar::~ToolStar()
> pure virtual classs can be divided into a number of groups: conversion, identification and manipulation. </para > pure virtual classs can be divided into a number of groups: conversion, identification and manipulation. </para
><para ><para
>All classes must be able to convert a pixel from and to 8 bit RGB (i.e., a <classname >All classes must be able to convert a pixel from and to 8 bit RGB (i.e., a <classname
>QColor</classname >TQColor</classname
>), and preferably also to and from 16 bit L*a*b. Additionally, there is a method to convert to any colorspace from the current colorspace. </para >), and preferably also to and from 16 bit L*a*b. Additionally, there is a method to convert to any colorspace from the current colorspace. </para
><para ><para
>Colorspaces are described by the <classname >Colorspaces are described by the <classname
@ -810,7 +810,7 @@ public:
>The oilpaint filter uses the multi integer widget: </para> >The oilpaint filter uses the multi integer widget: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -818,7 +818,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1158,9 +1158,9 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
> method is called to create the option widget that &chalk; will show in the tab. Since there is a tool per input device per view, the state of a tool can be kept in the tool. This method is only called once: the option widget is stored and retrieved the next time the tool is activated. </para> > method is called to create the option widget that &chalk; will show in the tab. Since there is a tool per input device per view, the state of a tool can be kept in the tool. This method is only called once: the option widget is stored and retrieved the next time the tool is activated. </para>
<programlisting <programlisting
>QWidget* KisToolStar::createOptionWidget(QWidget* parent) >TQWidget* KisToolStar::createOptionWidget(TQWidget* parent)
{ {
QWidget *widget = KisToolShape::createOptionWidget(parent); TQWidget *widget = KisToolShape::createOptionWidget(parent);
m_optWidget = new WdgToolStar(widget); m_optWidget = new WdgToolStar(widget);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1216,7 +1216,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter); virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1453,7 +1453,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString filename = m_chain -> inputFile(); <co id="import4" /> TQString filename = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>data_file_name</parameter >data_file_name</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>data_io_device</parameter >data_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,9 +261,9 @@ this prolog
>Gebruik het bestand <replaceable >Gebruik het bestand <replaceable
>data_io_device</replaceable >data_io_device</replaceable
> als bron voor rapportgegevens. IO-device kan elke successor van de <classname > als bron voor rapportgegevens. IO-device kan elke successor van de <classname
>QIODevice</classname >TQIODevice</classname
>-class zijn. Om bijvoorbeeld records direct uit een database te halen cre&euml;ert u een <classname >-class zijn. Om bijvoorbeeld records direct uit een database te halen cre&euml;ert u een <classname
>QIODevice</classname >TQIODevice</classname
>-successor en herdefinieert u de benodigde functionaliteit. </funcsynopsisinfo> >-successor en herdefinieert u de benodigde functionaliteit. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -274,7 +274,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>template_file_name</parameter >template_file_name</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -291,7 +291,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>template_io_device</parameter >template_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -299,8 +299,8 @@ this prolog
>Gebruik het bestand <replaceable >Gebruik het bestand <replaceable
>template_io_device</replaceable >template_io_device</replaceable
> als bron voor de rapportsjabloon. IO-device kan elke successor van de <classname > als bron voor de rapportsjabloon. IO-device kan elke successor van de <classname
>QIODevice</classname >TQIODevice</classname
>-class zijn. Om bijvoorbeeld een rapportsjabloon vanaf een netwerk of uit een database te halen creëert u een QIODevice-successor en herdefinieert u de benodigde functionaliteit. </funcsynopsisinfo> >-class zijn. Om bijvoorbeeld een rapportsjabloon vanaf een netwerk of uit een database te halen creëert u een TQIODevice-successor en herdefinieert u de benodigde functionaliteit. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -409,14 +409,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -594,7 +594,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -602,40 +602,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -300,7 +300,7 @@ class FerramentaEstrela : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
FerramentaEstrela(QObject *mae, const char *nome, const QStringList &amp;); FerramentaEstrela(TQObject *mae, const char *nome, const QStringList &amp;);
virtual ~FerramentaEstrela(); virtual ~FerramentaEstrela();
}; };
@ -324,7 +324,7 @@ typedef KGenericFactory&lt;FerramentaEstrela&gt; FerramentaEstrelaFactory;
K_EXPORT_COMPONENT_FACTORY( chalktoolstar, FerramentaEstrelaFactory( "chalk" ) ) K_EXPORT_COMPONENT_FACTORY( chalktoolstar, FerramentaEstrelaFactory( "chalk" ) )
FerramentaEstrela::FerramentaEstrela(QObject *mae, const char *nome, const QStringList &amp;) FerramentaEstrela::FerramentaEstrela(TQObject *mae, const char *nome, const QStringList &amp;)
: KParts::Plugin(mae, nome) : KParts::Plugin(mae, nome)
{ {
setInstance(FerramentaEstrelaFactory::instance()); setInstance(FerramentaEstrelaFactory::instance());
@ -485,7 +485,7 @@ FerramentaEstrela::~FerramentaEstrela()
<listitem <listitem
><para ><para
>cor: uma representação num <classname >cor: uma representação num <classname
>QColor</classname >TQColor</classname
> deste canal, para ser visualizado na interface do utilizador como, por exemplo, em histogramas.</para > deste canal, para ser visualizado na interface do utilizador como, por exemplo, em histogramas.</para
></listitem> ></listitem>
<listitem <listitem
@ -521,7 +521,7 @@ FerramentaEstrela::~FerramentaEstrela()
> podem ser divididos num conjunto de grupos: conversão, identificação e manipulação. </para > podem ser divididos num conjunto de grupos: conversão, identificação e manipulação. </para
><para ><para
>Todas as classes deverão ser capazes de converter um pixel de e para RGB de 8 bits (i.e., um <classname >Todas as classes deverão ser capazes de converter um pixel de e para RGB de 8 bits (i.e., um <classname
>QColor</classname >TQColor</classname
>) e, de preferência, de e para L*a*b de 16 bits. Para além disso, existe um método para converter para qualquer espaço de cores a partir do actual. </para >) e, de preferência, de e para L*a*b de 16 bits. Para além disso, existe um método para converter para qualquer espaço de cores a partir do actual. </para
><para ><para
>Os espaços de cores são descritos pelo vector <classname >Os espaços de cores são descritos pelo vector <classname
@ -809,7 +809,7 @@ public:
>O filtro de pintura a óleo usa o elemento multi-inteiros: </para> >O filtro de pintura a óleo usa o elemento multi-inteiros: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -817,7 +817,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1157,9 +1157,9 @@ void KisFerramentaEstrela::buttonRelease(KisButtonReleaseEvent *evento)
> é chamado para criar o elemento gráfico das opções que o &chalk; irá mostrar na página. Dado que existe uma ferramenta por cada dispositivo de entrada, por cada janela, o estado de uma ferramenta poderá ser mantido na ferramenta. Este método só é chamado uma vez: o elemento de opções é guardado e obtido da próxima vez que a ferramenta for activada. </para> > é chamado para criar o elemento gráfico das opções que o &chalk; irá mostrar na página. Dado que existe uma ferramenta por cada dispositivo de entrada, por cada janela, o estado de uma ferramenta poderá ser mantido na ferramenta. Este método só é chamado uma vez: o elemento de opções é guardado e obtido da próxima vez que a ferramenta for activada. </para>
<programlisting <programlisting
>QWidget* KisFerramentaEstrela::createOptionWidget(QWidget* mae) >TQWidget* KisFerramentaEstrela::createOptionWidget(TQWidget* mae)
{ {
QWidget *elemento = KisToolShape::createOptionWidget(mae); TQWidget *elemento = KisToolShape::createOptionWidget(mae);
m_optWidget = new WdgFerramentaEstrela(elemento); m_optWidget = new WdgFerramentaEstrela(elemento);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1215,7 +1215,7 @@ void KisFerramentaEstrela::buttonRelease(KisButtonReleaseEvent *evento)
virtual KisPaintOp * createOp(const KisPaintOpSettings *configuracao, KisPainter * pintor); virtual KisPaintOp * createOp(const KisPaintOpSettings *configuracao, KisPainter * pintor);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1452,7 +1452,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * vista = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * vista = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString ficheiro = m_chain -> inputFile(); <co id="import4" /> TQString ficheiro = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nome_ficheiro_dados</parameter >nome_ficheiro_dados</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>dispositivo_io_dados</parameter >dispositivo_io_dados</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,8 +261,8 @@ this prolog
>Configura os dados do relatório a partir do <replaceable >Configura os dados do relatório a partir do <replaceable
>dispositivo_io_dados</replaceable >dispositivo_io_dados</replaceable
>. O dispositivo de E/S poderá ser qualquer filha da classe <classname >. O dispositivo de E/S poderá ser qualquer filha da classe <classname
>QIODevice</classname >TQIODevice</classname
>. Por exemplo, para obter o modelo do relatório a partir de um armazenamento em rede ou de uma base de dados, crie uma filha da classe QIODevice e redefina toda a funcionalidade necessária. </funcsynopsisinfo> >. Por exemplo, para obter o modelo do relatório a partir de um armazenamento em rede ou de uma base de dados, crie uma filha da classe TQIODevice e redefina toda a funcionalidade necessária. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
<funcsynopsis> <funcsynopsis>
@ -272,7 +272,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nome_ficheiro_modelo</parameter >nome_ficheiro_modelo</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -289,7 +289,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>dispositivo_io_modelo</parameter >dispositivo_io_modelo</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -297,8 +297,8 @@ this prolog
>Configura o modelo de relatório a partir do <replaceable >Configura o modelo de relatório a partir do <replaceable
>dispositivo_io_modelo</replaceable >dispositivo_io_modelo</replaceable
>. O dispositivo de E/S poderá ser qualquer filha da classe <classname >. O dispositivo de E/S poderá ser qualquer filha da classe <classname
>QIODevice</classname >TQIODevice</classname
>. Por exemplo, para obter o modelo do relatório a partir de um armazenamento em rede ou de uma base de dados, crie uma filha da classe QIODevice e redefina toda a funcionalidade necessária. </funcsynopsisinfo> >. Por exemplo, para obter o modelo do relatório a partir de um armazenamento em rede ou de uma base de dados, crie uma filha da classe TQIODevice e redefina toda a funcionalidade necessária. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -407,14 +407,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -592,7 +592,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -600,40 +600,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -300,7 +300,7 @@ class FerramentaEstrela : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
FerramentaEstrela(QObject *mae, const char *nome, const QStringList &amp;); FerramentaEstrela(TQObject *mae, const char *nome, const QStringList &amp;);
virtual ~FerramentaEstrela(); virtual ~FerramentaEstrela();
}; };
@ -324,7 +324,7 @@ typedef KGenericfatory&lt;FerramentaEstrela&gt; FerramentaEstrelafatory;
K_EXPORT_COMPONENT_fatoRY( chalktoolstar, FerramentaEstrelafatory( "chalk" ) ) K_EXPORT_COMPONENT_fatoRY( chalktoolstar, FerramentaEstrelafatory( "chalk" ) )
FerramentaEstrela::FerramentaEstrela(QObject *mae, const char *nome, const QStringList &amp;) FerramentaEstrela::FerramentaEstrela(TQObject *mae, const char *nome, const QStringList &amp;)
: KParts::Plugin(mae, nome) : KParts::Plugin(mae, nome)
{ {
setInstance(FerramentaEstrelafatory::instance()); setInstance(FerramentaEstrelafatory::instance());
@ -485,7 +485,7 @@ FerramentaEstrela::~FerramentaEstrela()
<listitem <listitem
><para ><para
>cor: uma representação num <classname >cor: uma representação num <classname
>QColor</classname >TQColor</classname
> deste canal, para ser visualizado na interface do usuário como, por exemplo, em histogramas.</para > deste canal, para ser visualizado na interface do usuário como, por exemplo, em histogramas.</para
></listitem> ></listitem>
<listitem <listitem
@ -521,7 +521,7 @@ FerramentaEstrela::~FerramentaEstrela()
> podem ser divididos num conjunto de grupos: conversão, identificação e manipulação. </para > podem ser divididos num conjunto de grupos: conversão, identificação e manipulação. </para
><para ><para
>Todas as classes deverão ser capazes de converter um pixel de e para RGB de 8 bits (i.e., um <classname >Todas as classes deverão ser capazes de converter um pixel de e para RGB de 8 bits (i.e., um <classname
>QColor</classname >TQColor</classname
>) e, de preferência, de e para L*a*b de 16 bits. Além disso, existe um método para converter para qualquer espaço de cores a partir do atual. </para >) e, de preferência, de e para L*a*b de 16 bits. Além disso, existe um método para converter para qualquer espaço de cores a partir do atual. </para
><para ><para
>Os espaços de cores são descritos pelo vetor <classname >Os espaços de cores são descritos pelo vetor <classname
@ -809,7 +809,7 @@ public:
>O filtro de pintura à óleo usa o elemento multi-inteiros: </para> >O filtro de pintura à óleo usa o elemento multi-inteiros: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -817,7 +817,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1157,9 +1157,9 @@ void KisFerramentaEstrela::buttonRelease(KisButtonReleaseEvent *evento)
> é chamado para criar o elemento gráfico das opções que o &chalk; irá mostrar na página. Uma vez que existe uma ferramenta para cada dispositivo de entrada, para cada janela, o estado de uma ferramenta poderá ser mantido na ferramenta. Este método só é chamado uma vez: o elemento de opções é guardado e obtido da próxima vez que a ferramenta for ativada. </para> > é chamado para criar o elemento gráfico das opções que o &chalk; irá mostrar na página. Uma vez que existe uma ferramenta para cada dispositivo de entrada, para cada janela, o estado de uma ferramenta poderá ser mantido na ferramenta. Este método só é chamado uma vez: o elemento de opções é guardado e obtido da próxima vez que a ferramenta for ativada. </para>
<programlisting <programlisting
>QWidget* KisFerramentaEstrela::createOptionWidget(QWidget* mae) >TQWidget* KisFerramentaEstrela::createOptionWidget(TQWidget* mae)
{ {
QWidget *elemento = KisToolShape::createOptionWidget(mae); TQWidget *elemento = KisToolShape::createOptionWidget(mae);
m_optWidget = new WdgFerramentaEstrela(elemento); m_optWidget = new WdgFerramentaEstrela(elemento);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1215,7 +1215,7 @@ void KisFerramentaEstrela::buttonRelease(KisButtonReleaseEvent *evento)
virtual KisPaintOp * createOp(const KisPaintOpSettings *configuracao, KisPainter * pintor); virtual KisPaintOp * createOp(const KisPaintOpSettings *configuracao, KisPainter * pintor);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1452,7 +1452,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * vista = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * vista = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString arquivo = m_chain -> inputFile(); <co id="import4" /> TQString arquivo = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nome_arquivo_dados</parameter >nome_arquivo_dados</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>dispositivo_io_dados</parameter >dispositivo_io_dados</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,9 +261,9 @@ this prolog
>Configura os dados do relatório a partir do <replaceable >Configura os dados do relatório a partir do <replaceable
>dispositivo_io_dados</replaceable >dispositivo_io_dados</replaceable
>. O dispositivo de E/S poderá ser qualquer filha da classe <classname >. O dispositivo de E/S poderá ser qualquer filha da classe <classname
>QIODevice</classname >TQIODevice</classname
>. Por exemplo, para obter o modelo do relatório diretamente de um baco de dados, crie uma filha da classe <classname >. Por exemplo, para obter o modelo do relatório diretamente de um baco de dados, crie uma filha da classe <classname
>QIODevice</classname >TQIODevice</classname
> e redefina toda a funcionalidade necessária. </funcsynopsisinfo> > e redefina toda a funcionalidade necessária. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -274,7 +274,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>nome_arquivo_modelo</parameter >nome_arquivo_modelo</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -291,7 +291,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>dispositivo_io_modelo</parameter >dispositivo_io_modelo</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -299,8 +299,8 @@ this prolog
>Configura o modelo de relatório a partir do <replaceable >Configura o modelo de relatório a partir do <replaceable
>dispositivo_io_modelo</replaceable >dispositivo_io_modelo</replaceable
>. O dispositivo de E/S poderá ser qualquer filha da classe <classname >. O dispositivo de E/S poderá ser qualquer filha da classe <classname
>QIODevice</classname >TQIODevice</classname
>. Por exemplo, para obter o modelo do relatório a partir de um armazenamento em rede ou de um banco de dados, crie uma filha da classe QIODevice e redefina toda a funcionalidade necessária. </funcsynopsisinfo> >. Por exemplo, para obter o modelo do relatório a partir de um armazenamento em rede ou de um banco de dados, crie uma filha da classe TQIODevice e redefina toda a funcionalidade necessária. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -409,14 +409,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -594,7 +594,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -602,40 +602,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -236,7 +236,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>data_file_name</parameter >data_file_name</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -253,7 +253,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>data_io_device</parameter >data_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -261,9 +261,9 @@ this prolog
>Установить данные отчёта из файла <replaceable >Установить данные отчёта из файла <replaceable
>data_io_device</replaceable >data_io_device</replaceable
>. Устройство IO может быть любым преемником класса <classname >. Устройство IO может быть любым преемником класса <classname
>QIODevice</classname >TQIODevice</classname
>. Например, для получения записей непосредственно из базы данных, создайте преемника <classname >. Например, для получения записей непосредственно из базы данных, создайте преемника <classname
>QIODevice</classname >TQIODevice</classname
> и переопределите у него необходимую функциональность. </funcsynopsisinfo> > и переопределите у него необходимую функциональность. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -274,7 +274,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>template_file_name</parameter >template_file_name</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -291,7 +291,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>template_io_device</parameter >template_io_device</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -299,9 +299,9 @@ this prolog
>Установить шаблон отчёта из файла <replaceable >Установить шаблон отчёта из файла <replaceable
>template_io_device</replaceable >template_io_device</replaceable
>. Устройство IO может быть любым преемником класса <classname >. Устройство IO может быть любым преемником класса <classname
>QIODevice</classname >TQIODevice</classname
>. Например, для получения шаблона отчёта из сети или базы данных, создайте преемника <classname >. Например, для получения шаблона отчёта из сети или базы данных, создайте преемника <classname
>QIODevice</classname >TQIODevice</classname
> и переопределите у него необходимую функциональность. </funcsynopsisinfo> > и переопределите у него необходимую функциональность. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -412,14 +412,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -597,7 +597,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -605,40 +605,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

@ -300,7 +300,7 @@ class ToolStar : public KParts::Plugin
{ {
TQ_OBJECT TQ_OBJECT
public: public:
ToolStar(QObject *parent, const char *name, const QStringList &amp;); ToolStar(TQObject *parent, const char *name, const QStringList &amp;);
virtual ~ToolStar(); virtual ~ToolStar();
}; };
@ -324,7 +324,7 @@ typedef KGenericFactory&lt;ToolStar&gt; ToolStarFactory;
K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) ) K_EXPORT_COMPONENT_FACTORY( chalktoolstar, ToolStarFactory( "chalk" ) )
ToolStar::ToolStar(QObject *parent, const char *name, const QStringList &amp;) ToolStar::ToolStar(TQObject *parent, const char *name, const QStringList &amp;)
: KParts::Plugin(parent, name) : KParts::Plugin(parent, name)
{ {
setInstance(ToolStarFactory::instance()); setInstance(ToolStarFactory::instance());
@ -485,7 +485,7 @@ ToolStar::~ToolStar()
<listitem <listitem
><para ><para
>färg: en representation med <classname >färg: en representation med <classname
>QColor</classname >TQColor</classname
> av kanalen för visualisering i användargränssnitt, till exempel i histogram.</para > av kanalen för visualisering i användargränssnitt, till exempel i histogram.</para
></listitem> ></listitem>
<listitem <listitem
@ -521,7 +521,7 @@ ToolStar::~ToolStar()
> kan delas upp i ett antal grupper: konvertering, identifikation och behandling. </para > kan delas upp i ett antal grupper: konvertering, identifikation och behandling. </para
><para ><para
>Alla klasser måste kunna konvertera en bildpunkt från och till 8-bitars RGB (dvs. en <classname >Alla klasser måste kunna konvertera en bildpunkt från och till 8-bitars RGB (dvs. en <classname
>QColor</classname >TQColor</classname
>), och helst också till och från 16-bitars L*a*b*. Dessutom finns en metod för att konvertera till vilken annan färgrymd som helst från den nuvarande färgrymden. </para >), och helst också till och från 16-bitars L*a*b*. Dessutom finns en metod för att konvertera till vilken annan färgrymd som helst från den nuvarande färgrymden. </para
><para ><para
>Färgrymder beskrivs av vektorn <classname >Färgrymder beskrivs av vektorn <classname
@ -809,7 +809,7 @@ public:
>Oljemålningsfiltret använder flerheltalskomponenten: </para> >Oljemålningsfiltret använder flerheltalskomponenten: </para>
<programlisting <programlisting
>KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(QWidget* parent, KisPaintDeviceSP /*dev*/) >KisFilterConfigWidget * KisOilPaintFilter::createConfigurationWidget(TQWidget* parent, KisPaintDeviceSP /*dev*/)
{ {
vKisIntegerWidgetParam param; vKisIntegerWidgetParam param;
param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) ); param.push_back( KisIntegerWidgetParam( 1, 5, 1, i18n("Brush size"), "brushSize" ) );
@ -817,7 +817,7 @@ public:
return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param ); return new KisMultiIntegerFilterWidget(parent, id().id().ascii(), id().id().ascii(), param );
} }
KisFilterConfiguration* KisOilPaintFilter::configuration(QWidget* nwidget) KisFilterConfiguration* KisOilPaintFilter::configuration(TQWidget* nwidget)
{ {
KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget; KisMultiIntegerFilterWidget* widget = (KisMultiIntegerFilterWidget*) nwidget;
if( widget == 0 ) if( widget == 0 )
@ -1157,9 +1157,9 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
> anropas för att skapa den grafiska inställningskomponenten som &chalk; visar under fliken. Eftersom det finns ett verktyg per inmatningsenhet och per vy, kan tillståndet hos ett verktyg lagras i verktyget. Metoden anropas bara en gång: den grafiska inställningskomponenten lagras och hämtas nästa gång verktyget aktiveras. </para> > anropas för att skapa den grafiska inställningskomponenten som &chalk; visar under fliken. Eftersom det finns ett verktyg per inmatningsenhet och per vy, kan tillståndet hos ett verktyg lagras i verktyget. Metoden anropas bara en gång: den grafiska inställningskomponenten lagras och hämtas nästa gång verktyget aktiveras. </para>
<programlisting <programlisting
>QWidget* KisToolStar::createOptionWidget(QWidget* parent) >TQWidget* KisToolStar::createOptionWidget(TQWidget* parent)
{ {
QWidget *widget = KisToolShape::createOptionWidget(parent); TQWidget *widget = KisToolShape::createOptionWidget(parent);
m_optWidget = new WdgToolStar(widget); m_optWidget = new WdgToolStar(widget);
TQ_CHECK_PTR(m_optWidget); TQ_CHECK_PTR(m_optWidget);
@ -1215,7 +1215,7 @@ void KisToolStar::buttonRelease(KisButtonReleaseEvent *event)
virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter); virtual KisPaintOp * createOp(const KisPaintOpSettings *settings, KisPainter * painter);
virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); } virtual KisID id() { return KisID("paintSmeary", i18n("Smeary Brush")); }
virtual bool userVisible(KisColorSpace * ) { return false; } virtual bool userVisible(KisColorSpace * ) { return false; }
virtual QString pixmap() { return ""; } virtual TQString pixmap() { return ""; }
}; };
</programlisting> </programlisting>
@ -1452,7 +1452,7 @@ X-TDE-Library=libchalkXXXexport
KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" /> KisDoc * doc = dynamic_cast&lt;KisDoc*&gt;(m_chain -> outputDocument()); <co id="import2" />
KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" /> KisView * view = static_cast&lt;KisView*&gt;(doc -> views().getFirst()); <co id="import3" />
QString filename = m_chain -> inputFile(); <co id="import4" /> TQString filename = m_chain -> inputFile(); <co id="import4" />
if (!doc) if (!doc)
return KoFilter::CreationError; return KoFilter::CreationError;

@ -234,7 +234,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>datafilnamn</parameter >datafilnamn</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -251,7 +251,7 @@ this prolog
>setReportData</function >setReportData</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>data io-enhet</parameter >data io-enhet</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -259,9 +259,9 @@ this prolog
>Hämtar rapportdata från filen <replaceable >Hämtar rapportdata från filen <replaceable
>data io-enhet</replaceable >data io-enhet</replaceable
>. I/O-enheten kan vara vilken klass som helst härledd från klassen <replaceable >. I/O-enheten kan vara vilken klass som helst härledd från klassen <replaceable
>QIODevice</replaceable >TQIODevice</replaceable
>. För att till exempel direkt hämta poster från databasen, skapa en härledd klass från <classname >. För att till exempel direkt hämta poster från databasen, skapa en härledd klass från <classname
>QIODevice</classname >TQIODevice</classname
> och definiera om alla nödvändiga funktioner. </funcsynopsisinfo> > och definiera om alla nödvändiga funktioner. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
@ -272,7 +272,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QString &amp;<parameter >const TQString &amp;<parameter
>mallfilnamn</parameter >mallfilnamn</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -289,7 +289,7 @@ this prolog
>setReportTemplate</function >setReportTemplate</function
></funcdef ></funcdef
> <paramdef > <paramdef
>const QIODevice &amp;<parameter >const TQIODevice &amp;<parameter
>mall io-enhet</parameter >mall io-enhet</parameter
></paramdef ></paramdef
> </funcprototype> > </funcprototype>
@ -297,8 +297,8 @@ this prolog
>Hämtar rapportmall från filen <replaceable >Hämtar rapportmall från filen <replaceable
>mall io-enhet</replaceable >mall io-enhet</replaceable
>. I/O-enheten kan vara vilken klass som helst härledd från klassen <classname >. I/O-enheten kan vara vilken klass som helst härledd från klassen <classname
>QIODevice</classname >TQIODevice</classname
>. För att till exempel direkt hämta en rapportmall från nätverket eller en databas, skapa en härledd klass från QIODevice och definiera om alla nödvändiga funktioner. </funcsynopsisinfo> >. För att till exempel direkt hämta en rapportmall från nätverket eller en databas, skapa en härledd klass från TQIODevice och definiera om alla nödvändiga funktioner. </funcsynopsisinfo>
</funcsynopsis> </funcsynopsis>
</sect1> </sect1>
@ -407,14 +407,14 @@ public:
KugarWidgetPlugin (); KugarWidgetPlugin ();
QStringList keys () const; QStringList keys () const;
QWidget *create (const QString &amp; classname, QWidget * parent = TQWidget *create (const TQString &amp; classname, TQWidget * parent =
0, const char *name = 0); 0, const char *name = 0);
QString group (const QString &amp;) const; TQString group (const TQString &amp;) const;
QIconSet iconSet (const QString &amp;) const; QIconSet iconSet (const TQString &amp;) const;
QString includeFile (const QString &amp;) const; TQString includeFile (const TQString &amp;) const;
QString toolTip (const QString &amp;) const; TQString toolTip (const TQString &amp;) const;
QString whatsThis (const QString &amp;) const; TQString whatsThis (const TQString &amp;) const;
bool isContainer (const QString &amp;) const; bool isContainer (const TQString &amp;) const;
}; };
</programlisting> </programlisting>
</sect3> </sect3>
@ -592,7 +592,7 @@ QStringList KugarWidgetPlugin::keys () const
return list; return list;
} }
QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent, TQWidget* KugarWidgetPlugin::create (const TQString &amp; key, TQWidget * parent,
const char *name) const char *name)
{ {
if (key == "KReportViewer") if (key == "KReportViewer")
@ -600,40 +600,40 @@ QWidget* KugarWidgetPlugin::create (const QString &amp; key, QWidget * parent,
return 0; return 0;
} }
QString KugarWidgetPlugin::group (const QString &amp; feature) const TQString KugarWidgetPlugin::group (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Display"; return "Display";
return QString::null; return TQString::null;
} }
QIconSet KugarWidgetPlugin::iconSet (const QString &amp;) const QIconSet KugarWidgetPlugin::iconSet (const TQString &amp;) const
{ {
return QIconSet (QPixmap (kugar_pixmap)); return QIconSet (QPixmap (kugar_pixmap));
} }
QString KugarWidgetPlugin::includeFile (const QString &amp; feature) const TQString KugarWidgetPlugin::includeFile (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "kugar.h"; return "kugar.h";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::toolTip (const QString &amp; feature) const TQString KugarWidgetPlugin::toolTip (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "Kugar report viewer widget"; return "Kugar report viewer widget";
return QString::null; return TQString::null;
} }
QString KugarWidgetPlugin::whatsThis (const QString &amp; feature) const TQString KugarWidgetPlugin::whatsThis (const TQString &amp; feature) const
{ {
if (feature == "KReportViewer") if (feature == "KReportViewer")
return "A widget to view xml reports"; return "A widget to view xml reports";
return QString::null; return TQString::null;
} }
bool KugarWidgetPlugin::isContainer (const QString &amp;) const bool KugarWidgetPlugin::isContainer (const TQString &amp;) const
{ {
return FALSE; return FALSE;
} }

Loading…
Cancel
Save