summaryrefslogtreecommitdiffstats
path: root/languages/cpp/cppnewclassdlg.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 /languages/cpp/cppnewclassdlg.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 'languages/cpp/cppnewclassdlg.h')
-rw-r--r--languages/cpp/cppnewclassdlg.h214
1 files changed, 107 insertions, 107 deletions
diff --git a/languages/cpp/cppnewclassdlg.h b/languages/cpp/cppnewclassdlg.h
index fb680921..18399d1c 100644
--- a/languages/cpp/cppnewclassdlg.h
+++ b/languages/cpp/cppnewclassdlg.h
@@ -16,9 +16,9 @@
#ifndef _CPPNEWCLASSDLG_H_
#define _CPPNEWCLASSDLG_H_
-#include <qlineedit.h>
-#include <qlistview.h>
-#include <qwidgetstack.h>
+#include <tqlineedit.h>
+#include <tqlistview.h>
+#include <tqwidgetstack.h>
#include "codemodel.h"
#include "cppnewclassdlgbase.h"
@@ -35,36 +35,36 @@ class PCheckListItem: public QCheckListItem
{
public:
- PCheckListItem ( T item, QCheckListItem * parent, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQCheckListItem * parent, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( parent, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, after, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQCheckListItem * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( parent, after, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, QListViewItem * parent, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQListViewItem * parent, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( parent, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, after, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQListViewItem * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( parent, after, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, QListView * parent, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQListView * parent, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( parent, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, QListView * parent, QListViewItem * after, const QString & text, Type tt = Controller ) :
- QCheckListItem ( parent, after, text, tt ), m_item( item )
+ PCheckListItem ( T item, TQListView * parent, TQListViewItem * after, const TQString & text, Type tt = Controller ) :
+ TQCheckListItem ( parent, after, text, tt ), m_item( item )
{}
- PCheckListItem ( T item, QListViewItem * parent, const QString & text, const QPixmap & p ) :
- QCheckListItem ( parent, text, p ), m_item( item )
+ PCheckListItem ( T item, TQListViewItem * parent, const TQString & text, const TQPixmap & p ) :
+ TQCheckListItem ( parent, text, p ), m_item( item )
{}
- PCheckListItem ( T item, QListView * parent, const QString & text, const QPixmap & p ) :
- QCheckListItem ( parent, text, p ), m_item( item )
+ PCheckListItem ( T item, TQListView * parent, const TQString & text, const TQPixmap & p ) :
+ TQCheckListItem ( parent, text, p ), m_item( item )
{}
T item()
@@ -72,7 +72,7 @@ public:
return m_item;
}
- QString templateAddition;
+ TQString templateAddition;
private:
T m_item;
@@ -83,20 +83,20 @@ class PListViewItem: public QListViewItem
{
public:
- PListViewItem ( T item, QListViewItem * parent, QListViewItem * after, const QString & text ) :
- QListViewItem ( parent, after, text ), m_item( item )
+ PListViewItem ( T item, TQListViewItem * parent, TQListViewItem * after, const TQString & text ) :
+ TQListViewItem ( parent, after, text ), m_item( item )
{}
- PListViewItem ( T item, QListViewItem * parent, const QString & text ) :
- QListViewItem ( parent, text ), m_item( item )
+ PListViewItem ( T item, TQListViewItem * parent, const TQString & text ) :
+ TQListViewItem ( parent, text ), m_item( item )
{}
- PListViewItem ( T item, QListView * parent, const QString & text ) :
- QListViewItem ( parent, text ), m_item( item )
+ PListViewItem ( T item, TQListView * parent, const TQString & text ) :
+ TQListViewItem ( parent, text ), m_item( item )
{}
- PListViewItem ( T item, QListView * parent, QListViewItem * after, const QString & text ) :
- QListViewItem ( parent, after, text ), m_item( item )
+ PListViewItem ( T item, TQListView * parent, TQListViewItem * after, const TQString & text ) :
+ TQListViewItem ( parent, after, text ), m_item( item )
{}
T item()
@@ -104,7 +104,7 @@ public:
return m_item;
}
- QString templateAddition;
+ TQString templateAddition;
private:
T m_item;
};
@@ -115,28 +115,28 @@ class CppNewClassDialog : public CppNewClassDialogBase
Q_OBJECT
public:
- CppNewClassDialog( CppSupportPart *part, QWidget *parent = 0, const char *name = 0 );
+ CppNewClassDialog( CppSupportPart *part, TQWidget *parent = 0, const char *name = 0 );
~CppNewClassDialog();
protected:
virtual void accept();
- virtual void classNameChanged( const QString &text );
- virtual void classNamespaceChanged( const QString &text );
+ virtual void classNameChanged( const TQString &text );
+ virtual void classNamespaceChanged( const TQString &text );
virtual void headerChanged();
virtual void implementationChanged();
- virtual void nameHandlerChanged( const QString &text );
- virtual void baseclassname_changed( const QString &text );
- virtual void baseIncludeChanged( const QString &text );
+ virtual void nameHandlerChanged( const TQString &text );
+ virtual void baseclassname_changed( const TQString &text );
+ virtual void baseIncludeChanged( const TQString &text );
virtual void addBaseClass();
virtual void remBaseClass();
virtual void remBaseClassOnly();
- virtual void currBaseNameChanged( const QString &text );
+ virtual void currBaseNameChanged( const TQString &text );
virtual void currBasePrivateSet();
virtual void currBaseProtectedSet();
virtual void currBasePublicSet();
virtual void currBaseVirtualChanged( int val );
- virtual void currBaseSelected( QListViewItem *it );
+ virtual void currBaseSelected( TQListViewItem *it );
virtual void scopeboxActivated( int value );
virtual void checkObjCInheritance( int val );
@@ -146,14 +146,14 @@ protected:
virtual void downbaseclass_button_clicked();
virtual void baseclasses_view_selectionChanged();
- virtual void newTabSelected( const QString &text );
- virtual void newTabSelected( QWidget *w );
- virtual void access_view_mouseButtonPressed( int button, QListViewItem * item, const QPoint &p, int c );
+ virtual void newTabSelected( const TQString &text );
+ virtual void newTabSelected( TQWidget *w );
+ virtual void access_view_mouseButtonPressed( int button, TQListViewItem * item, const TQPoint &p, int c );
virtual void changeToPrivate();
virtual void changeToProtected();
virtual void changeToPublic();
virtual void changeToInherited();
- virtual void methods_view_mouseButtonPressed( int button , QListViewItem * item, const QPoint&p , int c );
+ virtual void methods_view_mouseButtonPressed( int button , TQListViewItem * item, const TQPoint&p , int c );
virtual void extendFunctionality();
virtual void replaceFunctionality();
virtual void to_constructors_list_clicked();
@@ -164,59 +164,59 @@ protected:
virtual void headeronly_box_stateChanged(int val);
void reloadAdvancedInheritance( bool clean = false );
- void parseClass( QString clName, QString inheritance );
- void parsePCSClass( QString clName, QString inheritance );
- void addToConstructorsList( QCheckListItem *myClass, FunctionDom method );
- void addToMethodsList( QListViewItem *parent, FunctionDom method );
- void addToUpgradeList( QListViewItem *parent, FunctionDom method, QString modifier );
- void addToUpgradeList( QListViewItem *parent, VariableDom attr, QString modifier );
+ void parseClass( TQString clName, TQString inheritance );
+ void parsePCSClass( TQString clName, TQString inheritance );
+ void addToConstructorsList( TQCheckListItem *myClass, FunctionDom method );
+ void addToMethodsList( TQListViewItem *parent, FunctionDom method );
+ void addToUpgradeList( TQListViewItem *parent, FunctionDom method, TQString modifier );
+ void addToUpgradeList( TQListViewItem *parent, VariableDom attr, TQString modifier );
void clearConstructorsList( bool clean = false );
void clearMethodsList( bool clean = false );
void clearUpgradeList( bool clean = false );
- bool isConstructor( QString className, const FunctionDom &method );
- bool isDestructor( QString className, const FunctionDom &method );
+ bool isConstructor( TQString className, const FunctionDom &method );
+ bool isDestructor( TQString className, const FunctionDom &method );
private:
bool headerModified;
bool baseincludeModified;
bool implementationModified;
- QString m_parse;
- QPopupMenu *accessMenu;
- QPopupMenu *overMenu;
+ TQString m_parse;
+ TQPopupMenu *accessMenu;
+ TQPopupMenu *overMenu;
CppSupportPart *m_part;
CodeModel *myModel;
// configuration variables
- QString interface_url;
- QString implementation_url;
- QString interface_suffix;
- QString implementation_suffix;
- QStringList currNamespace;
+ TQString interface_url;
+ TQString implementation_url;
+ TQString interface_suffix;
+ TQString implementation_suffix;
+ TQStringList currNamespace;
bool lowercase_filenames;
- QStringList currBaseClasses;
+ TQStringList currBaseClasses;
KCompletion * compBasename;
KCompletion * compNamespace;
void setCompletionBasename( CodeModel *model );
- void addCompletionBasenameNamespacesRecursive( const NamespaceDom & namespaceDom, const QString & namespaceParent = "" );
- void setCompletionNamespaceRecursive( const NamespaceDom & namespaceDom, const QString & namespaceParent = "" );
+ void addCompletionBasenameNamespacesRecursive( const NamespaceDom & namespaceDom, const TQString & namespaceParent = "" );
+ void setCompletionNamespaceRecursive( const NamespaceDom & namespaceDom, const TQString & namespaceParent = "" );
void setStateOfInheritanceEditors( bool state, bool hideList = true );
- void setAccessForBase( QString baseclass, QString newAccess );
- void setAccessForItem( QListViewItem *curr, QString newAccess, bool isPublic );
- void remClassFromAdv( QString text );
+ void setAccessForBase( TQString baseclass, TQString newAccess );
+ void setAccessForItem( TQListViewItem *curr, TQString newAccess, bool isPublic );
+ void remClassFromAdv( TQString text );
void checkUpButtonState();
void checkDownButtonState();
void updateConstructorsOrder();
- QString classNameFormatted();
- QString templateStrFormatted();
- QString templateParamsFormatted();
- QString classNameFormatted( const QString & );
- QString templateStrFormatted( const QString & );
- QString templateParamsFormatted( const QString & );
- QString templateActualParamsFormatted( const QString & );
- void removeTemplateParams( QString & );
+ TQString classNameFormatted();
+ TQString templateStrFormatted();
+ TQString templateParamsFormatted();
+ TQString classNameFormatted( const TQString & );
+ TQString templateStrFormatted( const TQString & );
+ TQString templateParamsFormatted( const TQString & );
+ TQString templateActualParamsFormatted( const TQString & );
+ void removeTemplateParams( TQString & );
friend class ClassGenerator;
@@ -234,49 +234,49 @@ private:
void common_text();
void gen_implementation();
void gen_interface();
- void genMethodDeclaration( FunctionDom method, QString className, QString templateStr,
- QString *adv_h, QString *adv_cpp, bool extend, QString baseClassName );
-
- void beautifyHeader( QString &templ, QString &headerGuard,
- QString &includeBaseHeader, QString &author, QString &doc, QString &className, QString &templateStr,
- QString &baseclass, QString &inheritance, QString &qobjectStr, QString &args,
- QString &header, QString &namespaceBeg, QString &constructors, QString &advH_public,
- QString &advH_public_slots,
- QString &advH_protected, QString &advH_protected_slots, QString &advH_private, QString &advH_private_slots,
- QString &namespaceEnd );
- void beautifySource( QString &templ, QString &header, QString &className, QString &namespaceBeg,
- QString &constructors, QString &advCpp, QString &namespaceEnd, QString &implementation );
-
- QString className;
- QString templateStr;
- QString templateParams;
- QString header;
- QString implementation;
-
- QString advConstructorsHeader;
- QString advConstructorsSource;
+ void genMethodDeclaration( FunctionDom method, TQString className, TQString templateStr,
+ TQString *adv_h, TQString *adv_cpp, bool extend, TQString baseClassName );
+
+ void beautifyHeader( TQString &templ, TQString &headerGuard,
+ TQString &includeBaseHeader, TQString &author, TQString &doc, TQString &className, TQString &templateStr,
+ TQString &baseclass, TQString &inheritance, TQString &qobjectStr, TQString &args,
+ TQString &header, TQString &namespaceBeg, TQString &constructors, TQString &advH_public,
+ TQString &advH_public_slots,
+ TQString &advH_protected, TQString &advH_protected_slots, TQString &advH_private, TQString &advH_private_slots,
+ TQString &namespaceEnd );
+ void beautifySource( TQString &templ, TQString &header, TQString &className, TQString &namespaceBeg,
+ TQString &constructors, TQString &advCpp, TQString &namespaceEnd, TQString &implementation );
+
+ TQString className;
+ TQString templateStr;
+ TQString templateParams;
+ TQString header;
+ TQString implementation;
+
+ TQString advConstructorsHeader;
+ TQString advConstructorsSource;
KDevProject *project;
- QString subDir, headerPath, implementationPath;
- QString doc;
- QString namespaceStr;
+ TQString subDir, headerPath, implementationPath;
+ TQString doc;
+ TQString namespaceStr;
bool childClass;
bool objc;
bool qobject;
bool gtk;
bool headeronly;
- QStringList namespaces;
- QString namespaceBeg, namespaceEnd;
- QString argsH;
- QString argsCpp;
-
- QString advH_public;
- QString advH_public_slots;
- QString advH_protected;
- QString advH_protected_slots;
- QString advH_private;
- QString advH_private_slots;
- QString advCpp;
+ TQStringList namespaces;
+ TQString namespaceBeg, namespaceEnd;
+ TQString argsH;
+ TQString argsCpp;
+
+ TQString advH_public;
+ TQString advH_public_slots;
+ TQString advH_protected;
+ TQString advH_protected_slots;
+ TQString advH_private;
+ TQString advH_private_slots;
+ TQString advCpp;
CppNewClassDialog& dlg;