Remove the tq in front of these incorrectly TQt4-converted methods/data members:

tqrepaint[...]
tqinvalidate[...]
tqparent[...]
tqmask[...]
tqlayout[...]
tqalignment[...]


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 12 years ago
parent dcb06497ea
commit 96698e12d1

@ -77,7 +77,7 @@ Kalzium::Kalzium()
connect( m_PerodicTableView, TQT_SIGNAL( ElementClicked( int ) ), TQT_TQOBJECT(this), TQT_SLOT( openInformationDialog( int ) ));
connect( m_PerodicTableView, TQT_SIGNAL( MouseOver( int ) ), TQT_TQOBJECT(this), TQT_SLOT( slotStatusbar( int ) ));
// tqlayouting
// layouting
setCentralWidget( centralWidget );
centralWidget->show();

@ -46,29 +46,29 @@ KalziumDataObject::KalziumDataObject()
KURL url;
url.setPath( locate("data", "kalzium/data/"));
url.setFileName( "data.xml" );
TQFile tqlayoutFile( url.path() );
TQFile layoutFile( url.path() );
if (!tqlayoutFile.exists())
if (!layoutFile.exists())
{
kdDebug() << "data.xml not found, exiting" << endl;
kapp->exit(0);
return;
}
if (!tqlayoutFile.open(IO_ReadOnly))
if (!layoutFile.open(IO_ReadOnly))
{
kdDebug() << "data.xml IO-error" << endl;
return;
}
// Check if the document is well-formed
if (!doc.setContent(&tqlayoutFile))
if (!doc.setContent(&layoutFile))
{
kdDebug() << "wrong xml" << endl;
tqlayoutFile.close();
layoutFile.close();
return;
}
tqlayoutFile.close();
layoutFile.close();
ElementList = readData( doc );
m_numOfElements = ElementList.count();

@ -139,7 +139,7 @@ void KalziumTip::display()
m_richText->setWidth(400);
m_tqmaskEffect = isVisible() ? Plain : Dissolve;
m_maskEffect = isVisible() ? Plain : Dissolve;
m_dissolveSize = 24;
m_dissolveDelta = -1;
@ -178,7 +178,7 @@ void KalziumTip::displayInternal()
resize(width, height);
// create and set transparency tqmask
switch(m_tqmaskEffect)
switch(m_maskEffect)
{
case Plain:
plainMask();
@ -218,20 +218,20 @@ void KalziumTip::displayInternal()
void KalziumTip::dissolveMask()
{
TQPainter tqmaskPainter(&m_tqmask);
TQPainter maskPainter(&m_tqmask);
m_tqmask.fill(TQt::black);
tqmaskPainter.setBrush(TQt::white);
tqmaskPainter.setPen(TQt::white);
tqmaskPainter.drawRoundRect(m_tqmask.rect(), 1600 / m_tqmask.rect().width(),
maskPainter.setBrush(TQt::white);
maskPainter.setPen(TQt::white);
maskPainter.drawRoundRect(m_tqmask.rect(), 1600 / m_tqmask.rect().width(),
1600 / m_tqmask.rect().height());
m_dissolveSize += m_dissolveDelta;
if (m_dissolveSize > 0)
{
tqmaskPainter.setRasterOp(TQt::EraseROP);
maskPainter.setRasterOp(TQt::EraseROP);
int x, y, s;
const int size = 16;
@ -247,7 +247,7 @@ void KalziumTip::dissolveMask()
{
s = 0;
}
tqmaskPainter.drawEllipse(x - s / 2, y - s / 2, s, s);
maskPainter.drawEllipse(x - s / 2, y - s / 2, s, s);
}
}
}
@ -269,13 +269,13 @@ void KalziumTip::hide()
void KalziumTip::plainMask()
{
TQPainter tqmaskPainter(&m_tqmask);
TQPainter maskPainter(&m_tqmask);
m_tqmask.fill(TQt::black);
tqmaskPainter.setBrush(TQt::white);
tqmaskPainter.setPen(TQt::white);
tqmaskPainter.drawRoundRect(m_tqmask.rect(), 1600 / m_tqmask.rect().width(),
maskPainter.setBrush(TQt::white);
maskPainter.setPen(TQt::white);
maskPainter.drawRoundRect(m_tqmask.rect(), 1600 / m_tqmask.rect().width(),
1600 / m_tqmask.rect().height());
setMask(m_tqmask);
m_frameTimer.stop();

@ -73,7 +73,7 @@ class KalziumTip : public TQWidget
TQPixmap m_icon; //icon shown on the tip
TQPixmap m_noElemIcon; //icon for element wich have no image
MaskEffect m_tqmaskEffect; //inidicates to show tqmask effect or plain
MaskEffect m_maskEffect; //inidicates to show tqmask effect or plain
TQSimpleRichText* m_richText;
int m_dissolveSize;

@ -127,7 +127,7 @@
<Q_SLOTS>
<slot access="protected">slotCalcButtonClicked()</slot>
</Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>kpushbutton.h</includehint>

@ -172,7 +172,7 @@ MoleculeParser::parseSubmolecule(double *_resultMass,
// Parse a term within the molecule, i.e. a single atom or a
// submolecule within tqparenthesis followed by an optional number.
// submolecule within parenthesis followed by an optional number.
// Examples: Bk, Mn2, (COOH)2
//
// Return true if correct, otherwise return false.

@ -741,7 +741,7 @@ void PerodicTableView::mouseMoveEvent( TQMouseEvent * /*mouse*/ )
//JH: only update() if we were showing a tooltip
if ( m_tooltipElementNumber || m_showLegendTooltip )
{
//this tqinvalidates the number. If the mouse
//this invalidates the number. If the mouse
//is moved, the number is invalid.
m_tooltipElementNumber = 0;
m_showLegendTooltip = false;

@ -248,7 +248,7 @@
</widget>
<customwidgets>
</customwidgets>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>knuminput.h</includehint>
<includehint>kcombobox.h</includehint>

@ -901,7 +901,7 @@
</widget>
<customwidgets>
</customwidgets>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
<includehint>kcolorbutton.h</includehint>

@ -67,5 +67,5 @@
</spacer>
</grid>
</widget>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -163,5 +163,5 @@
</widget>
</grid>
</widget>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -178,7 +178,7 @@ the state of matter</string>
</customwidgets>
<connections>
</connections>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>knuminput.h</includehint>
</includehints>

@ -145,7 +145,7 @@ class Spectrum
/**
* @return the tqparent element of this spectrum
*/
Element* tqparentElement()
Element* parentElement()
{ return m_parentElement; }
private:

@ -216,7 +216,7 @@
<Q_SLOTS>
<slot access="protected">slotExportAsImage()</slot>
</Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>spectrumwidget.h</includehint>
<includehint>kpushbutton.h</includehint>

@ -415,9 +415,9 @@ TQPixmap SpectrumWidget::pixmap()
TQString text;
if( m_type == EmissionSpectrum )
text = i18n( "Emission spectrum of %1" ).tqarg( m_spectrum->tqparentElement()->elname() );
text = i18n( "Emission spectrum of %1" ).tqarg( m_spectrum->parentElement()->elname() );
else
text = i18n( "Absorption spectrum of %1" ).tqarg( m_spectrum->tqparentElement()->elname() );
text = i18n( "Absorption spectrum of %1" ).tqarg( m_spectrum->parentElement()->elname() );
TQPainter p( &tmp );
p.setPen( TQt::black );

@ -194,7 +194,7 @@ of the elements</string>
<slot>setValue(int)</slot>
</connection>
</connections>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>knuminput.h</includehint>
</includehints>

@ -178,5 +178,5 @@
<tabstop>kcfg_hintHideTime</tabstop>
<tabstop>kcfg_useSounds</tabstop>
</tabstops>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -58,5 +58,5 @@ the button to get new vocabulary files.</string>
</widget>
</grid>
</widget>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -102,7 +102,7 @@ void VocabEdit::slotSave()
}
doc->saveAs(TQT_TQOBJECT(this), KURL(fileName), KEduVocDocument::automatic, "kanagram");
VocabSettings *settings = (VocabSettings*)this->tqparentWidget();
VocabSettings *settings = (VocabSettings*)this->parentWidget();
settings->refreshView();
if(m_textChanged)

@ -224,5 +224,5 @@
<tabstop>btnClose</tabstop>
<tabstop>lboxWords</tabstop>
</tabstops>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -113,5 +113,5 @@
<Q_SLOTS>
<slot>createNew()</slot>
</Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -214,7 +214,7 @@
</widget>
<customwidgets>
</customwidgets>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kfontdialog.h</includehint>
<includehint>kcolorbutton.h</includehint>

@ -96,5 +96,5 @@
</spacer>
</vbox>
</widget>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -34,14 +34,14 @@
typedef KParts::GenericFactory<KEducaPart> KEducaPartFactory;
K_EXPORT_COMPONENT_FACTORY( libkeducapart, KEducaPartFactory )
KEducaPart::KEducaPart( TQWidget *tqparentWidget, const char *widgetName,
KEducaPart::KEducaPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name,
const TQStringList &/*args*/ )
: KParts::ReadOnlyPart( tqparent, name )
{
setInstance( KEducaPartFactory::instance() );
m_view = new KEducaView( tqparentWidget, widgetName );
m_view = new KEducaView( parentWidget, widgetName );
m_view->show();
setWidget( m_view );

@ -41,7 +41,7 @@ class KEducaPart : public KParts::ReadOnlyPart
/*
* Constructor.
*/
KEducaPart( TQWidget *tqparentWidget, const char *widgetName, TQObject *tqparent,
KEducaPart( TQWidget *parentWidget, const char *widgetName, TQObject *tqparent,
const char *name, const TQStringList &args );
/*

@ -860,7 +860,7 @@
<slot access="private" specifier="pure virtual">slotDataChanged()</slot>
<slot access="private" specifier="pure virtual">slotAnswerSelected(TQListViewItem *)</slot>
</Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>

@ -459,7 +459,7 @@
<tabstop>buttonOk</tabstop>
<tabstop>buttonCancel</tabstop>
</tabstops>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>

@ -312,7 +312,7 @@
<tabstop>openDocumentRB</tabstop>
<tabstop>openRecentDocumentRB</tabstop>
</tabstops>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>kpushbutton.h</includehint>

@ -366,5 +366,5 @@
<slot>slotButtonAdd()</slot>
<slot>slotServerSelected(TQListViewItem*)</slot>
</Q_SLOTS>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -88,7 +88,7 @@
* RightWidget is really LeftWidget ยฌ.ยฌ
* There is no need to store p_rightWidget as a class member
* Bump version to 0.2.1
* Improve tqlayouting of mapasker
* Improve layouting of mapasker
* Make the scrollbar work also when clicking on the arrows
(sliderMoved -> valueChanged)
* Fix resizing bug in mapWidget that showed a inexistant part of the

@ -91,5 +91,5 @@ For example, in Catalan, if this is unchecked and you type "o", the o and รฒ wil
</widget>
</grid>
</widget>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -90,5 +90,5 @@ Default is no sound.</string>
</widget>
</grid>
</widget>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -221,7 +221,7 @@
</widget>
</grid>
</widget>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kactivelabel.h</includehint>
<includehint>kactivelabel.h</includehint>

@ -1142,7 +1142,7 @@
* Fix the moving system again, it now only redraws exactly those
objects that need to be redrawn. E.g. when a constrained point
was moved, before it was assumed that all of its tqparents, and
was moved, before it was assumed that all of its parents, and
their tqchildren would move, whereas in reality, a constrained point
does not move the curve it is constrained to. This is now taken
into account for. This much optimizes the case where we move the
@ -1200,7 +1200,7 @@
could not open.. I'm backporting this into Kig 0.6.0 and
informing the packager..
* clean up: Objects now store their tqparents in order, so that no
* clean up: Objects now store their parents in order, so that no
parsing has to be done in the calc() function.. Also some more
modifications making that function a bit simpler are included.
Specifically, ArgsParser now does the checking of the arguments,
@ -1218,7 +1218,7 @@
2003-09-01 Dominique Devriese <devriese@kde.org>
* only move an object if its tqparents are not yet moving.. This
* only move an object if its parents are not yet moving.. This
fixes bug #63250.
* remove the defective operator| and operator& implementations for

@ -19,7 +19,7 @@ An ObjectImp represents the current state of an object in Kig. It
keeps information about what type of object it is ( e.g. a line, a
point, a circle etc. ), and its exact data ( e.g. the center and
radius of the circle ). It is *not* in any way aware of how the
object was calculated from its tqparents (e.g. is this a line that is
object was calculated from its parents (e.g. is this a line that is
constructed as the parallel of another line, or as the line going
through two given points ? ) or how it is drawn on the window (
e.g. the thickness of the line, its color etc. ).
@ -50,21 +50,21 @@ calculating an ObjectImp from other ObjectImp's. It is also a node in
the dependency graph of a certain document. E.g. a LineImp can be
calculated from the two PointImp's it has to go through; every time
either of them moves, this calculation is redone. In this case, there
would be an ObjectCalcer that keeps a reference to its two tqparents (
would be an ObjectCalcer that keeps a reference to its two parents (
the ObjectCalcer's representing the points ), and that will calculate
its ObjectImp value every time it is asked to do so ( i.e. every time
one of its tqparents moves.. ).
one of its parents moves.. ).
Because of the complex relations that ObjectCalcer's hold to other
ObjectCalcer's and to other classes, they have been made
reference-counted. This means that they keep a count internally of
how much times a pointer to them is held. If this count reaches 0,
this means that nobody needs them anymore, and they delete themselves.
E.g. an ObjectCalcer always keeps a reference to its tqparents, to
E.g. an ObjectCalcer always keeps a reference to its parents, to
ensure that those aren't deleted before it is deleted.
In the inheritance graph of a document, the lowermost objects keep
references to their tqparents and those keep reference to their tqparents,
references to their parents and those keep reference to their parents,
so that all of the top of the graph is kept alive. Of course, someone
needs to keep a reference to the bottommost objects in the graph,
because otherwise, the entire graph would be deleted. As we will see
@ -76,7 +76,7 @@ At the end of the program, this reference is released, and all the
objects are deleted.
A special case of an ObjectCalcer is the ObjectConstCalcer. This is
an ObjectCalcer that has no tqparents, and only holds some data. The
an ObjectCalcer that has no parents, and only holds some data. The
data is held as an ObjectImp of some type, and it will remain
constant, and no calculation needs to be done to get it, it is just
returned every time it is needed.
@ -159,9 +159,9 @@ Most of this is handled by the TextType class.
2.1.2 TextType
The TextType class is an implementation of an ObjectType. It tqcontains
code specifying how to calculate a TextImp from its tqparents, and for
code specifying how to calculate a TextImp from its parents, and for
how it behaves on user input. A text object has at least three
tqparents, and can handle any number of optional arguments. The three
parents, and can handle any number of optional arguments. The three
mandatory arguments are an int, which is set to 1 or 0 depending on
whether the label needs a surrounding box, a PointImp, containing the
location of the text label, and a string containing the text of the
@ -170,7 +170,7 @@ additional argument is used to replace the lowest-numbered of those
tokens, with its string representation. The function
ObjectImp::fillInNextEscape is used for this.
For example, if a TextType has the following tqparents:
For example, if a TextType has the following parents:
a IntImp with value 0
a PointImp with value (0,0)
a String with value "This segment is %1 units long."
@ -197,7 +197,7 @@ proud of this design.
In the implementation of this, we use the concept of constrained
points. This is a point that is attached to a certain curve. It is
implemented in Kig by the ConstrainedPointType, which takes a CurveImp
and a DoubleImp as tqparents and calculates a Point from these by using
and a DoubleImp as parents and calculates a Point from these by using
the CurveImp::getPoint function.
2.2.2 The Implementation
@ -213,7 +213,7 @@ smallest part of the hierarchy that contains all paths from the first
point to the second point. We then determine all objects that are not
*on* one of those paths ( meaning that they are not calculated from
the first point, or another object that is on one of those paths ),
but that are tqparents of one or more objects that are on those paths.
but that are parents of one or more objects that are on those paths.
I call this set of objects the "side of the path" sometimes in the
code. The function that finds them is called sideOfTreePath.
@ -260,7 +260,7 @@ does by definition not change. Also, if the constrained point is
redefined so that it is no longer constrained to any curve, this is a
major problem, because it would tqinvalidate the locus. Another point
is that in practice, the locus depends on more objects than its
tqparents alone. This is not a good thing, because it makes it
parents alone. This is not a good thing, because it makes it
impossible to optimise drawing of the objects, using the information
about which objects depend on which others, because this information
is invalid.

@ -102,8 +102,8 @@
- extend ObjectFactory::sensiblePointCalcer to also construct
intersection points of stuff... (pino: done for lines)
- when moving an object that wants to move its tqparents, try to check if
it is itself not an indirect child of one of the tqparents it is
- when moving an object that wants to move its parents, try to check if
it is itself not an indirect child of one of the parents it is
trying to move, and forbid the move in that case, as it will lead
to chaotic behaviour. I am not sure if this is really well
possible, but I have to look at it.

@ -1,27 +1,27 @@
<?xml version="1.0"?>
<drgenius>
<drgeo name="Figure 1" scale="30.000000" origin_x="0.000000" origin_y="0.000000" grid="False">
<point id="827A5C0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="827A5C0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-5.833333</x>
<y>2.950000</y>
</point>
<point id="8248660" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8248660" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-4.666666</x>
<y>-0.783334</y>
</point>
<point id="822A6B0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="822A6B0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>2.333334</x>
<y>-0.216667</y>
</point>
<line id="822BC80" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<line id="822BC80" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="827A5C0"/>
<tqparent ref="8248660"/>
</line>
<line id="8249A48" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<line id="8249A48" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="822A6B0"/>
<tqparent ref="8248660"/>
</line>
<angle id="82B86D8" type="3pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<angle id="82B86D8" type="3pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="822A6B0"/>
<tqparent ref="8248660"/>
<tqparent ref="827A5C0"/>

@ -1,69 +1,69 @@
<?xml version="1.0"?>
<drgenius>
<drgeo name="Figure 1" scale="30.000000" origin_x="0.000000" origin_y="0.000000" grid="False">
<point id="82257B8" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82257B8" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-6.700000</x>
<y>2.250000</y>
</point>
<point id="8250458" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8250458" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>0.266667</x>
<y>2.083333</y>
</point>
<point id="8250D30" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8250D30" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-0.800000</x>
<y>-2.516667</y>
</point>
<point id="8255158" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8255158" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-2.766667</x>
<y>1.883333</y>
</point>
<point id="8226648" type="Middle_2pts" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8226648" type="Middle_2pts" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<tqparent ref="82257B8"/>
<tqparent ref="8255158"/>
</point>
<halfLine id="8225B10" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<halfLine id="8225B10" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="8250D30"/>
<tqparent ref="8250458"/>
</halfLine>
<point id="82043A0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82043A0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-2.833333</x>
<y>-0.983334</y>
</point>
<point id="8115668" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8115668" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>1.500000</x>
<y>1.883333</y>
</point>
<point id="82AED28" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82AED28" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-0.566667</x>
<y>3.983333</y>
</point>
<segment id="82B0888" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<segment id="82B0888" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="82257B8"/>
<tqparent ref="82AED28"/>
</segment>
<line id="82B1B80" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<line id="82B1B80" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="82043A0"/>
<tqparent ref="8115668"/>
</line>
<point id="82B26F0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82B26F0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-5.533333</x>
<y>-0.383333</y>
</point>
<vector id="82A3948" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<vector id="82A3948" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<Ox>-2.800000</Ox>
<Oy>1.883333</Oy>
<tqparent ref="8255158"/>
<tqparent ref="82B26F0"/>
</vector>
<point id="82B4358" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82B4358" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>3.166667</x>
<y>-0.683333</y>
</point>
<circle id="82B5918" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<circle id="82B5918" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="82B4358"/>
<tqparent ref="8115668"/>
</circle>
<arcCircle id="82B5D30" type="3pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<arcCircle id="82B5D30" type="3pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="82257B8"/>
<tqparent ref="82B26F0"/>
<tqparent ref="8250D30"/>

@ -1,64 +1,64 @@
<?xml version="1.0"?>
<drgenius>
<drgeo name="Figure 1" scale="30.000000" origin_x="0.000000" origin_y="0.000000" grid="False">
<point id="82076B0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82076B0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>0.766667</x>
<y>2.450000</y>
</point>
<point id="8281F08" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8281F08" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-3.300000</x>
<y>2.650000</y>
</point>
<point id="82535F0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82535F0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-7.900000</x>
<y>-2.583333</y>
</point>
<point id="822F448" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="822F448" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-7.800000</x>
<y>0.116667</y>
</point>
<point id="8208228" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8208228" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-4.533333</x>
<y>1.216667</y>
</point>
<point id="822FB88" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="822FB88" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-8.566667</x>
<y>3.116667</y>
</point>
<point id="82B08A0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82B08A0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-7.066667</x>
<y>1.783334</y>
</point>
<line id="82C3C40" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<line id="82C3C40" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="8281F08"/>
<tqparent ref="82076B0"/>
</line>
<arcCircle id="82C2F40" type="3pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<arcCircle id="82C2F40" type="3pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="8208228"/>
<tqparent ref="822F448"/>
<tqparent ref="82535F0"/>
</arcCircle>
<halfLine id="82A86B8" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<halfLine id="82A86B8" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="822FB88"/>
<tqparent ref="82B08A0"/>
</halfLine>
<point id="82C8738" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82C8738" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-1.066667</x>
<y>-0.416667</y>
</point>
<point id="82C4DC8" type="Intersection" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="" extra="0">
<point id="82C4DC8" type="Intersection" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="" extra="0">
<tqparent ref="82A86B8"/>
<tqparent ref="82C2F40"/>
</point>
<point id="82C5230" type="Intersection" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="" extra="1">
<point id="82C5230" type="Intersection" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="" extra="1">
<tqparent ref="82A86B8"/>
<tqparent ref="82C2F40"/>
</point>
<line id="82BF640" type="perpendicular" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<line id="82BF640" type="perpendicular" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="82C8738"/>
<tqparent ref="82C3C40"/>
</line>
<point id="83030E0" type="Reflexion" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="83030E0" type="Reflexion" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<tqparent ref="82C4DC8"/>
<tqparent ref="82BF640"/>
</point>
@ -86,75 +86,75 @@ Figure 3 tqcontains:
- a moved circle;
</text>
<drgeo name="Figure 2" scale="30.000000" origin_x="0.000000" origin_y="0.000000" grid="False">
<point id="831A340" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="831A340" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-5.200000</x>
<y>0.216667</y>
</point>
<point id="82D1958" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82D1958" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>1.200000</x>
<y>3.116667</y>
</point>
<point id="82EB588" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82EB588" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-7.666667</x>
<y>1.650000</y>
</point>
<line id="8337158" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<line id="8337158" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="82EB588"/>
<tqparent ref="831A340"/>
</line>
<point id="8339778" type="Middle_2pts" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8339778" type="Middle_2pts" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<tqparent ref="831A340"/>
<tqparent ref="82D1958"/>
</point>
<line id="8322C38" type="parallel" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<line id="8322C38" type="parallel" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="8339778"/>
<tqparent ref="8337158"/>
</line>
<point id="8322E28" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="8322E28" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-6.200000</x>
<y>-1.483334</y>
</point>
<line id="831E530" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<line id="831E530" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="8322E28"/>
<tqparent ref="82D1958"/>
</line>
<point id="8356028" type="Intersection" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="" extra="0">
<point id="8356028" type="Intersection" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="" extra="0">
<tqparent ref="831E530"/>
<tqparent ref="8337158"/>
</point>
<point id="8320CC8" type="Intersection" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="" extra="0">
<point id="8320CC8" type="Intersection" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="" extra="0">
<tqparent ref="8322C38"/>
<tqparent ref="831E530"/>
</point>
</drgeo>
<drgeo name="Figure 3" scale="30.000000" origin_x="0.000000" origin_y="0.000000" grid="False">
<point id="837C5E0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="837C5E0" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-6.433334</x>
<y>2.050000</y>
</point>
<point id="83380E8" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="83380E8" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-1.400000</x>
<y>2.583333</y>
</point>
<point id="83565C8" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="83565C8" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-1.300000</x>
<y>-0.350000</y>
</point>
<point id="82FBCC8" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" tqmasked="False" name="">
<point id="82FBCC8" type="Free" color="Red" thickness="Dashed" style="Round" filled="False" masked="False" name="">
<x>-3.433333</x>
<y>-0.883333</y>
</point>
<vector id="8108B10" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<vector id="8108B10" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<Ox>-6.433334</Ox>
<Oy>2.050000</Oy>
<tqparent ref="837C5E0"/>
<tqparent ref="83380E8"/>
</vector>
<circle id="83A2B10" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<circle id="83A2B10" type="2pts" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="82FBCC8"/>
<tqparent ref="83565C8"/>
</circle>
<circle id="83D6820" type="Translation" color="Black" thickness="Normal" style="Cross" filled="False" tqmasked="False" name="">
<circle id="83D6820" type="Translation" color="Black" thickness="Normal" style="Cross" filled="False" masked="False" name="">
<tqparent ref="83A2B10"/>
<tqparent ref="8108B10"/>
</circle>

@ -56,7 +56,7 @@
*
* Nr: Simple sequential numbering of the objects in a file.
* Type: seen so far: Pt, Axes, Line, Cir
* NumberOfParents: The number of tqparents that will be specified in
* NumberOfParents: The number of parents that will be specified in
* Parents
* Color:
* R -> red
@ -96,7 +96,7 @@
* Visible:
* V means visible, I means invisible
* Fixed:
* St means fix this object ( if you move one of its tqparents, it
* St means fix this object ( if you move one of its parents, it
* won't move ), nSt ( the default ) means don't fix this object.
* Parents:
* The numbers of the objects this object depends on
@ -118,7 +118,7 @@ struct CabriObject
int specialAppearanceSwitch;
bool visible;
bool fixed;
std::vector<int> tqparents;
std::vector<int> parents;
std::vector<double> data;
};
@ -246,14 +246,14 @@ bool KigFilterCabri::readObject( TQFile& f, CabriObject& myobj )
KIG_FILTER_PARSE_ERROR;
tmp = thirdlinere.cap( 2 );
TQStringList tqparentsids = TQStringList::split( ' ', tmp );
for ( TQStringList::iterator i = tqparentsids.begin();
i != tqparentsids.end(); ++i )
TQStringList parentsids = TQStringList::split( ' ', tmp );
for ( TQStringList::iterator i = parentsids.begin();
i != parentsids.end(); ++i )
{
myobj.tqparents.push_back( ( *i ).toInt( &ok ) );
myobj.parents.push_back( ( *i ).toInt( &ok ) );
if ( ! ok ) KIG_FILTER_PARSE_ERROR;
}
if ( myobj.tqparents.size() != myobj.numberOfParents )
if ( myobj.parents.size() != myobj.numberOfParents )
KIG_FILTER_PARSE_ERROR;
tmp = thirdlinere.cap( 4 );
@ -277,8 +277,8 @@ bool KigFilterCabri::readObject( TQFile& f, CabriObject& myobj )
// << "specialAppearanceSwitch = " << myobj.specialAppearanceSwitch << endl
// << "visible = " << visible << endl
// << "fixed = " << myobj.fixed << endl
// << "tqparents =" << endl;
// for ( std::vector<int>::iterator i = myobj.tqparents.begin(); i != myobj.tqparents.end(); ++i )
// << "parents =" << endl;
// for ( std::vector<int>::iterator i = myobj.parents.begin(); i != myobj.parents.end(); ++i )
// kdDebug() << " " << *i << endl;
// kdDebug() << "vals = " << endl;
// for ( std::vector<double>::iterator i = myobj.data.begin(); i != myobj.data.end(); ++i )
@ -352,8 +352,8 @@ KigDocument* KigFilterCabri::load( const TQString& file )
int ps = 0;
args.clear();
for ( std::vector<int>::iterator i = obj.tqparents.begin();
i != obj.tqparents.end(); ++i )
for ( std::vector<int>::iterator i = obj.parents.begin();
i != obj.parents.end(); ++i )
args.push_back( calcers[*i-3] );
// two fake objects at the start ( origin and axes.. )

@ -131,7 +131,7 @@ Please select which to import:</string>
</widget>
</vbox>
</widget>
<tqlayoutdefaults spacing="6" margin="11"/>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistbox.h</includehint>
<includehint>kpushbutton.h</includehint>

@ -62,7 +62,7 @@
struct DrGeoHierarchyElement
{
TQString id;
std::vector<TQString> tqparents;
std::vector<TQString> parents;
};
KigFilterDrgeo::KigFilterDrgeo()
@ -202,7 +202,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
TQDomElement ce = c.toElement();
if ( ce.isNull() ) continue;
else if ( ce.tagName() == "tqparent" )
elem.tqparents.push_back( ce.attribute( "ref" ) );
elem.parents.push_back( ce.attribute( "ref" ) );
}
TQString curid = domelem.attribute( "id" );
elem.id = !curid.isNull() ? curid : TQString::number( withoutid++ ) ;
@ -216,9 +216,9 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
for ( uint i = 0; i < elems.size(); ++i )
{
x = "";
for ( uint j = 0; j < elems[i].tqparents.size(); ++j )
for ( uint j = 0; j < elems[i].parents.size(); ++j )
{
x += elems[i].tqparents[j] + "_";
x += elems[i].parents[j] + "_";
}
kdDebug() << " --> " << i << " - " << elems[i].id << " - " << x << endl;
}
@ -241,25 +241,25 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
kdDebug() << "+++ id: " << curid << endl;
#endif
const DrGeoHierarchyElement& el = elems[curid];
std::vector<ObjectCalcer*> tqparents;
for ( uint j = 0; j < el.tqparents.size(); ++j )
std::vector<ObjectCalcer*> parents;
for ( uint j = 0; j < el.parents.size(); ++j )
{
int tqparentid = convertDrgeoIndex( elems, el.tqparents[j] );
if ( tqparentid == -1 )
int parentid = convertDrgeoIndex( elems, el.parents[j] );
if ( parentid == -1 )
KIG_FILTER_PARSE_ERROR;
tqparents.push_back( holders[tqparentid-nignored]->calcer() );
parents.push_back( holders[parentid-nignored]->calcer() );
};
TQDomElement domelem = a.toElement();
#ifdef DRGEO_DEBUG
if ( tqparents.size() > 0 )
for ( uint j = 0; j < tqparents.size(); ++j )
if ( parents.size() > 0 )
for ( uint j = 0; j < parents.size(); ++j )
{
kdDebug() << "+++++++++ tqparent[" << j << "]: " << tqparents[j] << " - "
<< tqparents[j]->imp()->type()->internalName() << endl;
kdDebug() << "+++++++++ tqparent[" << j << "]: " << parents[j] << " - "
<< parents[j]->imp()->type()->internalName() << endl;
}
else
kdDebug() << "+++++++++ tqparents: NO" << endl;
kdDebug() << "+++++++++ parents: NO" << endl;
kdDebug() << "+++++++++ " << domelem.tagName() << " - " << domelem.attribute("type") << endl;
#endif
@ -291,15 +291,15 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
oc = fact->fixedPointCalcer( Coordinate( x, y ) );
}
else if ( domelem.attribute( "type" ) == "Middle_2pts" )
oc = new ObjectTypeCalcer( MidPointType::instance(), tqparents );
oc = new ObjectTypeCalcer( MidPointType::instance(), parents );
else if ( domelem.attribute( "type" ) == "Middle_segment" )
{
if ( tqparents.size() != 1 ) KIG_FILTER_PARSE_ERROR;
if ( !tqparents[0]->imp()->inherits( SegmentImp::stype() ) )
if ( parents.size() != 1 ) KIG_FILTER_PARSE_ERROR;
if ( !parents[0]->imp()->inherits( SegmentImp::stype() ) )
KIG_FILTER_PARSE_ERROR;
ObjectPropertyCalcer* o1 = fact->propertyObjectCalcer( tqparents[0], "end-point-A" );
ObjectPropertyCalcer* o1 = fact->propertyObjectCalcer( parents[0], "end-point-A" );
o1->calc( *ret );
ObjectPropertyCalcer* o2 = fact->propertyObjectCalcer( tqparents[0], "end-point-B" );
ObjectPropertyCalcer* o2 = fact->propertyObjectCalcer( parents[0], "end-point-B" );
o2->calc( *ret );
std::vector<ObjectCalcer*> args;
args.push_back( o1 );
@ -312,26 +312,26 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
double value = values.toDouble( &ok3 );
if ( ! ok3 )
KIG_FILTER_PARSE_ERROR;
if ( ( tqparents[0]->imp()->inherits( CircleImp::stype() ) ) ||
( tqparents[0]->imp()->inherits( SegmentImp::stype() ) ) )
oc = fact->constrainedPointCalcer( tqparents[0], value );
else if ( tqparents[0]->imp()->inherits( LineImp::stype() ) )
if ( ( parents[0]->imp()->inherits( CircleImp::stype() ) ) ||
( parents[0]->imp()->inherits( SegmentImp::stype() ) ) )
oc = fact->constrainedPointCalcer( parents[0], value );
else if ( parents[0]->imp()->inherits( LineImp::stype() ) )
{
const LineData l = static_cast<const LineImp*>( tqparents[0]->imp() )->data();
const LineData l = static_cast<const LineImp*>( parents[0]->imp() )->data();
const Coordinate p = convertDrgeoLineParam( value, l );
oc = fact->constrainedPointCalcer( tqparents[0], p, *ret );
oc = fact->constrainedPointCalcer( parents[0], p, *ret );
}
else if ( tqparents[0]->imp()->inherits( RayImp::stype() ) )
else if ( parents[0]->imp()->inherits( RayImp::stype() ) )
{
const LineData l = static_cast<const RayImp*>( tqparents[0]->imp() )->data();
const LineData l = static_cast<const RayImp*>( parents[0]->imp() )->data();
const Coordinate p = convertDrgeoHalflineParam( value, l );
oc = fact->constrainedPointCalcer( tqparents[0], p, *ret );
oc = fact->constrainedPointCalcer( parents[0], p, *ret );
}
else if ( tqparents[0]->imp()->inherits( ArcImp::stype() ) )
oc = fact->constrainedPointCalcer( tqparents[0], 1 - value );
else if ( parents[0]->imp()->inherits( ArcImp::stype() ) )
oc = fact->constrainedPointCalcer( parents[0], 1 - value );
else
{
// oc = fact->constrainedPointCalcer( tqparents[0], value );
// oc = fact->constrainedPointCalcer( parents[0], value );
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
"which Kig does not currently support." ).tqarg( domelem.tagName() ).tqarg(
domelem.attribute( "type" ) ) );
@ -340,9 +340,9 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
}
else if ( domelem.attribute( "type" ) == "Intersection" )
{
if ( ( tqparents[0]->imp()->inherits( AbstractLineImp::stype() ) ) &&
( tqparents[1]->imp()->inherits( AbstractLineImp::stype() ) ) )
oc = new ObjectTypeCalcer( LineLineIntersectionType::instance(), tqparents );
if ( ( parents[0]->imp()->inherits( AbstractLineImp::stype() ) ) &&
( parents[1]->imp()->inherits( AbstractLineImp::stype() ) ) )
oc = new ObjectTypeCalcer( LineLineIntersectionType::instance(), parents );
else
{
bool ok;
@ -351,21 +351,21 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
if ( which == 1 ) which = -1;
else if ( which == 0 ) which = 1;
else KIG_FILTER_PARSE_ERROR;
std::vector<ObjectCalcer*> args = tqparents;
std::vector<ObjectCalcer*> args = parents;
const ObjectType* type = 0;
args.push_back( new ObjectConstCalcer( new IntImp( which ) ) );
if ( ( tqparents[0]->imp()->inherits( CircleImp::stype() ) ) &&
( tqparents[1]->imp()->inherits( CircleImp::stype() ) ) )
if ( ( parents[0]->imp()->inherits( CircleImp::stype() ) ) &&
( parents[1]->imp()->inherits( CircleImp::stype() ) ) )
type = CircleCircleIntersectionType::instance();
else if ( ( tqparents[0]->imp()->inherits( CircleImp::stype() ) &&
tqparents[1]->imp()->inherits( AbstractLineImp::stype() ) ) ||
( tqparents[1]->imp()->inherits( CircleImp::stype() ) &&
tqparents[0]->imp()->inherits( AbstractLineImp::stype() ) ) )
else if ( ( parents[0]->imp()->inherits( CircleImp::stype() ) &&
parents[1]->imp()->inherits( AbstractLineImp::stype() ) ) ||
( parents[1]->imp()->inherits( CircleImp::stype() ) &&
parents[0]->imp()->inherits( AbstractLineImp::stype() ) ) )
type = ConicLineIntersectionType::instance();
else if ( ( tqparents[0]->imp()->inherits( ArcImp::stype() ) &&
tqparents[1]->imp()->inherits( AbstractLineImp::stype() ) ) ||
( tqparents[1]->imp()->inherits( ArcImp::stype() ) &&
tqparents[0]->imp()->inherits( AbstractLineImp::stype() ) ) )
else if ( ( parents[0]->imp()->inherits( ArcImp::stype() ) &&
parents[1]->imp()->inherits( AbstractLineImp::stype() ) ) ||
( parents[1]->imp()->inherits( ArcImp::stype() ) &&
parents[0]->imp()->inherits( AbstractLineImp::stype() ) ) )
type = ArcLineIntersectionType::instance();
else
{
@ -377,13 +377,13 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
}
}
else if ( domelem.attribute( "type" ) == "Reflexion" )
oc = new ObjectTypeCalcer( LineReflectionType::instance(), tqparents );
oc = new ObjectTypeCalcer( LineReflectionType::instance(), parents );
else if ( domelem.attribute( "type" ) == "Symmetry" )
oc = new ObjectTypeCalcer( PointReflectionType::instance(), tqparents );
oc = new ObjectTypeCalcer( PointReflectionType::instance(), parents );
else if ( domelem.attribute( "type" ) == "Translation" )
oc = new ObjectTypeCalcer( TranslatedType::instance(), tqparents );
oc = new ObjectTypeCalcer( TranslatedType::instance(), parents );
else if ( domelem.attribute( "type" ) == "Rotation" )
oc = new ObjectTypeCalcer( RotationType::instance(), tqparents );
oc = new ObjectTypeCalcer( RotationType::instance(), parents );
else
{
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
@ -423,7 +423,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
domelem.attribute( "type" ) ) );
return false;
}
oc = new ObjectTypeCalcer( type, tqparents );
oc = new ObjectTypeCalcer( type, parents );
}
else if( domelem.attribute( "type" ) == "3pts" )
{
@ -436,19 +436,19 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
domelem.attribute( "type" ) ) );
return false;
}
oc = new ObjectTypeCalcer( type, tqparents );
oc = new ObjectTypeCalcer( type, parents );
}
else if( domelem.attribute( "type" ) == "segment" )
{
if( domelem.tagName() == "circle" )
{
type = CircleBPRType::instance();