summaryrefslogtreecommitdiffstats
path: root/parts/classview/classviewwidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/classview/classviewwidget.h
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/classview/classviewwidget.h')
-rw-r--r--parts/classview/classviewwidget.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/parts/classview/classviewwidget.h b/parts/classview/classviewwidget.h
index 975f6e09..0ace5692 100644
--- a/parts/classview/classviewwidget.h
+++ b/parts/classview/classviewwidget.h
@@ -23,10 +23,10 @@
#define __CLASSVIEW_WIDGET_H__
#include <klistview.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
-#include <qtooltip.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
+#include <tqtooltip.h>
#include <codemodel.h>
#include <fancylistviewitem.h>
#include <navigator.h>
@@ -80,21 +80,21 @@ private slots:
void slotFollowEditor();
protected:
- void contentsContextMenuEvent( QContextMenuEvent* );
- void maybeTip( QPoint const & );
+ void contentsContextMenuEvent( TQContextMenuEvent* );
+ void maybeTip( TQPoint const & );
private slots:
void slotProjectOpened();
void slotProjectClosed();
void refresh();
- void insertFile( const QString& fileName );
- void removeFile( const QString& fileName );
- void slotExecuted( QListViewItem* item );
+ void insertFile( const TQString& fileName );
+ void removeFile( const TQString& fileName );
+ void slotExecuted( TQListViewItem* item );
private:
ClassViewPart* m_part;
- QStringList removedText;
- QString m_projectDirectory;
+ TQStringList removedText;
+ TQString m_projectDirectory;
int m_projectDirectoryLength;
FolderBrowserItem* m_projectItem;
KSelectAction* m_actionViewMode;
@@ -120,9 +120,9 @@ class ClassViewItem: public FancyListViewItem
{
private:
public:
- ClassViewItem( QListView* parent, const QString& text=QString::null )
+ ClassViewItem( TQListView* parent, const TQString& text=TQString::null )
: FancyListViewItem( static_cast<ClassViewWidget*>( parent )->m_paintStyles, parent, text ) {}
- ClassViewItem( QListViewItem* parent, const QString& text=QString::null )
+ ClassViewItem( TQListViewItem* parent, const TQString& text=TQString::null )
: FancyListViewItem( static_cast<ClassViewWidget*>( parent->listView() )->m_paintStyles, parent, text ) {}
virtual const CodeModelItem* model() const { return 0; }
@@ -143,26 +143,26 @@ public:
void select();
- virtual QString comment();
+ virtual TQString comment();
- ClassViewWidget* listView() { return static_cast<ClassViewWidget*>( QListViewItem::listView() ); }
- const ClassViewWidget* listView() const { return static_cast<ClassViewWidget*>( QListViewItem::listView() ); }
+ ClassViewWidget* listView() { return static_cast<ClassViewWidget*>( TQListViewItem::listView() ); }
+ const ClassViewWidget* listView() const { return static_cast<ClassViewWidget*>( TQListViewItem::listView() ); }
};
class FolderBrowserItem: public ClassViewItem
{
public:
- FolderBrowserItem( ClassViewWidget* widget, QListView* parent, const QString& name=QString::null )
+ FolderBrowserItem( ClassViewWidget* widget, TQListView* parent, const TQString& name=TQString::null )
: ClassViewItem( parent, name ), m_widget(widget) {}
- FolderBrowserItem( ClassViewWidget* widget, QListViewItem* parent, const QString& name=QString::null )
+ FolderBrowserItem( ClassViewWidget* widget, TQListViewItem* parent, const TQString& name=TQString::null )
: ClassViewItem( parent, name ), m_widget(widget) {}
virtual bool isFolder() const { return true; }
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
- void processFile( FileDom file, QStringList& path, bool remove=false );
+ void processFile( FileDom file, TQStringList& path, bool remove=false );
void processNamespace( NamespaceDom ns, bool remove=false );
void processClass( ClassDom klass, bool remove=false );
void processTypeAlias( TypeAliasDom typeAlias, bool remove=false );
@@ -171,12 +171,12 @@ public:
bool selectItem(ItemDom item);
private:
- QMap<QString, FolderBrowserItem*> m_folders;
- QMap<QString, NamespaceDomBrowserItem*> m_namespaces;
- QMap<ClassDom, ClassDomBrowserItem*> m_classes;
- QMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
- QMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
- QMap<VariableDom, VariableDomBrowserItem*> m_variables;
+ TQMap<TQString, FolderBrowserItem*> m_folders;
+ TQMap<TQString, NamespaceDomBrowserItem*> m_namespaces;
+ TQMap<ClassDom, ClassDomBrowserItem*> m_classes;
+ TQMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
+ TQMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
+ TQMap<VariableDom, VariableDomBrowserItem*> m_variables;
ClassViewWidget* m_widget;
};
@@ -184,9 +184,9 @@ private:
class NamespaceDomBrowserItem: public ClassViewItem
{
public:
- NamespaceDomBrowserItem( QListView* parent, NamespaceDom dom )
+ NamespaceDomBrowserItem( TQListView* parent, NamespaceDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- NamespaceDomBrowserItem( QListViewItem* parent, NamespaceDom dom )
+ NamespaceDomBrowserItem( TQListViewItem* parent, NamespaceDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -194,7 +194,7 @@ public:
virtual bool isNamespace() const { return true; }
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
void processNamespace( NamespaceDom ns, bool remove=false );
void processClass( ClassDom klass, bool remove=false );
@@ -202,25 +202,25 @@ public:
void processFunction( FunctionDom fun, bool remove=false );
void processVariable( VariableDom var, bool remove=false );
bool selectItem( ItemDom item );
- virtual QString comment();
+ virtual TQString comment();
NamespaceDom dom() { return m_dom; }
private:
NamespaceDom m_dom;
- QMap<QString, NamespaceDomBrowserItem*> m_namespaces;
- QMap<ClassDom, ClassDomBrowserItem*> m_classes;
- QMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
- QMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
- QMap<VariableDom, VariableDomBrowserItem*> m_variables;
+ TQMap<TQString, NamespaceDomBrowserItem*> m_namespaces;
+ TQMap<ClassDom, ClassDomBrowserItem*> m_classes;
+ TQMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
+ TQMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
+ TQMap<VariableDom, VariableDomBrowserItem*> m_variables;
};
class ClassDomBrowserItem: public ClassViewItem
{
public:
- ClassDomBrowserItem( QListView* parent, ClassDom dom )
+ ClassDomBrowserItem( TQListView* parent, ClassDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- ClassDomBrowserItem( QListViewItem* parent, ClassDom dom )
+ ClassDomBrowserItem( TQListViewItem* parent, ClassDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -230,14 +230,14 @@ public:
virtual void openDeclaration();
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
void processClass( ClassDom klass, bool remove=false );
void processTypeAlias( TypeAliasDom typeAlias, bool remove=false );
void processFunction( FunctionDom fun, bool remove=false );
void processVariable( VariableDom var, bool remove=false );
- virtual QString comment() {
+ virtual TQString comment() {
if( !m_dom ) return "";
return m_dom->comment();
}
@@ -247,18 +247,18 @@ public:
private:
ClassDom m_dom;
- QMap<ClassDom, ClassDomBrowserItem*> m_classes;
- QMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
- QMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
- QMap<VariableDom, VariableDomBrowserItem*> m_variables;
+ TQMap<ClassDom, ClassDomBrowserItem*> m_classes;
+ TQMap<TypeAliasDom, TypeAliasDomBrowserItem*> m_typeAliases;
+ TQMap<FunctionDom, FunctionDomBrowserItem*> m_functions;
+ TQMap<VariableDom, VariableDomBrowserItem*> m_variables;
};
class TypeAliasDomBrowserItem: public ClassViewItem
{
public:
- TypeAliasDomBrowserItem( QListView* parent, TypeAliasDom dom )
+ TypeAliasDomBrowserItem( TQListView* parent, TypeAliasDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- TypeAliasDomBrowserItem( QListViewItem* parent, TypeAliasDom dom )
+ TypeAliasDomBrowserItem( TQListViewItem* parent, TypeAliasDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -267,13 +267,13 @@ public:
virtual bool hasDeclaration() const { return true; }
virtual void openDeclaration();
- virtual QString comment() {
+ virtual TQString comment() {
if( !m_dom ) return "";
return m_dom->comment();
}
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
TypeAliasDom dom() { return m_dom; }
@@ -284,9 +284,9 @@ private:
class FunctionDomBrowserItem: public ClassViewItem
{
public:
- FunctionDomBrowserItem( QListView* parent, FunctionDom dom )
+ FunctionDomBrowserItem( TQListView* parent, FunctionDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- FunctionDomBrowserItem( QListViewItem* parent, FunctionDom dom )
+ FunctionDomBrowserItem( TQListViewItem* parent, FunctionDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -298,13 +298,13 @@ public:
virtual void openDeclaration();
virtual void openImplementation();
- virtual QString comment() {
+ virtual TQString comment() {
if( !m_dom ) return "";
return m_dom->comment();
}
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
FunctionDom dom() { return m_dom; }
@@ -315,9 +315,9 @@ private:
class VariableDomBrowserItem: public ClassViewItem
{
public:
- VariableDomBrowserItem( QListView* parent, VariableDom dom )
+ VariableDomBrowserItem( TQListView* parent, VariableDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- VariableDomBrowserItem( QListViewItem* parent, VariableDom dom )
+ VariableDomBrowserItem( TQListViewItem* parent, VariableDom dom )
: ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -326,7 +326,7 @@ public:
virtual bool hasDeclaration() const { return true; }
virtual bool hasImplementation() const { return false; }
- virtual QString comment() {
+ virtual TQString comment() {
if( !m_dom ) return "";
return m_dom->comment();
}
@@ -335,7 +335,7 @@ public:
virtual void openImplementation();
void setup();
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
VariableDom dom() { return m_dom; }
@@ -355,8 +355,8 @@ struct FindOp2 ///a template would look nicer
if( m_dom->isConstant() != m_dom->isConstant() )
return false;
- QString scope1 = QString("::") + m_dom->scope().join("::");
- QString scope2 = QString("::") + def->scope().join("::");
+ TQString scope1 = TQString("::") + m_dom->scope().join("::");
+ TQString scope2 = TQString("::") + def->scope().join("::");
if( !scope1.endsWith(scope2) )
return false;
@@ -389,8 +389,8 @@ struct FindOp
if( m_dom->isConstant() != m_dom->isConstant() )
return false;
- QString scope1 = QString("::") + m_dom->scope().join("::");
- QString scope2 = QString("::") + def->scope().join("::");
+ TQString scope1 = TQString("::") + m_dom->scope().join("::");
+ TQString scope2 = TQString("::") + def->scope().join("::");
if( !scope1.endsWith(scope2) )
return false;