summaryrefslogtreecommitdiffstats
path: root/doc/html/customlayout-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/customlayout-example.html')
-rw-r--r--doc/html/customlayout-example.html78
1 files changed, 39 insertions, 39 deletions
diff --git a/doc/html/customlayout-example.html b/doc/html/customlayout-example.html
index e095c9ca8..b8fb8bf68 100644
--- a/doc/html/customlayout-example.html
+++ b/doc/html/customlayout-example.html
@@ -56,7 +56,7 @@ like card layouts, border layout and flow layouts.
#define FLOW_H
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
-#include &lt;<a href="qptrlist-h.html">ntqptrlist.h</a>&gt;
+#include &lt;<a href="tqptrlist-h.html">tqptrlist.h</a>&gt;
class SimpleFlow : public <a href="ntqlayout.html">TQLayout</a>
{
@@ -87,7 +87,7 @@ protected:
private:
int doLayout( const <a href="ntqrect.html">TQRect</a>&amp;, bool testonly = FALSE );
- <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; list;
+ <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; list;
int cached_width;
int cached_hfw;
@@ -115,7 +115,7 @@ private:
class SimpleFlowIterator :public <a href="qglayoutiterator.html">TQGLayoutIterator</a>
{
public:
- SimpleFlowIterator( <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *l ) :idx(0), list(l) {}
+ SimpleFlowIterator( <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *l ) :idx(0), list(l) {}
uint count() const;
<a href="qlayoutitem.html">TQLayoutItem</a> *current();
<a href="qlayoutitem.html">TQLayoutItem</a> *next();
@@ -123,18 +123,18 @@ public:
private:
int idx;
- <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *list;
+ <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *list;
};
uint <a name="f452"></a>SimpleFlowIterator::count() const
{
-<a name="x1479"></a> return list-&gt;<a href="ntqptrlist.html#count">count</a>();
+<a name="x1479"></a> return list-&gt;<a href="tqptrlist.html#count">count</a>();
}
<a name="x1464"></a>TQLayoutItem *SimpleFlowIterator::<a href="qglayoutiterator.html#current">current</a>()
{
-<a name="x1478"></a> return idx &lt; int(count()) ? list-&gt;<a href="ntqptrlist.html#at">at</a>(idx) : 0;
+<a name="x1478"></a> return idx &lt; int(count()) ? list-&gt;<a href="tqptrlist.html#at">at</a>(idx) : 0;
}
<a name="x1465"></a>TQLayoutItem *SimpleFlowIterator::<a href="qglayoutiterator.html#next">next</a>()
@@ -144,7 +144,7 @@ uint <a name="f452"></a>SimpleFlowIterator::count() const
<a name="x1466"></a>TQLayoutItem *SimpleFlowIterator::<a href="qglayoutiterator.html#takeCurrent">takeCurrent</a>()
{
-<a name="x1480"></a> return idx &lt; int(count()) ? list-&gt;<a href="ntqptrlist.html#take">take</a>( idx ) : 0;
+<a name="x1480"></a> return idx &lt; int(count()) ? list-&gt;<a href="tqptrlist.html#take">take</a>( idx ) : 0;
}
SimpleFlow::~SimpleFlow()
@@ -168,7 +168,7 @@ SimpleFlow::~SimpleFlow()
<a name="x1467"></a>void SimpleFlow::<a href="ntqlayout.html#addItem">addItem</a>( <a href="qlayoutitem.html">TQLayoutItem</a> *item)
{
-<a name="x1477"></a> list.<a href="ntqptrlist.html#append">append</a>( item );
+<a name="x1477"></a> list.<a href="tqptrlist.html#append">append</a>( item );
}
<a name="x1472"></a>bool SimpleFlow::<a href="qlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const
@@ -202,9 +202,9 @@ int <a name="f451"></a>SimpleFlow::doLayout( const <a href="ntqrect.html">TQRect
int x = r.<a href="ntqrect.html#x">x</a>();
int y = r.<a href="ntqrect.html#y">y</a>();
int h = 0; //height of this line so far.
- <a href="qptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
+ <a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
<a href="qlayoutitem.html">TQLayoutItem</a> *o;
-<a name="x1481"></a> while ( (o=it.<a href="qptrlistiterator.html#current">current</a>()) != 0 ) {
+<a name="x1481"></a> while ( (o=it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
int nextX = x + o-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().width() + spacing();
<a name="x1482"></a> if ( nextX - spacing() &gt; r.<a href="ntqrect.html#right">right</a>() &amp;&amp; h &gt; 0 ) {
@@ -224,9 +224,9 @@ int <a name="f451"></a>SimpleFlow::doLayout( const <a href="ntqrect.html">TQRect
<a name="x1470"></a>TQSize SimpleFlow::<a href="ntqlayout.html#minimumSize">minimumSize</a>() const
{
<a href="ntqsize.html">TQSize</a> s(0,0);
- <a href="qptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
+ <a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
<a href="qlayoutitem.html">TQLayoutItem</a> *o;
- while ( (o=it.<a href="qptrlistiterator.html#current">current</a>()) != 0 ) {
+ while ( (o=it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
<a name="x1485"></a><a name="x1474"></a> s = s.<a href="ntqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>() );
}
@@ -254,7 +254,7 @@ int <a name="f451"></a>SimpleFlow::doLayout( const <a href="ntqrect.html">TQRect
#define BORDER_H
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
-#include &lt;<a href="qptrlist-h.html">ntqptrlist.h</a>&gt;
+#include &lt;<a href="tqptrlist-h.html">tqptrlist.h</a>&gt;
class BorderWidgetItem : public <a href="tqwidgetitem.html">TQWidgetItem</a>
{
@@ -334,7 +334,7 @@ private:
void doLayout( const <a href="ntqrect.html">TQRect</a> &amp;rect, bool testonly = FALSE );
void calcSize( SizeType st );
- <a href="ntqptrlist.html">TQPtrList</a>&lt;BorderLayoutStruct&gt; list;
+ <a href="tqptrlist.html">TQPtrList</a>&lt;BorderLayoutStruct&gt; list;
<a href="ntqsize.html">TQSize</a> cached, mcached;
bool sizeDirty, msizeDirty;
@@ -362,7 +362,7 @@ private:
class BorderLayoutIterator : public <a href="qglayoutiterator.html">TQGLayoutIterator</a>
{
public:
- BorderLayoutIterator( const <a href="ntqptrlist.html">TQPtrList</a>&lt;BorderLayout::BorderLayoutStruct&gt; *l )
+ BorderLayoutIterator( const <a href="tqptrlist.html">TQPtrList</a>&lt;BorderLayout::BorderLayoutStruct&gt; *l )
: idx( 0 ) , list( (TQPtrList&lt;BorderLayout::BorderLayoutStruct&gt;*)l )
{}
@@ -376,23 +376,23 @@ public:
private:
int idx;
- <a href="ntqptrlist.html">TQPtrList</a>&lt;BorderLayout::BorderLayoutStruct&gt; *list;
+ <a href="tqptrlist.html">TQPtrList</a>&lt;BorderLayout::BorderLayoutStruct&gt; *list;
};
uint <a name="f456"></a>BorderLayoutIterator::count() const
{
-<a name="x1502"></a> return list-&gt;<a href="ntqptrlist.html#count">count</a>();
+<a name="x1502"></a> return list-&gt;<a href="tqptrlist.html#count">count</a>();
}
<a name="x1486"></a>TQLayoutItem *BorderLayoutIterator::<a href="qglayoutiterator.html#current">current</a>()
{
-<a name="x1501"></a> return idx &lt; (int)count() ? list-&gt;<a href="ntqptrlist.html#at">at</a>( idx )-&gt;item : 0;
+<a name="x1501"></a> return idx &lt; (int)count() ? list-&gt;<a href="tqptrlist.html#at">at</a>( idx )-&gt;item : 0;
}
BorderLayout::BorderLayoutStruct *<a name="f457"></a>BorderLayoutIterator::currentStruct()
{
- return idx &lt; (int)count() ? list-&gt;<a href="ntqptrlist.html#at">at</a>( idx ) : 0;
+ return idx &lt; (int)count() ? list-&gt;<a href="tqptrlist.html#at">at</a>( idx ) : 0;
}
void <a name="f458"></a>BorderLayoutIterator::toFirst()
@@ -409,7 +409,7 @@ void <a name="f458"></a>BorderLayoutIterator::toFirst()
<a name="x1488"></a>TQLayoutItem *BorderLayoutIterator::<a href="qglayoutiterator.html#takeCurrent">takeCurrent</a>()
{
BorderLayout::BorderLayoutStruct *b
-<a name="x1503"></a> = idx &lt; int( list-&gt;<a href="ntqptrlist.html#count">count</a>() ) ? list-&gt;<a href="ntqptrlist.html#take">take</a>( idx ) : 0;
+<a name="x1503"></a> = idx &lt; int( list-&gt;<a href="tqptrlist.html#count">count</a>() ) ? list-&gt;<a href="tqptrlist.html#take">take</a>( idx ) : 0;
<a href="qlayoutitem.html">TQLayoutItem</a> *item = b ? b-&gt;item : 0;
delete b;
return item;
@@ -439,7 +439,7 @@ void <a name="f453"></a>BorderLayout::addWidget( <a href="tqwidget.html">TQWidge
<a name="x1489"></a>void BorderLayout::<a href="ntqlayout.html#add">add</a>( <a href="qlayoutitem.html">TQLayoutItem</a> *item, Position pos )
{
-<a name="x1500"></a> list.<a href="ntqptrlist.html#append">append</a>( new BorderLayoutStruct( item, pos ) );
+<a name="x1500"></a> list.<a href="tqptrlist.html#append">append</a>( new BorderLayoutStruct( item, pos ) );
sizeDirty = TRUE; msizeDirty = TRUE;
calcSize( SizeHint ); calcSize( Minimum );
}
@@ -594,7 +594,7 @@ void <a name="f455"></a>BorderLayout::calcSize( SizeType st )
#define CARD_H
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
-#include &lt;<a href="qptrlist-h.html">ntqptrlist.h</a>&gt;
+#include &lt;<a href="tqptrlist-h.html">tqptrlist.h</a>&gt;
class CardLayout : public <a href="ntqlayout.html">TQLayout</a>
{
@@ -614,7 +614,7 @@ public:
void setGeometry( const <a href="ntqrect.html">TQRect</a> &amp;rect );
private:
- <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; list;
+ <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; list;
};
@@ -640,7 +640,7 @@ private:
class CardLayoutIterator :public <a href="qglayoutiterator.html">TQGLayoutIterator</a>
{
public:
- CardLayoutIterator( <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *l )
+ CardLayoutIterator( <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *l )
: idx( 0 ), list( l ) {}
<a href="qlayoutitem.html">TQLayoutItem</a> *current();
@@ -649,12 +649,12 @@ public:
private:
int idx;
- <a href="ntqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *list;
+ <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *list;
};
<a name="x1508"></a>TQLayoutItem *CardLayoutIterator::<a href="qglayoutiterator.html#current">current</a>()
{
-<a name="x1520"></a><a name="x1519"></a> return idx &lt; int( list-&gt;<a href="ntqptrlist.html#count">count</a>() ) ? list-&gt;<a href="ntqptrlist.html#at">at</a>( idx ) : 0;
+<a name="x1520"></a><a name="x1519"></a> return idx &lt; int( list-&gt;<a href="tqptrlist.html#count">count</a>() ) ? list-&gt;<a href="tqptrlist.html#at">at</a>( idx ) : 0;
}
<a name="x1509"></a>TQLayoutItem *CardLayoutIterator::<a href="qglayoutiterator.html#next">next</a>()
@@ -664,7 +664,7 @@ private:
<a name="x1510"></a>TQLayoutItem *CardLayoutIterator::<a href="qglayoutiterator.html#takeCurrent">takeCurrent</a>()
{
-<a name="x1521"></a> return idx &lt; int( list-&gt;<a href="ntqptrlist.html#count">count</a>() ) ?list-&gt;<a href="ntqptrlist.html#take">take</a>( idx ) : 0;
+<a name="x1521"></a> return idx &lt; int( list-&gt;<a href="tqptrlist.html#count">count</a>() ) ?list-&gt;<a href="tqptrlist.html#take">take</a>( idx ) : 0;
}
@@ -681,25 +681,25 @@ CardLayout::~CardLayout()
<a name="x1511"></a>void CardLayout::<a href="ntqlayout.html#addItem">addItem</a>( <a href="qlayoutitem.html">TQLayoutItem</a> *item )
{
-<a name="x1518"></a> list.<a href="ntqptrlist.html#append">append</a>( item );
+<a name="x1518"></a> list.<a href="tqptrlist.html#append">append</a>( item );
}
<a name="x1514"></a>void CardLayout::<a href="ntqlayout.html#setGeometry">setGeometry</a>( const <a href="ntqrect.html">TQRect</a> &amp;rct )
{
TQLayout::<a href="ntqlayout.html#setGeometry">setGeometry</a>( rct );
- <a href="qptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
-<a name="x1522"></a> if ( it.<a href="qptrlistiterator.html#count">count</a>() == 0 )
+ <a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
+<a name="x1522"></a> if ( it.<a href="tqptrlistiterator.html#count">count</a>() == 0 )
return;
<a href="qlayoutitem.html">TQLayoutItem</a> *o;
int i = 0;
- int w = rct.<a href="ntqrect.html#width">width</a>() - ( list.<a href="ntqptrlist.html#count">count</a>() - 1 ) * spacing();
- int h = rct.<a href="ntqrect.html#height">height</a>() - ( list.<a href="ntqptrlist.html#count">count</a>() - 1 ) * spacing();
+ int w = rct.<a href="ntqrect.html#width">width</a>() - ( list.<a href="tqptrlist.html#count">count</a>() - 1 ) * spacing();
+ int h = rct.<a href="ntqrect.html#height">height</a>() - ( list.<a href="tqptrlist.html#count">count</a>() - 1 ) * spacing();
-<a name="x1523"></a> while ( ( o=it.<a href="qptrlistiterator.html#current">current</a>() ) != 0 ) {
+<a name="x1523"></a> while ( ( o=it.<a href="tqptrlistiterator.html#current">current</a>() ) != 0 ) {
++it;
<a href="ntqrect.html">TQRect</a> geom( rct.<a href="ntqrect.html#x">x</a>() + i * spacing(), rct.<a href="ntqrect.html#y">y</a>() + i * spacing(),
w, h );
@@ -711,12 +711,12 @@ CardLayout::~CardLayout()
<a name="x1517"></a>TQSize CardLayout::<a href="qlayoutitem.html#sizeHint">sizeHint</a>() const
{
<a href="ntqsize.html">TQSize</a> s(0,0);
- int n = list.<a href="ntqptrlist.html#count">count</a>();
+ int n = list.<a href="tqptrlist.html#count">count</a>();
if ( n &gt; 0 )
s = TQSize(100,70); //start with a nice default size
- <a href="qptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
+ <a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
<a href="qlayoutitem.html">TQLayoutItem</a> *o;
- while ( (o=it.<a href="qptrlistiterator.html#current">current</a>()) != 0 ) {
+ while ( (o=it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
<a name="x1528"></a><a name="x1515"></a> s = s.<a href="ntqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>() );
}
@@ -726,10 +726,10 @@ CardLayout::~CardLayout()
<a name="x1513"></a>TQSize CardLayout::<a href="ntqlayout.html#minimumSize">minimumSize</a>() const
{
<a href="ntqsize.html">TQSize</a> s(0,0);
- int n = list.<a href="ntqptrlist.html#count">count</a>();
- <a href="qptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
+ int n = list.<a href="tqptrlist.html#count">count</a>();
+ <a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
<a href="qlayoutitem.html">TQLayoutItem</a> *o;
- while ( (o=it.<a href="qptrlistiterator.html#current">current</a>()) != 0 ) {
+ while ( (o=it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
s = s.<a href="ntqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>() );
}