summaryrefslogtreecommitdiffstats
path: root/qt/SciListBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt/SciListBox.cpp')
-rw-r--r--qt/SciListBox.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/qt/SciListBox.cpp b/qt/SciListBox.cpp
index 4808ffa..ef2475b 100644
--- a/qt/SciListBox.cpp
+++ b/qt/SciListBox.cpp
@@ -1,32 +1,32 @@
-// This module implements the specialisation of QListBox that handles the
+// This module implements the specialisation of TQListBox that handles the
// Scintilla double-click callback.
//
// Copyright (c) 2006
// Riverbank Computing Limited <[email protected]>
//
-// This file is part of QScintilla.
+// This file is part of TQScintilla.
//
-// This copy of QScintilla is free software; you can redistribute it and/or
+// This copy of TQScintilla is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2, or (at your option) any
// later version.
//
-// QScintilla is supplied in the hope that it will be useful, but WITHOUT ANY
+// TQScintilla is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
-// QScintilla; see the file LICENSE. If not, write to the Free Software
+// TQScintilla; see the file LICENSE. If not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <stdlib.h>
#include <string.h>
-#include <qapplication.h>
-#include <qmap.h>
-#include <qpixmap.h>
+#include <tqapplication.h>
+#include <tqmap.h>
+#include <tqpixmap.h>
#include "SciListBox.h"
@@ -65,7 +65,7 @@ public:
private:
SciListBox *slb;
- typedef QMap<int,QPixmap> xpmMap;
+ typedef TQMap<int,TQPixmap> xpmMap;
xpmMap xset;
};
@@ -82,7 +82,7 @@ ListBoxX::~ListBoxX()
void ListBoxX::SetFont(Font &font)
{
- QFont *f = reinterpret_cast<QFont *>(font.GetID());
+ TQFont *f = reinterpret_cast<TQFont *>(font.GetID());
if (f)
slb -> setFont(*f);
@@ -92,13 +92,13 @@ void ListBoxX::SetFont(Font &font)
void ListBoxX::Create(Window &parent,int,Point,int,bool)
{
// The parent we want is the QextScintillaBase, not the text area.
- id = slb = new SciListBox(reinterpret_cast<QWidget *>(parent.GetID()) -> parentWidget(),this);
+ id = slb = new SciListBox(reinterpret_cast<TQWidget *>(parent.GetID()) -> parentWidget(),this);
}
void ListBoxX::SetAverageCharWidth(int)
{
- // We rely on QListBox::sizeHint() for the size of the list box rather
+ // We rely on TQListBox::tqsizeHint() for the size of the list box rather
// than make calculations based on the average character width and the
// number of visible rows.
}
@@ -121,7 +121,7 @@ PRectangle ListBoxX::GetDesiredRect()
if (slb)
{
- QSize sh = slb -> sizeHint();
+ TQSize sh = slb -> tqsizeHint();
rc.right = sh.width();
rc.bottom = sh.height();
@@ -191,13 +191,13 @@ int ListBoxX::GetSelection()
int ListBoxX::Find(const char *prefix)
{
- return slb -> index(slb -> findItem(prefix,Qt::CaseSensitive|Qt::BeginsWith));
+ return slb -> index(slb -> findItem(prefix,TQt::CaseSensitive|TQt::BeginsWith));
}
void ListBoxX::GetValue(int n,char *value,int len)
{
- QString s = slb -> text(n);
+ TQString s = slb -> text(n);
if (s.isNull() || len <= 0)
value[0] = '\0';
@@ -217,7 +217,7 @@ void ListBoxX::Sort()
void ListBoxX::RegisterImage(int type,const char *xpm_data)
{
- xset.insert(type,*reinterpret_cast<const QPixmap *>(xpm_data));
+ xset.insert(type,*reinterpret_cast<const TQPixmap *>(xpm_data));
}
@@ -296,8 +296,8 @@ ListBox *ListBox::Allocate()
}
-SciListBox::SciListBox(QWidget *parent,ListBoxX *lbx_)
- : QListBox(parent,0,WType_Popup|WStyle_Customize|WStyle_NoBorder|WStaticContents), lbx(lbx_)
+SciListBox::SciListBox(TQWidget *parent,ListBoxX *lbx_)
+ : TQListBox(parent,0,WType_Popup|WStyle_Customize|WStyle_NoBorder|WStaticContents), lbx(lbx_)
{
setFocusProxy(parent);
@@ -305,11 +305,11 @@ SciListBox::SciListBox(QWidget *parent,ListBoxX *lbx_)
setFrameShadow(Plain);
setHScrollBarMode(AlwaysOff);
- connect(this,SIGNAL(doubleClicked(QListBoxItem *)),
- SLOT(handleDoubleClick(QListBoxItem *)));
+ connect(this,TQT_SIGNAL(doubleClicked(TQListBoxItem *)),
+ TQT_SLOT(handleDoubleClick(TQListBoxItem *)));
- connect(this,SIGNAL(highlighted(QListBoxItem *)),
- SLOT(ensureCurrentVisible()));
+ connect(this,TQT_SIGNAL(highlighted(TQListBoxItem *)),
+ TQT_SLOT(ensureCurrentVisible()));
}
@@ -321,7 +321,7 @@ SciListBox::~SciListBox()
}
-void SciListBox::handleDoubleClick(QListBoxItem *)
+void SciListBox::handleDoubleClick(TQListBoxItem *)
{
if (lbx && lbx -> cb_action)
lbx -> cb_action(lbx -> cb_data);