summaryrefslogtreecommitdiffstats
path: root/languages/ruby/rubyimplementationwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/rubyimplementationwidget.cpp')
-rw-r--r--languages/ruby/rubyimplementationwidget.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/languages/ruby/rubyimplementationwidget.cpp b/languages/ruby/rubyimplementationwidget.cpp
index 95055076..b1371a24 100644
--- a/languages/ruby/rubyimplementationwidget.cpp
+++ b/languages/ruby/rubyimplementationwidget.cpp
@@ -19,11 +19,11 @@
***************************************************************************/
#include "rubyimplementationwidget.h"
-#include <qdir.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
#include <klineedit.h>
#include <klocale.h>
@@ -34,35 +34,35 @@
#include <kdevproject.h>
RubyImplementationWidget::RubyImplementationWidget(KDevLanguageSupport* part,
- QWidget* parent, const char* name, bool modal)
+ TQWidget* parent, const char* name, bool modal)
:ImplementationWidget(part, parent, name, modal)
{
}
-QStringList RubyImplementationWidget::createClassFiles()
+TQStringList RubyImplementationWidget::createClassFiles()
{
- QString template_rb = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
+ TQString template_rb = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
- QFileInfo formInfo(m_formName);
- template_rb.replace(QRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".rb");
- template_rb.replace(QRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
- template_rb.replace(QRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
+ TQFileInfo formInfo(m_formName);
+ template_rb.replace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".rb");
+ template_rb.replace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
+ template_rb.replace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
template_rb = FileTemplate::read(m_part, "rb") + template_rb;
- QString file_rb = fileNameEdit->text() + ".rb";
+ TQString file_rb = fileNameEdit->text() + ".rb";
if (!m_part->project()->activeDirectory().isEmpty())
file_rb = m_part->project()->activeDirectory() + "/" + file_rb;
- QFile file(QDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + file_rb));
+ TQFile file(TQDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + file_rb));
if (!file.open(IO_WriteOnly)) {
KMessageBox::error(0, i18n("Cannot write to file"));
- return QStringList();
+ return TQStringList();
}
- QTextStream stream(&file);
+ TQTextStream stream(&file);
stream << template_rb;
file.close();
- QStringList files;
+ TQStringList files;
files.append(file_rb);
return files;
}