diff options
Diffstat (limited to 'languages/ruby/app_templates/kapp')
-rw-r--r-- | languages/ruby/app_templates/kapp/app.cpp | 4 | ||||
-rw-r--r-- | languages/ruby/app_templates/kapp/app.rb | 36 | ||||
-rw-r--r-- | languages/ruby/app_templates/kapp/appiface.rb | 2 | ||||
-rw-r--r-- | languages/ruby/app_templates/kapp/appview.rb | 20 | ||||
-rw-r--r-- | languages/ruby/app_templates/kapp/pref.rb | 12 |
5 files changed, 37 insertions, 37 deletions
diff --git a/languages/ruby/app_templates/kapp/app.cpp b/languages/ruby/app_templates/kapp/app.cpp index 04770335..09d2f1fa 100644 --- a/languages/ruby/app_templates/kapp/app.cpp +++ b/languages/ruby/app_templates/kapp/app.cpp @@ -2,8 +2,8 @@ #include <tqstring.h> #include <tqfileinfo.h> -#include <kinstance.h> -#include <kstandarddirs.h> +#include <tdeinstance.h> +#include <tdestandarddirs.h> int main(int argc, char **argv) { TDEInstance * instance = new TDEInstance("%{APPNAMELC}"); diff --git a/languages/ruby/app_templates/kapp/app.rb b/languages/ruby/app_templates/kapp/app.rb index 61531be2..39b919da 100644 --- a/languages/ruby/app_templates/kapp/app.rb +++ b/languages/ruby/app_templates/kapp/app.rb @@ -9,14 +9,14 @@ class %{APPNAMESC} < KDE::MainWindow - Q_SLOTS 'fileNew()', + slots 'fileNew()', 'fileOpen()', 'fileSave()', 'fileSaveAs()', 'filePrint()', 'optionsPreferences()', - 'changeStatusbar(const QString&)', - 'changeCaption(const QString&)' + 'changeStatusbar(const TQString&)', + 'changeCaption(const TQString&)' def initialize() super( nil, "%{APPNAMESC}" ) @@ -41,10 +41,10 @@ class %{APPNAMESC} < KDE::MainWindow setupGUI(); # allow the view to change the statusbar and caption - connect(@view, SIGNAL('signalChangeStatusbar(const QString&)'), - self, SLOT('changeStatusbar(const QString&)')) - connect(@view, SIGNAL('signalChangeCaption(const QString&)'), - self, SLOT('changeCaption(const QString&)')) + connect(@view, TQ_SIGNAL('signalChangeStatusbar(const TQString&)'), + self, TQ_SLOT('changeStatusbar(const TQString&)')) + connect(@view, TQ_SIGNAL('signalChangeCaption(const TQString&)'), + self, TQ_SLOT('changeCaption(const TQString&)')) end @@ -74,19 +74,19 @@ class %{APPNAMESC} < KDE::MainWindow end def setupActions() - KDE::StdAction.openNew(self, SLOT('fileNew()'), actionCollection()) - KDE::StdAction.open(self, SLOT('fileOpen()'), actionCollection()) - KDE::StdAction.save(self, SLOT('fileSave()'), actionCollection()) - KDE::StdAction.saveAs(self, SLOT('fileSaveAs()'), actionCollection()) - KDE::StdAction.print(self, SLOT('filePrint()'), actionCollection()) - KDE::StdAction.quit($kapp, SLOT('quit()'), actionCollection()) + KDE::StdAction.openNew(self, TQ_SLOT('fileNew()'), actionCollection()) + KDE::StdAction.open(self, TQ_SLOT('fileOpen()'), actionCollection()) + KDE::StdAction.save(self, TQ_SLOT('fileSave()'), actionCollection()) + KDE::StdAction.saveAs(self, TQ_SLOT('fileSaveAs()'), actionCollection()) + KDE::StdAction.print(self, TQ_SLOT('filePrint()'), actionCollection()) + KDE::StdAction.quit($tdeApp, TQ_SLOT('quit()'), actionCollection()) - KDE::StdAction.preferences(self, SLOT('optionsPreferences()'), actionCollection()) + KDE::StdAction.preferences(self, TQ_SLOT('optionsPreferences()'), actionCollection()) # this doesn't do anything useful. it's just here to illustrate # how to insert a custom menu and menu item custom = KDE::Action.new(i18n("Cus&tom Menuitem"), KDE::Shortcut.new(), - self, SLOT('optionsPreferences()'), + self, TQ_SLOT('optionsPreferences()'), actionCollection(), "custom_action") end @@ -181,13 +181,13 @@ class %{APPNAMESC} < KDE::MainWindow if @printer.nil? then @printer = KDE::Printer.new end if @printer.setup(self) # setup the printer. with Qt, you always "print" to a - # Qt::Painter.. whether the output medium is a pixmap, a screen, + # TQt::Painter.. whether the output medium is a pixmap, a screen, # or paper - p = Qt::Painter.new + p = TQt::Painter.new p.begin(@printer) # we let our view do the actual printing - metrics = Qt::PaintDeviceMetrics.new(@printer) + metrics = TQt::PaintDeviceMetrics.new(@printer) @view.print(p, metrics.height(), metrics.width()) # and send the result to the printer diff --git a/languages/ruby/app_templates/kapp/appiface.rb b/languages/ruby/app_templates/kapp/appiface.rb index a8be16b5..7ff96bd6 100644 --- a/languages/ruby/app_templates/kapp/appiface.rb +++ b/languages/ruby/app_templates/kapp/appiface.rb @@ -1,6 +1,6 @@ class %{APPNAMESC}Iface < KDE::DCOPObject
- k_dcop 'void openURL(QString)'
+ k_dcop 'void openURL(TQString)'
def initialize(app)
super("%{APPNAMESC}Iface")
diff --git a/languages/ruby/app_templates/kapp/appview.rb b/languages/ruby/app_templates/kapp/appview.rb index e7aabe3c..7ee8133f 100644 --- a/languages/ruby/app_templates/kapp/appview.rb +++ b/languages/ruby/app_templates/kapp/appview.rb @@ -10,20 +10,20 @@ @author %{AUTHOR} <%{EMAIL}> @version %{VERSION} =end -class %{APPNAMESC}View < Qt::Widget +class %{APPNAMESC}View < TQt::Widget # # Use this signal to change the content of the statusbar # - Q_SIGNALS 'signalChangeStatusbar(const QString&)' + signals 'signalChangeStatusbar(const TQString&)' # # Use this signal to change the content of the caption # - Q_SIGNALS 'signalChangeCaption(const QString&)' + signals 'signalChangeCaption(const TQString&)' - Q_SLOTS 'slotOnURL(const QString&)', - 'slotSetTitle(const QString&)' + slots 'slotOnURL(const TQString&)', + 'slotSetTitle(const TQString&)' def initialize(parent) super(parent) @@ -32,7 +32,7 @@ class %{APPNAMESC}View < Qt::Widget @dcop = %{APPNAMESC}Iface.new(self) # setup our layout manager to automatically add our widgets - top_layout = Qt::HBoxLayout.new(self) + top_layout = TQt::HBoxLayout.new(self) top_layout.setAutoAdd(true) # we want to look for all components that satisfy our needs. the @@ -71,10 +71,10 @@ class %{APPNAMESC}View < Qt::Widget return end - connect(@html, SIGNAL('setWindowCaption(const QString&)'), - self, SLOT('slotSetTitle(const QString&)')) - connect(@html, SIGNAL('setStatusBarText(const QString&)'), - self, SLOT('slotOnURL(const QString&)')) + connect(@html, TQ_SIGNAL('setWindowCaption(const TQString&)'), + self, TQ_SLOT('slotSetTitle(const TQString&)')) + connect(@html, TQ_SIGNAL('setStatusBarText(const TQString&)'), + self, TQ_SLOT('slotOnURL(const TQString&)')) end diff --git a/languages/ruby/app_templates/kapp/pref.rb b/languages/ruby/app_templates/kapp/pref.rb index 98669ad2..cf8339e9 100644 --- a/languages/ruby/app_templates/kapp/pref.rb +++ b/languages/ruby/app_templates/kapp/pref.rb @@ -15,24 +15,24 @@ class %{APPNAMESC}Preferences < KDE::DialogBase end end -class %{APPNAMESC}PrefPageOne < Qt::Frame +class %{APPNAMESC}PrefPageOne < TQt::Frame def initialize(parent) super(parent) - layout = Qt::HBoxLayout.new(self) + layout = TQt::HBoxLayout.new(self) layout.setAutoAdd(true) - Qt::Label.new(i18n("Add something here"), self) + TQt::Label.new(i18n("Add something here"), self) end end -class %{APPNAMESC}PrefPageTwo < Qt::Frame +class %{APPNAMESC}PrefPageTwo < TQt::Frame def initialize(parent) super(parent) - layout = Qt::HBoxLayout.new(self) + layout = TQt::HBoxLayout.new(self) layout.setAutoAdd(true) - Qt::Label.new(i18n("Add something here"), self) + TQt::Label.new(i18n("Add something here"), self) end end |