Drop Qt2's TQSemiModal and TQSortedList classes
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>pull/78/head
parent
a8466ab3bb
commit
bfd62a0bbf
@ -1,95 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/qsortedlist.doc:36 -->
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>TQSortedList Class</title>
|
||||
<style type="text/css"><!--
|
||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
||||
a:link { color: #004faf; text-decoration: none }
|
||||
a:visited { color: #672967; text-decoration: none }
|
||||
body { background: #ffffff; color: black; }
|
||||
--></style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr bgcolor="#E5E5E5">
|
||||
<td valign=center>
|
||||
<a href="index.html">
|
||||
<font color="#004faf">Home</font></a>
|
||||
| <a href="classes.html">
|
||||
<font color="#004faf">All Classes</font></a>
|
||||
| <a href="mainclasses.html">
|
||||
<font color="#004faf">Main Classes</font></a>
|
||||
| <a href="annotated.html">
|
||||
<font color="#004faf">Annotated</font></a>
|
||||
| <a href="groups.html">
|
||||
<font color="#004faf">Grouped Classes</font></a>
|
||||
| <a href="functions.html">
|
||||
<font color="#004faf">Functions</font></a>
|
||||
</td>
|
||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>TQSortedList Class Reference<br><small>[obsolete]</small></h1>
|
||||
|
||||
<p>The TQSortedList class provides a list sorted by operator< and operator==.
|
||||
<a href="#details">More...</a>
|
||||
<p><tt>#include <<a href="qsortedlist-h.html">ntqsortedlist.h</a>></tt>
|
||||
<p>Inherits <a href="ntqptrlist.html">TQPtrList</a><type>.
|
||||
<p><a href="qsortedlist-members.html">List of all member functions.</a>
|
||||
<h2>Public Members</h2>
|
||||
<ul>
|
||||
<li class=fn><a href="#TQSortedList"><b>TQSortedList</b></a> ()</li>
|
||||
<li class=fn><a href="#TQSortedList-2"><b>TQSortedList</b></a> ( const TQSortedList<type> & list )</li>
|
||||
<li class=fn><a href="#~TQSortedList"><b>~TQSortedList</b></a> ()</li>
|
||||
<li class=fn>TQSortedList<type> & <a href="#operator-eq"><b>operator=</b></a> ( const TQSortedList<type> & list )</li>
|
||||
</ul>
|
||||
<hr><a name="details"></a><h2>Detailed Description</h2>
|
||||
|
||||
|
||||
The TQSortedList class provides a list sorted by operator< and operator==.
|
||||
<p> <b>This class is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
||||
<p> If you want to sort a <a href="ntqptrlist.html">TQPtrList</a> you have to reimplement the
|
||||
TQGList::compareItems() method. If the elements of your list support
|
||||
<a href="ntqcstring.html#operator-lt-2">operator<</a>() and <a href="ntqptrlist.html#operator-eq-eq">operator==</a>(), you can use TQSortedList instead.
|
||||
Its <a href="ntqptrlist.html#compareItems">compareItems</a>() calls operator<() and operator==() and returns an
|
||||
appropriate result.
|
||||
<p> Otherwise, this is as TQPtrList.
|
||||
<p> <p>See also <a href="ntqptrlist.html">TQPtrList</a>.
|
||||
|
||||
<hr><h2>Member Function Documentation</h2>
|
||||
<h3 class=fn><a name="TQSortedList"></a>TQSortedList::TQSortedList ()
|
||||
</h3>
|
||||
|
||||
Constructs an empty list.
|
||||
|
||||
<h3 class=fn><a name="TQSortedList-2"></a>TQSortedList::TQSortedList ( const <a href="ntqsortedlist.html">TQSortedList</a><type> & list )
|
||||
</h3>
|
||||
|
||||
Constructs a copy of <em>list</em>.
|
||||
<p> Each item in <em>list</em> is copied to this new list.
|
||||
|
||||
<h3 class=fn><a name="~TQSortedList"></a>TQSortedList::~TQSortedList ()
|
||||
</h3>
|
||||
|
||||
Removes all items from the list and destroys the list.
|
||||
<p> All list iterators that access this list will be reset.
|
||||
|
||||
<h3 class=fn><a href="ntqsortedlist.html">TQSortedList</a><type> & <a name="operator-eq"></a>TQSortedList::operator= ( const <a href="ntqsortedlist.html">TQSortedList</a><type> & list )
|
||||
</h3>
|
||||
|
||||
Assigns <em>list</em> to this list and returns a reference to this list.
|
||||
<p> This list is first cleared; each item in <em>list</em> is then
|
||||
appended to this list. Only the pointers are copied
|
||||
(shallow copy) unless <a href="ntqptrcollection.html#newItem">newItem</a>() has been reimplemented().
|
||||
|
||||
<!-- eof -->
|
||||
<hr><p>
|
||||
This file is part of the <a href="index.html">TQt toolkit</a>.
|
||||
Copyright © 1995-2007
|
||||
<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
||||
<table width=100% cellspacing=0 border=0><tr>
|
||||
<td>Copyright © 2007
|
||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
||||
<td align=right><div align=right>TQt 3.3.8</div>
|
||||
</table></div></address></body>
|
||||
</html>
|
@ -1,108 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/ntqsortedlist.h:1 -->
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>ntqsortedlist.h Include File</title>
|
||||
<style type="text/css"><!--
|
||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
||||
a:link { color: #004faf; text-decoration: none }
|
||||
a:visited { color: #672967; text-decoration: none }
|
||||
body { background: #ffffff; color: black; }
|
||||
--></style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr bgcolor="#E5E5E5">
|
||||
<td valign=center>
|
||||
<a href="index.html">
|
||||
<font color="#004faf">Home</font></a>
|
||||
| <a href="classes.html">
|
||||
<font color="#004faf">All Classes</font></a>
|
||||
| <a href="mainclasses.html">
|
||||
<font color="#004faf">Main Classes</font></a>
|
||||
| <a href="annotated.html">
|
||||
<font color="#004faf">Annotated</font></a>
|
||||
| <a href="groups.html">
|
||||
<font color="#004faf">Grouped Classes</font></a>
|
||||
| <a href="functions.html">
|
||||
<font color="#004faf">Functions</font></a>
|
||||
</td>
|
||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>ntqsortedlist.h</h1>
|
||||
|
||||
<p>This is the verbatim text of the ntqsortedlist.h include file. It is provided only for illustration; the copyright remains with Trolltech.
|
||||
<hr>
|
||||
<pre>
|
||||
/****************************************************************************
|
||||
** $Id: qt/ntqsortedlist.h 3.3.8 edited Jan 11 14:38 $
|
||||
**
|
||||
** Definition of TQSortedList template/macro class
|
||||
**
|
||||
** Created : 920701
|
||||
**
|
||||
** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
|
||||
**
|
||||
** This file is part of the tools module of the TQt GUI Toolkit.
|
||||
**
|
||||
** This file may be used under the terms of the GNU General Public
|
||||
** License versions 2.0 or 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Alternatively you may (at your option) use any
|
||||
** later version of the GNU General Public License if such license has
|
||||
** been publicly approved by Trolltech ASA (or its successors, if any)
|
||||
** and the KDE Free TQt Foundation.
|
||||
**
|
||||
** Please review the following information to ensure GNU General
|
||||
** Public Licensing requirements will be met:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** review the following information:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
|
||||
** or contact the sales department at sales@trolltech.com.
|
||||
**
|
||||
** This file may be used under the terms of the Q Public License as
|
||||
** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
|
||||
** included in the packaging of this file. Licensees holding valid TQt
|
||||
** Commercial licenses may use this file in accordance with the TQt
|
||||
** Commercial License Agreement provided with the Software.
|
||||
**
|
||||
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
|
||||
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
|
||||
** herein.
|
||||
**
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef TQSORTEDLIST_H
|
||||
#define TQSORTEDLIST_H
|
||||
|
||||
#ifndef QT_H
|
||||
#include "ntqptrlist.h"
|
||||
#endif // QT_H
|
||||
|
||||
|
||||
template<class type>
|
||||
class TQSortedList : public TQPtrList<type>
|
||||
{
|
||||
public:
|
||||
TQSortedList() {}
|
||||
TQSortedList( const TQSortedList<type> &l ) : TQPtrList<type>(l) {}
|
||||
~TQSortedList() { this->clear(); }
|
||||
TQSortedList<type> &operator=(const TQSortedList<type> &l)
|
||||
{ return (TQSortedList<type>&)TQPtrList<type>::operator=(l); }
|
||||
|
||||
virtual int compareItems( TQPtrCollection::Item s1, TQPtrCollection::Item s2 )
|
||||
{ if ( *((type*)s1) == *((type*)s2) ) return 0; return ( *((type*)s1) < *((type*)s2) ? -1 : 1 ); }
|
||||
};
|
||||
|
||||
#endif
|
||||
</pre>
|
||||
<!-- eof -->
|
||||
<p><address><hr><div align=center>
|
||||
<table width=100% cellspacing=0 border=0><tr>
|
||||
<td>Copyright © 2007
|
||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
||||
<td align=right><div align=right>TQt 3.3.8</div>
|
||||
</table></div></address></body>
|
||||
</html>
|
@ -1,90 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/ntqsortedlist.h:47 -->
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>TQSortedList Member List</title>
|
||||
<style type="text/css"><!--
|
||||
fn { margin-left: 1cm; text-indent: -1cm; }
|
||||
a:link { color: #004faf; text-decoration: none }
|
||||
a:visited { color: #672967; text-decoration: none }
|
||||
body { background: #ffffff; color: black; }
|
||||
--></style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr bgcolor="#E5E5E5">
|
||||
<td valign=center>
|
||||
<a href="index.html">
|
||||
<font color="#004faf">Home</font></a>
|
||||
| <a href="classes.html">
|
||||
<font color="#004faf">All Classes</font></a>
|
||||
| <a href="mainclasses.html">
|
||||
<font color="#004faf">Main Classes</font></a>
|
||||
| <a href="annotated.html">
|
||||
<font color="#004faf">Annotated</font></a>
|
||||
| <a href="groups.html">
|
||||
<font color="#004faf">Grouped Classes</font></a>
|
||||
| <a href="functions.html">
|
||||
<font color="#004faf">Functions</font></a>
|
||||
</td>
|
||||
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Complete Member List for TQSortedList</h1>
|
||||
|
||||
<p>This is the complete list of member functions for
|
||||
<a href="ntqsortedlist.html">TQSortedList</a>, including inherited members.
|
||||
|
||||
<ul>
|
||||
<li><a href="ntqsortedlist.html#TQSortedList">TQSortedList</a>()
|
||||
<li><a href="ntqsortedlist.html#~TQSortedList">~TQSortedList</a>()
|
||||
<li><a href="ntqptrlist.html#append">append</a>()
|
||||
<li><a href="ntqptrlist.html#at">at</a>()
|
||||
<li><a href="ntqptrcollection.html#autoDelete">autoDelete</a>()
|
||||
<li><a href="ntqptrlist.html#clear">clear</a>()
|
||||
<li><a href="ntqptrlist.html#compareItems">compareItems</a>()
|
||||
<li><a href="ntqptrlist.html#contains">contains</a>()
|
||||
<li><a href="ntqptrlist.html#containsRef">containsRef</a>()
|
||||
<li><a href="ntqptrlist.html#count">count</a>()
|
||||
<li><a href="ntqptrlist.html#current">current</a>()
|
||||
<li><a href="ntqptrlist.html#currentNode">currentNode</a>()
|
||||
<li><a href="ntqptrcollection.html#deleteItem">deleteItem</a>()
|
||||
<li><a href="ntqptrlist.html#find">find</a>()
|
||||
<li><a href="ntqptrlist.html#findNext">findNext</a>()
|
||||
<li><a href="ntqptrlist.html#findNextRef">findNextRef</a>()
|
||||
<li><a href="ntqptrlist.html#findRef">findRef</a>()
|
||||
<li><a href="ntqptrlist.html#first">first</a>()
|
||||
<li><a href="ntqptrlist.html#getFirst">getFirst</a>()
|
||||
<li><a href="ntqptrlist.html#getLast">getLast</a>()
|
||||
<li><a href="ntqptrlist.html#inSort">inSort</a>()
|
||||
<li><a href="ntqptrlist.html#insert">insert</a>()
|
||||
<li><a href="ntqptrlist.html#isEmpty">isEmpty</a>()
|
||||
<li><a href="ntqptrlist.html#last">last</a>()
|
||||
<li><a href="ntqptrcollection.html#newItem">newItem</a>()
|
||||
<li><a href="ntqptrlist.html#next">next</a>()
|
||||
<li><a href="ntqptrlist.html#operator!-eq">operator!=</a>()
|
||||
<li><a href="ntqsortedlist.html#operator-eq">operator=</a>()
|
||||
<li><a href="ntqptrlist.html#operator-eq-eq">operator==</a>()
|
||||
<li><a href="ntqptrlist.html#prepend">prepend</a>()
|
||||
<li><a href="ntqptrlist.html#prev">prev</a>()
|
||||
<li><a href="ntqptrlist.html#read">read</a>()
|
||||
<li><a href="ntqptrlist.html#remove">remove</a>()
|
||||
<li><a href="ntqptrlist.html#removeFirst">removeFirst</a>()
|
||||
<li><a href="ntqptrlist.html#removeLast">removeLast</a>()
|
||||
<li><a href="ntqptrlist.html#removeNode">removeNode</a>()
|
||||
<li><a href="ntqptrlist.html#removeRef">removeRef</a>()
|
||||
<li><a href="ntqptrlist.html#replace">replace</a>()
|
||||
<li><a href="ntqptrcollection.html#setAutoDelete">setAutoDelete</a>()
|
||||
<li><a href="ntqptrlist.html#sort">sort</a>()
|
||||
<li><a href="ntqptrlist.html#take">take</a>()
|
||||
<li><a href="ntqptrlist.html#takeNode">takeNode</a>()
|
||||
<li><a href="ntqptrlist.html#toVector">toVector</a>()
|
||||
<li><a href="ntqptrlist.html#write">write</a>()
|
||||
</ul>
|
||||
<!-- eof -->
|
||||
<p><address><hr><div align=center>
|
||||
<table width=100% cellspacing=0 border=0><tr>
|
||||
<td>Copyright © 2007
|
||||
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
||||
<td align=right><div align=right>TQt 3.3.8</div>
|
||||
</table></div></address></body>
|
||||
</html>
|
@ -1,91 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** QSortedList documentation
|
||||
**
|
||||
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
|
||||
**
|
||||
** This file is part of the TQt GUI Toolkit.
|
||||
**
|
||||
** This file may be used under the terms of the GNU General
|
||||
** Public License versions 2.0 or 3.0 as published by the Free
|
||||
** Software Foundation and appearing in the files LICENSE.GPL2
|
||||
** and LICENSE.GPL3 included in the packaging of this file.
|
||||
** Alternatively you may (at your option) use any later version
|
||||
** of the GNU General Public License if such license has been
|
||||
** publicly approved by Trolltech ASA (or its successors, if any)
|
||||
** and the KDE Free TQt Foundation.
|
||||
**
|
||||
** Please review the following information to ensure GNU General
|
||||
** Public Licensing requirements will be met:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** review the following information:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
|
||||
** or contact the sales department at sales@trolltech.com.
|
||||
**
|
||||
** This file may be used under the terms of the Q Public License as
|
||||
** defined by Trolltech ASA and appearing in the file LICENSE.QPL
|
||||
** included in the packaging of this file. Licensees holding valid Qt
|
||||
** Commercial licenses may use this file in accordance with the Qt
|
||||
** Commercial License Agreement provided with the Software.
|
||||
**
|
||||
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
|
||||
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
|
||||
** herein.
|
||||
**
|
||||
**********************************************************************/
|
||||
|
||||
/*!
|
||||
\class QSortedList ntqsortedlist.h
|
||||
\brief The QSortedList class provides a list sorted by operator< and operator==.
|
||||
|
||||
\obsolete
|
||||
|
||||
If you want to sort a QPtrList you have to reimplement the
|
||||
QGList::compareItems() method. If the elements of your list support
|
||||
operator<() and operator==(), you can use QSortedList instead.
|
||||
Its compareItems() calls operator<() and operator==() and returns an
|
||||
appropriate result.
|
||||
|
||||
Otherwise, this is as QPtrList.
|
||||
|
||||
\sa QPtrList
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn QSortedList::QSortedList()
|
||||
Constructs an empty list.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QSortedList::QSortedList( const QSortedList<type> &list )
|
||||
Constructs a copy of \a list.
|
||||
|
||||
Each item in \a list is copied to this new list.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QSortedList::~QSortedList()
|
||||
Removes all items from the list and destroys the list.
|
||||
|
||||
All list iterators that access this list will be reset.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QSortedList<type>& QSortedList::operator=(const QSortedList<type>& list)
|
||||
Assigns \a list to this list and returns a reference to this list.
|
||||
|
||||
This list is first cleared; each item in \a list is then
|
||||
appended to this list. Only the pointers are copied
|
||||
(shallow copy) unless newItem() has been reimplemented().
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn int QSortedList::compareItems( QPtrCollection::Item s1, QPtrCollection::Item s2 )
|
||||
|
||||
\reimp
|
||||
|
||||
This reimplementation uses operator< and operator== to compare.
|
||||
*/
|
@ -1 +0,0 @@
|
||||
This directory contains only generated object files.
|
@ -1,66 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Definition of TQSemiModal class for source compatibility
|
||||
**
|
||||
** Created : 001010
|
||||
**
|
||||
** Copyright (C) 2000-2008 Trolltech ASA. All rights reserved.
|
||||
**
|
||||
** This file is part of the dialogs module of the TQt GUI Toolkit.
|
||||
**
|
||||
** This file may be used under the terms of the GNU General
|
||||
** Public License versions 2.0 or 3.0 as published by the Free
|
||||
** Software Foundation and appearing in the files LICENSE.GPL2
|
||||
** and LICENSE.GPL3 included in the packaging of this file.
|
||||
** Alternatively you may (at your option) use any later version
|
||||
** of the GNU General Public License if such license has been
|
||||
** publicly approved by Trolltech ASA (or its successors, if any)
|
||||
** and the KDE Free TQt Foundation.
|
||||
**
|
||||
** Please review the following information to ensure GNU General
|
||||
** Public Licensing requirements will be met:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** review the following information:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
|
||||
** or contact the sales department at sales@trolltech.com.
|
||||
**
|
||||
** This file may be used under the terms of the Q Public License as
|
||||
** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
|
||||
** included in the packaging of this file. Licensees holding valid TQt
|
||||
** Commercial licenses may use this file in accordance with the TQt
|
||||
** Commercial License Agreement provided with the Software.
|
||||
**
|
||||
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
|
||||
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
|
||||
** herein.
|
||||
**
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef TQSEMIMODAL_H
|
||||
#define TQSEMIMODAL_H
|
||||
|
||||
#ifndef QT_H
|
||||
#include "ntqdialog.h"
|
||||
#endif // QT_H
|
||||
|
||||
#ifndef TQT_NO_COMPAT
|
||||
#ifndef TQT_NO_SEMIMODAL
|
||||
class Q_EXPORT TQSemiModal : public TQDialog
|
||||
{
|
||||
TQ_OBJECT
|
||||
public:
|
||||
TQSemiModal( TQWidget* parent=0, const char* name=0, bool modal=FALSE, WFlags f=0 )
|
||||
: TQDialog( parent, name, modal, f ) { }
|
||||
|
||||
private: // Disabled copy constructor and operator=
|
||||
#if defined(TQ_DISABLE_COPY)
|
||||
TQSemiModal( const TQSemiModal & );
|
||||
TQSemiModal &operator=( const TQSemiModal & );
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // TQSEMIMODAL_H
|
@ -1,63 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Definition of TQSortedList template/macro class
|
||||
**
|
||||
** Created : 920701
|
||||
**
|
||||
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
|
||||
**
|
||||
** This file is part of the tools module of the TQt GUI Toolkit.
|
||||
**
|
||||
** This file may be used under the terms of the GNU General
|
||||
** Public License versions 2.0 or 3.0 as published by the Free
|
||||
** Software Foundation and appearing in the files LICENSE.GPL2
|
||||
** and LICENSE.GPL3 included in the packaging of this file.
|
||||
** Alternatively you may (at your option) use any later version
|
||||
** of the GNU General Public License if such license has been
|
||||
** publicly approved by Trolltech ASA (or its successors, if any)
|
||||
** and the KDE Free TQt Foundation.
|
||||
**
|
||||
** Please review the following information to ensure GNU General
|
||||
** Public Licensing requirements will be met:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** review the following information:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
|
||||
** or contact the sales department at sales@trolltech.com.
|
||||
**
|
||||
** This file may be used under the terms of the Q Public License as
|
||||
** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
|
||||
** included in the packaging of this file. Licensees holding valid TQt
|
||||
** Commercial licenses may use this file in accordance with the TQt
|
||||
** Commercial License Agreement provided with the Software.
|
||||
**
|
||||
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
|
||||
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
|
||||
** herein.
|
||||
**
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef TQSORTEDLIST_H
|
||||
#define TQSORTEDLIST_H
|
||||
|
||||
#ifndef QT_H
|
||||
#include "ntqptrlist.h"
|
||||
#endif // QT_H
|
||||
|
||||
|
||||
template<class type>
|
||||
class TQSortedList : public TQPtrList<type>
|
||||
{
|
||||
public:
|
||||
TQSortedList() {}
|
||||
TQSortedList( const TQSortedList<type> &l ) : TQPtrList<type>(l) {}
|
||||
~TQSortedList() { this->clear(); }
|
||||
TQSortedList<type> &operator=(const TQSortedList<type> &l)
|
||||
{ return (TQSortedList<type>&)TQPtrList<type>::operator=(l); }
|
||||
|
||||
virtual int compareItems( TQPtrCollection::Item s1, TQPtrCollection::Item s2 )
|
||||
{ if ( *((type*)s1) == *((type*)s2) ) return 0; return ( *((type*)s1) < *((type*)s2) ? -1 : 1 ); }
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue