summaryrefslogtreecommitdiffstats
path: root/languages/cpp/classgeneratorconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/classgeneratorconfig.cpp')
-rw-r--r--languages/cpp/classgeneratorconfig.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/languages/cpp/classgeneratorconfig.cpp b/languages/cpp/classgeneratorconfig.cpp
index c6049801..70ad5d10 100644
--- a/languages/cpp/classgeneratorconfig.cpp
+++ b/languages/cpp/classgeneratorconfig.cpp
@@ -9,11 +9,11 @@
* *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qtextedit.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqtextedit.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
#include <kstandarddirs.h>
#include <kconfig.h>
@@ -21,7 +21,7 @@
#include "cppsupportfactory.h"
#include "classgeneratorconfig.h"
-ClassGeneratorConfig::ClassGeneratorConfig( QWidget* parent, const char* name, WFlags fl )
+ClassGeneratorConfig::ClassGeneratorConfig( TQWidget* parent, const char* name, WFlags fl )
: ClassGeneratorConfigBase( parent, name, fl )
{
readConfig();
@@ -29,12 +29,12 @@ ClassGeneratorConfig::ClassGeneratorConfig( QWidget* parent, const char* name, W
template_edit->setText( *currTemplate );
}
-ClassGeneratorConfig::ClassGeneratorConfig( QString v_cppHeaderText, QString v_cppSourceText,
- QString v_objcHeaderText, QString v_objcSourceText,
- QString v_gtkHeaderText, QString v_gtkSourceText,
+ClassGeneratorConfig::ClassGeneratorConfig( TQString v_cppHeaderText, TQString v_cppSourceText,
+ TQString v_objcHeaderText, TQString v_objcSourceText,
+ TQString v_gtkHeaderText, TQString v_gtkSourceText,
NameCase v_fileCase, NameCase v_defCase, NameCase v_superCase,
bool v_showAuthor, bool v_genDoc, bool v_reformat,
- QWidget* parent, const char* name, WFlags fl )
+ TQWidget* parent, const char* name, WFlags fl )
: ClassGeneratorConfigBase( parent, name, fl ),
cppHeaderText( v_cppHeaderText ), cppSourceText( v_cppSourceText ),
objcHeaderText( v_objcHeaderText ), objcSourceText( v_objcSourceText ),
@@ -62,42 +62,42 @@ void ClassGeneratorConfig::templateTypeChanged( int type )
template_edit->setText( *currTemplate );
}
-QString ClassGeneratorConfig::cppHeader()
+TQString ClassGeneratorConfig::cppHeader()
{
if ( currTemplate == &cppHeaderText )
* currTemplate = template_edit->text();
return cppHeaderText;
}
-QString ClassGeneratorConfig::cppSource()
+TQString ClassGeneratorConfig::cppSource()
{
if ( currTemplate == &cppSourceText )
* currTemplate = template_edit->text();
return cppSourceText;
}
-QString ClassGeneratorConfig::objcHeader()
+TQString ClassGeneratorConfig::objcHeader()
{
if ( currTemplate == &objcHeaderText )
* currTemplate = template_edit->text();
return objcHeaderText;
}
-QString ClassGeneratorConfig::objcSource()
+TQString ClassGeneratorConfig::objcSource()
{
if ( currTemplate == &objcSourceText )
* currTemplate = template_edit->text();
return objcSourceText;
}
-QString ClassGeneratorConfig::gtkHeader()
+TQString ClassGeneratorConfig::gtkHeader()
{
if ( currTemplate == &gtkHeaderText )
* currTemplate = template_edit->text();
return gtkHeaderText;
}
-QString ClassGeneratorConfig::gtkSource()
+TQString ClassGeneratorConfig::gtkSource()
{
if ( currTemplate == &gtkSourceText )
* currTemplate = template_edit->text();
@@ -129,7 +129,7 @@ bool ClassGeneratorConfig::genDoc()
return doc_box->isChecked();
}
-QString *ClassGeneratorConfig::identifyTemplate( int value )
+TQString *ClassGeneratorConfig::identifyTemplate( int value )
{
switch ( value )
{
@@ -177,15 +177,15 @@ void ClassGeneratorConfig::readConfig()
}
-QString ClassGeneratorConfig::templateText( QString path )
+TQString ClassGeneratorConfig::templateText( TQString path )
{
- QFileInfo f( path );
+ TQFileInfo f( path );
if ( f.exists() )
{
- QFile file( path );
+ TQFile file( path );
if ( file.open( IO_ReadOnly ) )
{
- QTextStream stream( &file );
+ TQTextStream stream( &file );
return stream.read();
}
else
@@ -222,12 +222,12 @@ void ClassGeneratorConfig::storeConfig()
}
}
-void ClassGeneratorConfig::saveTemplateText( QString path, QString content )
+void ClassGeneratorConfig::saveTemplateText( TQString path, TQString content )
{
- QFile f( path );
+ TQFile f( path );
if ( f.open( IO_WriteOnly ) )
{
- QTextStream stream( &f );
+ TQTextStream stream( &f );
stream << content;
f.close();
}