Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/32/head
Michele Calgaro 4 months ago
parent 0ff7d227c6
commit faf33629bb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -536,12 +536,12 @@ EOF
} }
/** Prepend a '2' to a signal string and remove any spaces */ /** Prepend a '2' to a signal string and remove any spaces */
public static String SIGNAL(String signal) { public static String TQ_SIGNAL(String signal) {
return "2" + sqeezeOut(signal, ' '); return "2" + sqeezeOut(signal, ' ');
} }
/** Prepend a '1' to a slot string and remove any spaces */ /** Prepend a '1' to a slot string and remove any spaces */
public static String SLOT(String slot) { public static String TQ_SLOT(String slot) {
return "1" + sqeezeOut(slot, ' '); return "1" + sqeezeOut(slot, ' ');
} }
@ -5473,8 +5473,8 @@ sub printJavadocComment($$$$)
$line =~ s/const char/String/g; $line =~ s/const char/String/g;
$line =~ s/const (\w+)\&/$1/g; $line =~ s/const (\w+)\&/$1/g;
$line =~ s/bool/boolean/g; $line =~ s/bool/boolean/g;
$line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g; $line =~ s/TQ_SLOT\(\s*([^\)]*)\) ?\)/TQ_SLOT("$1)")/g;
$line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g; $line =~ s/TQ_SIGNAL\(\s*([^\)]*)\) ?\)/TQ_SIGNAL("$1)")/g;
$line =~ s/TQ_OBJECT\n//g; $line =~ s/TQ_OBJECT\n//g;
$line =~ s/class\s+([\w]+)\s*:\s*public/public class $1 implements/g; $line =~ s/class\s+([\w]+)\s*:\s*public/public class $1 implements/g;
$line =~ s/public\s*(slots)?:\n/public /g; $line =~ s/public\s*(slots)?:\n/public /g;

@ -331,12 +331,12 @@ EOF
} }
/** Prepend a '2' to a signal string and remove any spaces */ /** Prepend a '2' to a signal string and remove any spaces */
public static String SIGNAL(String signal) { public static String TQ_SIGNAL(String signal) {
return "2" + sqeezeOut(signal, ' '); return "2" + sqeezeOut(signal, ' ');
} }
/** Prepend a '1' to a slot string and remove any spaces */ /** Prepend a '1' to a slot string and remove any spaces */
public static String SLOT(String slot) { public static String TQ_SLOT(String slot) {
return "1" + sqeezeOut(slot, ' '); return "1" + sqeezeOut(slot, ' ');
} }
@ -3315,8 +3315,8 @@ sub printJavadocComment($$$$)
$line =~ s/const char/String/g; $line =~ s/const char/String/g;
$line =~ s/const (\w+)\&/$1/g; $line =~ s/const (\w+)\&/$1/g;
$line =~ s/bool/boolean/g; $line =~ s/bool/boolean/g;
$line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g; $line =~ s/TQ_SLOT\(\s*([^\)]*)\) ?\)/TQ_SLOT("$1)")/g;
$line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g; $line =~ s/TQ_SIGNAL\(\s*([^\)]*)\) ?\)/TQ_SIGNAL("$1)")/g;
$line =~ s/TQ_OBJECT\n//g; $line =~ s/TQ_OBJECT\n//g;
$line =~ s/class\s+([\w]+)\s*:\s*public/public class $1 implements/g; $line =~ s/class\s+([\w]+)\s*:\s*public/public class $1 implements/g;
$line =~ s/public\s*(slots)?:\n/public /g; $line =~ s/public\s*(slots)?:\n/public /g;

@ -386,11 +386,11 @@ EOF
public static TQApplication tqApp = null; public static TQApplication tqApp = null;
public static string SIGNAL(string signal) { public static string TQ_SIGNAL(string signal) {
return "2"+ signal; return "2"+ signal;
} }
public static string SLOT(string slot) { public static string TQ_SLOT(string slot) {
return "1" + slot; return "1" + slot;
} }
EOF EOF
@ -3497,8 +3497,8 @@ sub printCSharpdocComment($$$$)
$line =~ s/const char/string/g; $line =~ s/const char/string/g;
$line =~ s/const (\w+)\&/$1/g; $line =~ s/const (\w+)\&/$1/g;
$line =~ s/bool/bool/g; $line =~ s/bool/bool/g;
$line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g; $line =~ s/TQ_SLOT\(\s*([^\)]*)\) ?\)/TQ_SLOT("$1)")/g;
$line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g; $line =~ s/TQ_SIGNAL\(\s*([^\)]*)\) ?\)/TQ_SIGNAL("$1)")/g;
$line =~ s/TQ_OBJECT\n//g; $line =~ s/TQ_OBJECT\n//g;
$line =~ s/public\s*(slots)?:\n/public /g; $line =~ s/public\s*(slots)?:\n/public /g;
$line =~ s/([^0-9"]\s*)\*(\s*[^0-9"-])/$1$2/g; $line =~ s/([^0-9"]\s*)\*(\s*[^0-9"-])/$1$2/g;

@ -94,12 +94,12 @@ void JSConsoleWidget::createView()
go = new TQPushButton( i18n("&Run"), cmdBox, "run_button" ); go = new TQPushButton( i18n("&Run"), cmdBox, "run_button" );
go->setFixedSize( go->sizeHint() ); go->setFixedSize( go->sizeHint() );
connect( cmd, TQT_SIGNAL(returnPressed(const TQString&)), go, TQT_SLOT( animateClick() ) ); connect( cmd, TQ_SIGNAL(returnPressed(const TQString&)), go, TQ_SLOT( animateClick() ) );
connect( go, TQT_SIGNAL( clicked() ), TQT_SLOT( invoke() ) ); connect( go, TQ_SIGNAL( clicked() ), TQ_SLOT( invoke() ) );
// Setup completion // Setup completion
TDECompletion *comp = cmd->completionObject(); TDECompletion *comp = cmd->completionObject();
connect( cmd, TQT_SIGNAL(returnPressed(const TQString&)), comp, TQT_SLOT(addItem(const TQString&)) ); connect( cmd, TQ_SIGNAL(returnPressed(const TQString&)), comp, TQ_SLOT(addItem(const TQString&)) );
// Layout // Layout
TQVBoxLayout *vert = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() ); TQVBoxLayout *vert = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
@ -192,11 +192,11 @@ bool JSConsoleWidget::run( const TQString &cmd )
proc = new KShellProcess("/bin/sh"); proc = new KShellProcess("/bin/sh");
*proc << cmd; *proc << cmd;
connect( proc, TQT_SIGNAL( processExited(TDEProcess *) ), TQT_SLOT( childExited() ) ); connect( proc, TQ_SIGNAL( processExited(TDEProcess *) ), TQ_SLOT( childExited() ) );
connect( proc, TQT_SIGNAL( receivedStdout(TDEProcess *, char *, int) ), connect( proc, TQ_SIGNAL( receivedStdout(TDEProcess *, char *, int) ),
this, TQT_SLOT( receivedStdOutput(TDEProcess *, char *, int) ) ); this, TQ_SLOT( receivedStdOutput(TDEProcess *, char *, int) ) );
connect( proc, TQT_SIGNAL( receivedStderr(TDEProcess *, char *, int) ), connect( proc, TQ_SIGNAL( receivedStderr(TDEProcess *, char *, int) ),
this, TQT_SLOT( receivedStdError(TDEProcess *, char *, int) ) ); this, TQ_SLOT( receivedStdError(TDEProcess *, char *, int) ) );
return proc->start( TDEProcess::NotifyOnExit, return proc->start( TDEProcess::NotifyOnExit,
TDEProcess::Communication( TDEProcess::Stdout|TDEProcess::Stderr )); TDEProcess::Communication( TDEProcess::Stdout|TDEProcess::Stderr ));

@ -99,7 +99,7 @@ int main( int argc, char **argv )
} }
else { else {
app = new TDEApplication; app = new TDEApplication;
app->connect( app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); app->connect( app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) );
} }
// Setup the rest // Setup the rest

@ -34,10 +34,10 @@ TQString KSimpleProcess::exec( const TQString &args, bool addStdErr )
TQString KSimpleProcess::execInternal( const TQString &args, bool addStdError) TQString KSimpleProcess::execInternal( const TQString &args, bool addStdError)
{ {
m_proc->setArguments( splitArgList( args )); m_proc->setArguments( splitArgList( args ));
connect(m_proc, TQT_SIGNAL(processExited()), this, TQT_SLOT(slotProcessExited())); connect(m_proc, TQ_SIGNAL(processExited()), this, TQ_SLOT(slotProcessExited()));
connect(m_proc, TQT_SIGNAL(readyReadStdout()), this, TQT_SLOT(slotReceivedStdout())); connect(m_proc, TQ_SIGNAL(readyReadStdout()), this, TQ_SLOT(slotReceivedStdout()));
if( addStdError ) if( addStdError )
connect(m_proc, TQT_SIGNAL(readyReadStderr()), this, TQT_SLOT(slotReceivedStderr())); connect(m_proc, TQ_SIGNAL(readyReadStderr()), this, TQ_SLOT(slotReceivedStderr()));
if ( !m_proc->start() ) if ( !m_proc->start() )
return i18n("Could not run command '%1'.").arg( args.latin1() ); return i18n("Could not run command '%1'.").arg( args.latin1() );

@ -51,7 +51,7 @@ JSConsolePlugin::JSConsolePlugin( TQObject *parent, const char *name, const TQSt
menu->setDelayed( false ); menu->setDelayed( false );
menu->insert( new TDEAction( i18n("&Console"), 0, menu->insert( new TDEAction( i18n("&Console"), 0,
this, TQT_SLOT( showConsole() ), this, TQ_SLOT( showConsole() ),
actionCollection(), "jsconsole_show") ); actionCollection(), "jsconsole_show") );
} }

@ -43,7 +43,7 @@ int main( int argc, char **argv )
// Setup TQApplication // Setup TQApplication
TQApplication *app; TQApplication *app;
app = new TQApplication( argc, argv ); app = new TQApplication( argc, argv );
app->connect( app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); app->connect( app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) );
// Setup Interpreter // Setup Interpreter
KJSEmbed::JSSecurityPolicy::setDefaultPolicy( KJSEmbed::JSSecurityPolicy::CapabilityAll ); KJSEmbed::JSSecurityPolicy::setDefaultPolicy( KJSEmbed::JSSecurityPolicy::CapabilityAll );

@ -49,7 +49,7 @@ int main( int argc, char **argv )
// Setup Window // Setup Window
app.setMainWidget( console ); app.setMainWidget( console );
app.connect( &app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); app.connect( &app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) );
console->resize( 600, 450 ); console->resize( 600, 450 );
console->show(); console->show();

@ -52,7 +52,7 @@ int main( int argc, char **argv )
// Setup Window // Setup Window
app.setMainWidget( console ); app.setMainWidget( console );
app.connect( &app, TQT_SIGNAL( lastWindowClosed() ), TQT_SLOT(quit()) ); app.connect( &app, TQ_SIGNAL( lastWindowClosed() ), TQ_SLOT(quit()) );
console->resize( 600, 450 ); console->resize( 600, 450 );
console->show(); console->show();

@ -125,7 +125,7 @@ bool XMLActionClient::bind( TDEAction *act, const XMLActionScript &s )
// kdWarning() << "Runner:bind called, action=" << act->name() << " type=" << s.type // kdWarning() << "Runner:bind called, action=" << act->name() << " type=" << s.type
// << " text=" << s.text << " src=" << s.src << endl; // << " text=" << s.text << " src=" << s.src << endl;
connect( act, TQT_SIGNAL( activated() ), this, TQT_SLOT( action_activated() ) ); connect( act, TQ_SIGNAL( activated() ), this, TQ_SLOT( action_activated() ) );
return bind( act->name(), s ); return bind( act->name(), s );
} }
@ -331,7 +331,7 @@ TDEAction *XMLActionHandler::createAction( TDEActionCollection *parent )
act->setStatusText( ad.status ); act->setStatusText( ad.status );
act->setWhatsThis( ad.whatsthis ); act->setWhatsThis( ad.whatsthis );
TQObject::connect( actclient, TQT_SIGNAL( destroyed() ), act, TQT_SLOT( deleteLater() ) ); TQObject::connect( actclient, TQ_SIGNAL( destroyed() ), act, TQ_SLOT( deleteLater() ) );
return act; return act;
} }

@ -180,50 +180,50 @@ module MyGui
@label = TQt::Label.new self @label = TQt::Label.new self
TQt::Object.connect @listbox, SIGNAL("clicked(TQListBoxItem*)"), TQt::Object.connect @listbox, TQ_SIGNAL("clicked(TQListBoxItem*)"),
self, SLOT("clicked_result(TQListBoxItem*)") self, TQ_SLOT("clicked_result(TQListBoxItem*)")
TQt::Object.connect @viewed, SIGNAL("completed()"), TQt::Object.connect @viewed, TQ_SIGNAL("completed()"),
self, SLOT("tdehtml_part_init_complete()") self, TQ_SLOT("tdehtml_part_init_complete()")
TQt::Object::connect @viewed, SIGNAL("setWindowCaption(const TQString&)"), TQt::Object::connect @viewed, TQ_SIGNAL("setWindowCaption(const TQString&)"),
@viewed.widget.topLevelWidget, @viewed.widget.topLevelWidget,
SLOT("setCaption(const TQString&)") TQ_SLOT("setCaption(const TQString&)")
TQt::Object::connect @viewed.browserExtension, TQt::Object::connect @viewed.browserExtension,
SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"), TQ_SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"),
self, SLOT("open_url(const KURL&)") self, TQ_SLOT("open_url(const KURL&)")
KDE::Action.new "&Quit", "quit", KDE::Shortcut.new(), KDE::Action.new "&Quit", "quit", KDE::Shortcut.new(),
self, SLOT("quit()"), @main.actionCollection, "file_quit" self, TQ_SLOT("quit()"), @main.actionCollection, "file_quit"
KDE::Action.new "&Index-All", KDE::Shortcut.new(), KDE::Action.new "&Index-All", KDE::Shortcut.new(),
self, SLOT("index_all()"), @main.actionCollection, "index_all" self, TQ_SLOT("index_all()"), @main.actionCollection, "index_all"
@back = \ @back = \
KDE::Action.new "&Back", "back", KDE::Shortcut.new(TQt::ALT + TQt::Key_Left), KDE::Action.new "&Back", "back", KDE::Shortcut.new(TQt::ALT + TQt::Key_Left),
self, SLOT("go_back()"), @main.actionCollection, "back" self, TQ_SLOT("go_back()"), @main.actionCollection, "back"
@forward = \ @forward = \
KDE::Action.new "&Forward", "forward", KDE::Shortcut.new(TQt::ALT + TQt::Key_Right), KDE::Action.new "&Forward", "forward", KDE::Shortcut.new(TQt::ALT + TQt::Key_Right),
self, SLOT("go_forward()"), @main.actionCollection, "forward" self, TQ_SLOT("go_forward()"), @main.actionCollection, "forward"
KDE::Action.new "&Home", "gohome", KDE::Shortcut.new(TQt::Key_Home), KDE::Action.new "&Home", "gohome", KDE::Shortcut.new(TQt::Key_Home),
self, SLOT("go_home()"), @main.actionCollection, "home" self, TQ_SLOT("go_home()"), @main.actionCollection, "home"
KDE::Action.new "&Prev Match", "go-previous",KDE::Shortcut.new(TQt::CTRL + TQt::Key_P), KDE::Action.new "&Prev Match", "go-previous",KDE::Shortcut.new(TQt::CTRL + TQt::Key_P),
self, SLOT("goto_prev_match()"), @main.actionCollection, "prev_match" self, TQ_SLOT("goto_prev_match()"), @main.actionCollection, "prev_match"
KDE::Action.new "&Next Match", "go-next", KDE::Shortcut.new(TQt::CTRL + TQt::Key_N), KDE::Action.new "&Next Match", "go-next", KDE::Shortcut.new(TQt::CTRL + TQt::Key_N),
self, SLOT("goto_next_match()"), @main.actionCollection, "next_match" self, TQ_SLOT("goto_next_match()"), @main.actionCollection, "next_match"
KDE::Action.new "&Follow Match","go-down", KDE::Shortcut.new(TQt::Key_Return), KDE::Action.new "&Follow Match","go-down", KDE::Shortcut.new(TQt::Key_Return),
self, SLOT("goto_current_match_link()"), @main.actionCollection, "open_match" self, TQ_SLOT("goto_current_match_link()"), @main.actionCollection, "open_match"
KDE::Action.new "Search", "edit-find", KDE::Shortcut.new(TQt::Key_F6), KDE::Action.new "Search", "edit-find", KDE::Shortcut.new(TQt::Key_F6),
self, SLOT("focus_search()"), @main.actionCollection, "focus_search" self, TQ_SLOT("focus_search()"), @main.actionCollection, "focus_search"
KDE::Action.new "New Search", "edit-find", KDE::Shortcut.new(TQt::CTRL + TQt::Key_Slash), KDE::Action.new "New Search", "edit-find", KDE::Shortcut.new(TQt::CTRL + TQt::Key_Slash),
self, SLOT("focus_and_clear_search()"), @main.actionCollection, "focus_and_clear_search" self, TQ_SLOT("focus_and_clear_search()"), @main.actionCollection, "focus_and_clear_search"
KDE::Action.new "&Create", "new", KDE::Shortcut.new(), KDE::Action.new "&Create", "new", KDE::Shortcut.new(),
self, SLOT("project_create()"), @main.actionCollection, "project_create" self, TQ_SLOT("project_create()"), @main.actionCollection, "project_create"
KDE::Action.new "&Choose...", "select", KDE::Shortcut.new(), KDE::Action.new "&Choose...", "select", KDE::Shortcut.new(),
self, SLOT("project_goto()"), @main.actionCollection, "project_goto" self, TQ_SLOT("project_goto()"), @main.actionCollection, "project_goto"
clearLocation = KDE::Action.new "Clear Location Bar", "locationbar_erase", KDE::Shortcut.new(), clearLocation = KDE::Action.new "Clear Location Bar", "locationbar_erase", KDE::Shortcut.new(),
self, SLOT("clear_location()"), @main.actionCollection, "clear_location" self, TQ_SLOT("clear_location()"), @main.actionCollection, "clear_location"
clearLocation.setWhatsThis "Clear Location bar<p>Clears the content of the location bar." clearLocation.setWhatsThis "Clear Location bar<p>Clears the content of the location bar."
@searchlabel = TQt::Label.new @main @searchlabel = TQt::Label.new @main
@ -231,10 +231,10 @@ module MyGui
@searchcombo = KDE::HistoryCombo.new @main @searchcombo = KDE::HistoryCombo.new @main
focus_search focus_search
TQt::Object.connect @searchcombo, SIGNAL("returnPressed()"), TQt::Object.connect @searchcombo, TQ_SIGNAL("returnPressed()"),
self, SLOT("goto_search()") self, TQ_SLOT("goto_search()")
TQt::Object.connect @searchcombo, SIGNAL("textChanged(const TQString&)"), TQt::Object.connect @searchcombo, TQ_SIGNAL("textChanged(const TQString&)"),
self, SLOT("search(const TQString&)") self, TQ_SLOT("search(const TQString&)")
KDE::WidgetAction.new @searchlabel, "Search: ", KDE::Shortcut.new(TQt::Key_F6), nil, nil, @main.actionCollection, "location_label" KDE::WidgetAction.new @searchlabel, "Search: ", KDE::Shortcut.new(TQt::Key_F6), nil, nil, @main.actionCollection, "location_label"
@searchlabel.setBuddy @searchcombo @searchlabel.setBuddy @searchcombo
@ -680,11 +680,11 @@ class ProjectEditDialog < TQt::Object
@cb.setChecked true if enabled @cb.setChecked true if enabled
TQt::Object.connect @dialog, SIGNAL("okClicked()"), TQt::Object.connect @dialog, TQ_SIGNAL("okClicked()"),
self, SLOT("slot_ok()") self, TQ_SLOT("slot_ok()")
TQt::Object.connect locselc, SIGNAL("clicked()"), TQt::Object.connect locselc, TQ_SIGNAL("clicked()"),
self, SLOT("select_file()") self, TQ_SLOT("select_file()")
@title.setFocus @title.setFocus
@ -746,17 +746,17 @@ class ProjectSelectDialog < TQt::Object
button_del = TQt::PushButton.new "Delete", hbox button_del = TQt::PushButton.new "Delete", hbox
button_edit = TQt::PushButton.new "Edit...", hbox button_edit = TQt::PushButton.new "Edit...", hbox
TQt::Object.connect button_new, SIGNAL("clicked()"), TQt::Object.connect button_new, TQ_SIGNAL("clicked()"),
self, SLOT("project_create_button()") self, TQ_SLOT("project_create_button()")
TQt::Object.connect button_del, SIGNAL("clicked()"), TQt::Object.connect button_del, TQ_SIGNAL("clicked()"),
self, SLOT("delete_selected_project()") self, TQ_SLOT("delete_selected_project()")
TQt::Object.connect button_edit, SIGNAL("clicked()"), TQt::Object.connect button_edit, TQ_SIGNAL("clicked()"),
self, SLOT("edit_selected_project()") self, TQ_SLOT("edit_selected_project()")
TQt::Object.connect @listbox, SIGNAL("doubleClicked(TQListBoxItem *)"), TQt::Object.connect @listbox, TQ_SIGNAL("doubleClicked(TQListBoxItem *)"),
self, SLOT("project_selected()") self, TQ_SLOT("project_selected()")
@dialog.setMainWidget vbox @dialog.setMainWidget vbox
end end
@ -915,8 +915,8 @@ class RubberDoc < TQt::VBox
gui_init_proportions gui_init_proportions
@timer = TQt::Timer.new self @timer = TQt::Timer.new self
TQt::Object.connect @timer, SIGNAL("timeout()"), TQt::Object.connect @timer, TQ_SIGNAL("timeout()"),
self, SLOT("update_highlight()") self, TQ_SLOT("update_highlight()")
@viewed.openURL KDE::URL.new("about:blank") @viewed.openURL KDE::URL.new("about:blank")
@ -934,8 +934,8 @@ class RubberDoc < TQt::VBox
end end
def tdehtml_part_init_complete def tdehtml_part_init_complete
TQt::Object.disconnect @viewed, SIGNAL("completed()"), TQt::Object.disconnect @viewed, TQ_SIGNAL("completed()"),
self, SLOT("tdehtml_part_init_complete()") if @init_connected self, TQ_SLOT("tdehtml_part_init_complete()") if @init_connected
@pref = File.dirname first_url.url.gsub("file:","") @pref = File.dirname first_url.url.gsub("file:","")

@ -6,7 +6,7 @@ include KDE
class SenderWidget < PushButton class SenderWidget < PushButton
def initialize(parent, name) def initialize(parent, name)
super super
connect(self, SIGNAL('clicked()'), self, SLOT('doit()')) connect(self, TQ_SIGNAL('clicked()'), self, TQ_SLOT('doit()'))
end end
slots 'doit()' slots 'doit()'

@ -6,7 +6,7 @@ include KDE
class SenderWidget < PushButton class SenderWidget < PushButton
def initialize(parent, name) def initialize(parent, name)
super super
connect(self, SIGNAL('clicked()'), self, SLOT('doit()')) connect(self, TQ_SIGNAL('clicked()'), self, TQ_SLOT('doit()'))
end end
slots 'doit()' slots 'doit()'

@ -5,7 +5,7 @@ require 'Korundum'
class SenderWidget < KDE::PushButton class SenderWidget < KDE::PushButton
def initialize(parent, name) def initialize(parent, name)
super super
TQt::Object::connect(self, SIGNAL('clicked()'), self, SLOT('doit()')) TQt::Object::connect(self, TQ_SIGNAL('clicked()'), self, TQ_SLOT('doit()'))
end end
slots 'doit()' slots 'doit()'

@ -7,7 +7,7 @@ class SenderWidget < KDE::PushButton
def initialize(parent, name) def initialize(parent, name)
super super
TQt::Object::connect(self, SIGNAL('clicked()'), self, SLOT('doit()')) TQt::Object::connect(self, TQ_SIGNAL('clicked()'), self, TQ_SLOT('doit()'))
end end
slots 'doit()' slots 'doit()'

@ -73,8 +73,8 @@ doc = KDE::HTMLPart.new toplevel, nil, toplevel, nil, 1
# doc = KDE::HTMLPart.new toplevel, nil, toplevel, nil, 1 # KDE::HTMLPart::BrowserViewGUI # doc = KDE::HTMLPart.new toplevel, nil, toplevel, nil, 1 # KDE::HTMLPart::BrowserViewGUI
ph = PartHolder.new doc ph = PartHolder.new doc
TQt::Object::connect doc.browserExtension, SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"), TQt::Object::connect doc.browserExtension, TQ_SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"),
ph, SLOT("openURL(const KURL&)") # BUG this slot must be screwing up wrt marshalling? ph, TQ_SLOT("openURL(const KURL&)") # BUG this slot must be screwing up wrt marshalling?
ph.openURL url ph.openURL url
toplevel.setCentralWidget doc.widget toplevel.setCentralWidget doc.widget
@ -103,26 +103,26 @@ begin
d.documentElement.appendChild locBar d.documentElement.appendChild locBar
end end
a1 = KDE::Action.new( "Reload", "reload", KDE::Shortcut.new(TQt::Key_F5), ph, SLOT("reload()"), doc.actionCollection, "reload" ) a1 = KDE::Action.new( "Reload", "reload", KDE::Shortcut.new(TQt::Key_F5), ph, TQ_SLOT("reload()"), doc.actionCollection, "reload" )
a2 = KDE::Action.new( "Exit", "system-log-out", KDE::Shortcut.new(0), a, SLOT("quit()"), doc.actionCollection, "exit" ) a2 = KDE::Action.new( "Exit", "system-log-out", KDE::Shortcut.new(0), a, TQ_SLOT("quit()"), doc.actionCollection, "exit" )
toplevel.guiFactory.addClient doc toplevel.guiFactory.addClient doc
locBar = toplevel.toolBar("locationBar"); locBar = toplevel.toolBar("locationBar");
locBar.insertButton "back", BACK_B, SIGNAL("clicked()"), locBar.insertButton "back", BACK_B, TQ_SIGNAL("clicked()"),
ph, SLOT("back()"), true, "Go back" ph, TQ_SLOT("back()"), true, "Go back"
locBar.insertLined url.url, LOC_ED, SIGNAL("returnPressed(const TQString&)"), ph, SLOT("goToURL(const TQString&)"), true, "Location" locBar.insertLined url.url, LOC_ED, TQ_SIGNAL("returnPressed(const TQString&)"), ph, TQ_SLOT("goToURL(const TQString&)"), true, "Location"
locBar.insertButton "locationbar_erase", ERASE_B, SIGNAL("clicked()"), locBar.insertButton "locationbar_erase", ERASE_B, TQ_SIGNAL("clicked()"),
locBar.getLined(LOC_ED), SLOT("clear()"), true, "Erase the location bar's content", 2 locBar.getLined(LOC_ED), TQ_SLOT("clear()"), true, "Erase the location bar's content", 2
locBar.setItemAutoSized LOC_ED, true locBar.setItemAutoSized LOC_ED, true
locBar.getLined(LOC_ED).createPopupMenu locBar.getLined(LOC_ED).createPopupMenu
comp = locBar.getLined(LOC_ED).completionObject comp = locBar.getLined(LOC_ED).completionObject
comp.setCompletionMode KDE::GlobalSettings::CompletionPopupAuto comp.setCompletionMode KDE::GlobalSettings::CompletionPopupAuto
TQt::Object::connect(locBar.getLined(LOC_ED), SIGNAL("returnPressed(const TQString&)"), TQt::Object::connect(locBar.getLined(LOC_ED), TQ_SIGNAL("returnPressed(const TQString&)"),
comp, SLOT("addItem(const TQString&)")) comp, TQ_SLOT("addItem(const TQString&)"))
TQt::Object::connect(ph, SIGNAL("setLocBarText(const TQString&)"), # BUG - once again... TQt::Object::connect(ph, TQ_SIGNAL("setLocBarText(const TQString&)"), # BUG - once again...
locBar.getLined(LOC_ED), SLOT("setText(const TQString&)")) locBar.getLined(LOC_ED), TQ_SLOT("setText(const TQString&)"))
doc.setJScriptEnabled true doc.setJScriptEnabled true
doc.setJavaEnabled true doc.setJavaEnabled true
@ -131,8 +131,8 @@ doc.setURLCursor TQt::Cursor.new(TQt::PointingHandCursor)
a.setTopWidget doc.widget a.setTopWidget doc.widget
TQt::Object::connect doc, SIGNAL("setWindowCaption(const TQString&)"), TQt::Object::connect doc, TQ_SIGNAL("setWindowCaption(const TQString&)"),
doc.widget.topLevelWidget, SLOT("setCaption(const TQString&)") doc.widget.topLevelWidget, TQ_SLOT("setCaption(const TQString&)")
toplevel.show toplevel.show
a.exec a.exec

@ -65,29 +65,29 @@ class MainWin < MainWindow
def initActions() def initActions()
# "File" menu items # "File" menu items
@newAction = StdAction.openNew(self, SLOT('slotNew()'), actionCollection()) @newAction = StdAction.openNew(self, TQ_SLOT('slotNew()'), actionCollection())
@openAction = StdAction.open(self, SLOT('slotOpen()'), actionCollection()) @openAction = StdAction.open(self, TQ_SLOT('slotOpen()'), actionCollection())
@saveAction = StdAction.save(self, SLOT('slotSave()'), actionCollection()) @saveAction = StdAction.save(self, TQ_SLOT('slotSave()'), actionCollection())
@saveAsAction = StdAction.saveAs(self, SLOT('slotSaveAs()'), actionCollection()) @saveAsAction = StdAction.saveAs(self, TQ_SLOT('slotSaveAs()'), actionCollection())
@printAction = StdAction.print(self, SLOT('slotPrint()'), actionCollection()) @printAction = StdAction.print(self, TQ_SLOT('slotPrint()'), actionCollection())
@quitAction = StdAction.quit(self, SLOT('slotQuit()'), actionCollection()) @quitAction = StdAction.quit(self, TQ_SLOT('slotQuit()'), actionCollection())
# "Edit" menu items # "Edit" menu items
@undoAction = StdAction.undo(self, SLOT('slotUndo()'), actionCollection()) @undoAction = StdAction.undo(self, TQ_SLOT('slotUndo()'), actionCollection())
@redoAction = StdAction.redo(self, SLOT('slotRedo()'), actionCollection()) @redoAction = StdAction.redo(self, TQ_SLOT('slotRedo()'), actionCollection())
@cutAction = StdAction.cut(self, SLOT('slotCut()'), actionCollection()) @cutAction = StdAction.cut(self, TQ_SLOT('slotCut()'), actionCollection())
@copyAction = StdAction.copy(self, SLOT('slotCopy()'), actionCollection()) @copyAction = StdAction.copy(self, TQ_SLOT('slotCopy()'), actionCollection())
@pasteAction = StdAction.paste(self, SLOT('slotPaste()'), actionCollection()) @pasteAction = StdAction.paste(self, TQ_SLOT('slotPaste()'), actionCollection())
@findAction = StdAction.find(self, SLOT('slotFind()'), actionCollection()) @findAction = StdAction.find(self, TQ_SLOT('slotFind()'), actionCollection())
@findNextAction = StdAction.findNext(self, SLOT('slotFindNext()'), actionCollection()) @findNextAction = StdAction.findNext(self, TQ_SLOT('slotFindNext()'), actionCollection())
@replaceAction = StdAction.replace(self, SLOT('slotReplace()'), actionCollection()) @replaceAction = StdAction.replace(self, TQ_SLOT('slotReplace()'), actionCollection())
@specialAction = Action.new(i18n("Special"), Shortcut.new(), self, SLOT('slotSpecial()'), actionCollection(), "special") @specialAction = Action.new(i18n("Special"), Shortcut.new(), self, TQ_SLOT('slotSpecial()'), actionCollection(), "special")
# Demo menu items # Demo menu items
# TDEToggleAction has an isChecked member and emits the "toggle" signal # TDEToggleAction has an isChecked member and emits the "toggle" signal
@toggle1Action = ToggleAction.new("Toggle 1") @toggle1Action = ToggleAction.new("Toggle 1")
@toggle2Action = ToggleAction.new("Toggle 2", Shortcut.new(), self, SLOT('slotToggle2()'), nil) @toggle2Action = ToggleAction.new("Toggle 2", Shortcut.new(), self, TQ_SLOT('slotToggle2()'), nil)
# A separator - create once/use everywhere # A separator - create once/use everywhere
@separateAction = ActionSeparator.new() @separateAction = ActionSeparator.new()
@ -103,8 +103,8 @@ class MainWin < MainWindow
# Nested menus using TDEActions (also nested on toolbar) # Nested menus using TDEActions (also nested on toolbar)
@actionMenu = ActionMenu.new("Action Menu") @actionMenu = ActionMenu.new("Action Menu")
@actionMenu.setIconSet(iconSet) @actionMenu.setIconSet(iconSet)
@actionMenu.insert(StdAction.zoomIn(self, SLOT('slotZoomIn()'), actionCollection())) @actionMenu.insert(StdAction.zoomIn(self, TQ_SLOT('slotZoomIn()'), actionCollection()))
@actionMenu.insert(StdAction.zoomOut(self, SLOT('slotZoomOut()'), actionCollection())) @actionMenu.insert(StdAction.zoomOut(self, TQ_SLOT('slotZoomOut()'), actionCollection()))
# Doesn't work in KDE 2.1.1 # Doesn't work in KDE 2.1.1
# radio1Action = TDERadioAction ("Radio 1") # radio1Action = TDERadioAction ("Radio 1")

@ -67,14 +67,14 @@ class RbPartsMW < KParts::MainWindow
# some of this and later stuff (like self.actionCollection () ) # some of this and later stuff (like self.actionCollection () )
# comes from # comes from
quitAction = KDE::StdAction.quit(self, SLOT('close()'), actionCollection()) quitAction = KDE::StdAction.quit(self, TQ_SLOT('close()'), actionCollection())
createStandardStatusBarAction() createStandardStatusBarAction()
# @m_toolbarAction = KDE::StdAction.showToolbar(self, SLOT('optionsShowToolbar()'), actionCollection()) # @m_toolbarAction = KDE::StdAction.showToolbar(self, TQ_SLOT('optionsShowToolbar()'), actionCollection())
@m_statusbarAction = KDE::StdAction.showStatusbar(self, SLOT('optionsShowStatusbar()'), actionCollection()) @m_statusbarAction = KDE::StdAction.showStatusbar(self, TQ_SLOT('optionsShowStatusbar()'), actionCollection())
KDE::StdAction.keyBindings(self, SLOT('optionsConfigureKeys()'), actionCollection()) KDE::StdAction.keyBindings(self, TQ_SLOT('optionsConfigureKeys()'), actionCollection())
KDE::StdAction.configureToolbars(self, SLOT('optionsConfigureToolbars()'), actionCollection()) KDE::StdAction.configureToolbars(self, TQ_SLOT('optionsConfigureToolbars()'), actionCollection())
path = Dir.getwd() + '/' path = Dir.getwd() + '/'
setGeometry(0, 0, 600, 500) setGeometry(0, 0, 600, 500)

@ -39,9 +39,9 @@ class CustomDlg < KDE::Dialog
okBtn.setGeometry(x, y, 40, 22) okBtn.setGeometry(x, y, 40, 22)
canBtn.setGeometry(x + 50, y, 40, 22) canBtn.setGeometry(x + 50, y, 40, 22)
connect(dlgBtn, SIGNAL("clicked()"), SLOT('dlgClicked()')) connect(dlgBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('dlgClicked()'))
connect(okBtn, SIGNAL("clicked()"), SLOT('okClicked()')) connect(okBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('okClicked()'))
connect(canBtn, SIGNAL("clicked()"), SLOT('cancelClicked()')) connect(canBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('cancelClicked()'))
end end
def dlgClicked() def dlgClicked()
@ -93,7 +93,7 @@ class MessageDlg < KDE::Dialog
grp.setGeometry(10, 10, 200, 30*n) grp.setGeometry(10, 10, 200, 30*n)
(0...n).each { |i| TQt::RadioButton.new(buttons[i], grp) } (0...n).each { |i| TQt::RadioButton.new(buttons[i], grp) }
connect(grp, SIGNAL("clicked(int)"), SLOT('launch(int)')) connect(grp, TQ_SIGNAL("clicked(int)"), TQ_SLOT('launch(int)'))
end end
def launch(which) def launch(which)

@ -26,7 +26,7 @@ class Page3 < TQt::Object
@iv = KDE::LineEdit.new(page) @iv = KDE::LineEdit.new(page)
@iv.setGeometry(x, y + 20, 100, 20) @iv.setGeometry(x, y + 20, 100, 20)
@iv.show() @iv.show()
connect(@iv, SIGNAL("textChanged(const TQString&)"), SLOT('ivChanged()')) connect(@iv, TQ_SIGNAL("textChanged(const TQString&)"), TQ_SLOT('ivChanged()'))
@ivVal = KDE::IntValidator.new(page) @ivVal = KDE::IntValidator.new(page)
@ivVal.setRange(20, 50) @ivVal.setRange(20, 50)
@ -63,7 +63,7 @@ class Page3 < TQt::Object
@fv = KDE::LineEdit.new(page) @fv = KDE::LineEdit.new(page)
@fv.setGeometry(x, y + 20, 100, 20) @fv.setGeometry(x, y + 20, 100, 20)
@fv.show() @fv.show()
connect(@fv, SIGNAL("textChanged(const TQString&)"), SLOT('fvChanged()')) connect(@fv, TQ_SIGNAL("textChanged(const TQString&)"), TQ_SLOT('fvChanged()'))
@fvVal = KDE::DoubleValidator.new(page) @fvVal = KDE::DoubleValidator.new(page)
@fvVal.setRange(10.0, 40.0) @fvVal.setRange(10.0, 40.0)
@ -100,7 +100,7 @@ class Page3 < TQt::Object
@dv = KDE::LineEdit.new(page) @dv = KDE::LineEdit.new(page)
@dv.setGeometry(x, y + 20, 100, 20) @dv.setGeometry(x, y + 20, 100, 20)
@dv.show() @dv.show()
# connect(dv, SIGNAL("textChanged(const TQString&)"), SLOT('dvChanged()')) # connect(dv, TQ_SIGNAL("textChanged(const TQString&)"), TQ_SLOT('dvChanged()'))
@dvVal = KDE::DateValidator.new(page) @dvVal = KDE::DateValidator.new(page)
# dvVal.setRange(10.0, 40.0) # dvVal.setRange(10.0, 40.0)
@ -112,7 +112,7 @@ class Page3 < TQt::Object
dvBtn = TQt::PushButton.new("Validate", page) dvBtn = TQt::PushButton.new("Validate", page)
dvBtn.setGeometry(x, y + 45, 60, 22) dvBtn.setGeometry(x, y + 45, 60, 22)
dvBtn.show() dvBtn.show()
connect(dvBtn, SIGNAL("clicked()"), SLOT('dvChanged()')) connect(dvBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('dvChanged()'))
dvNoteLbl = TQt::Label.new("Format is locale dependent\nShort date only\nTry DD-MM-YY", page) dvNoteLbl = TQt::Label.new("Format is locale dependent\nShort date only\nTry DD-MM-YY", page)
dvNoteLbl.setGeometry(x, y + 70, 150, 60) dvNoteLbl.setGeometry(x, y + 70, 150, 60)

@ -41,9 +41,9 @@ class Page1 < TQt::Object
replaceBtn.setGeometry(x + 90, y, 60, 22) replaceBtn.setGeometry(x + 90, y, 60, 22)
gotoBtn.setGeometry(x + 180, y, 60, 22) gotoBtn.setGeometry(x + 180, y, 60, 22)
# page.connect(searchBtn, SIGNAL("clicked()"), parent.edit, SLOT('search()')) # page.connect(searchBtn, TQ_SIGNAL("clicked()"), parent.edit, TQ_SLOT('search()'))
# page.connect(replaceBtn, SIGNAL("clicked()"), parent.edit, SLOT('replace()')) # page.connect(replaceBtn, TQ_SIGNAL("clicked()"), parent.edit, TQ_SLOT('replace()'))
# page.connect(gotoBtn, SIGNAL("clicked()"), parent.edit, SLOT('doGotoLine()')) # page.connect(gotoBtn, TQ_SIGNAL("clicked()"), parent.edit, TQ_SLOT('doGotoLine()'))
searchBtn.show() searchBtn.show()
replaceBtn.show() replaceBtn.show()
@ -105,7 +105,7 @@ class Page1 < TQt::Object
(0...n).each { |i| TQt::RadioButton.new(buttons[i], grp) } (0...n).each { |i| TQt::RadioButton.new(buttons[i], grp) }
connect(grp, SIGNAL("clicked(int)"), SLOT('restrict(int)')) connect(grp, TQ_SIGNAL("clicked(int)"), TQ_SLOT('restrict(int)'))
grp.find(0).setChecked(true) grp.find(0).setChecked(true)
restrict(0) restrict(0)
@ -469,7 +469,7 @@ class Page6 < TQt::Object
toggle.setGeometry(150, 400, 60, 22) toggle.setGeometry(150, 400, 60, 22)
toggle.show() toggle.show()
connect(toggle, SIGNAL("clicked()"), SLOT('toggleClicked()')) connect(toggle, TQ_SIGNAL("clicked()"), TQ_SLOT('toggleClicked()'))
page.show() page.show()
end end
@ -545,7 +545,7 @@ class Page7 < TQt::Object
page.show() page.show()
@timer = TQt::Timer.new(page) @timer = TQt::Timer.new(page)
connect(@timer, SIGNAL('timeout()'), SLOT('add1()')) connect(@timer, TQ_SIGNAL('timeout()'), TQ_SLOT('add1()'))
@timer.start(100) @timer.start(100)
add1() add1()
@ -637,7 +637,7 @@ class CSDlg < KDE::Dialog
closeBtn.setGeometry( 610, 280, 60, 22) closeBtn.setGeometry( 610, 280, 60, 22)
closeBtn.show() closeBtn.show()
connect(closeBtn, SIGNAL("clicked()"), SLOT('closeClicked()')) connect(closeBtn, TQ_SIGNAL("clicked()"), TQ_SLOT('closeClicked()'))
end end
def closeClicked() def closeClicked()

@ -160,7 +160,7 @@ class MainWin < KDE::MainWindow
setCentralWidget(@mainView) setCentralWidget(@mainView)
initListView() initListView()
connect(@tree, SIGNAL("clicked(TQListViewItem*)"), self, SLOT('lvClicked(TQListViewItem*)')) connect(@tree, TQ_SIGNAL("clicked(TQListViewItem*)"), self, TQ_SLOT('lvClicked(TQListViewItem*)'))
@edit = nil @edit = nil
@currentPageObj = nil @currentPageObj = nil

@ -54,9 +54,9 @@ class KmdiExample < KDE::MdiMainFrm
@viewIcons = ['network', 'email', 'stop', 'back', 'forward'] @viewIcons = ['network', 'email', 'stop', 'back', 'forward']
@toolIcons = ['view_icon', 'configure'] @toolIcons = ['view_icon', 'configure']
openNewAction = StdAction.openNew(self, SLOT('newView()'), actionCollection()) openNewAction = StdAction.openNew(self, TQ_SLOT('newView()'), actionCollection())
quitAction = StdAction.quit(self, SLOT('close()'), actionCollection()) quitAction = StdAction.quit(self, TQ_SLOT('close()'), actionCollection())
closeAction = StdAction.close(self, SLOT('closeActiveChild()'), actionCollection()) closeAction = StdAction.close(self, TQ_SLOT('closeActiveChild()'), actionCollection())
uifilebase = Dir.getwd + '/uitdemdi.rc' uifilebase = Dir.getwd + '/uitdemdi.rc'
createGUI(uifilebase) createGUI(uifilebase)
@ -82,9 +82,9 @@ class KmdiExample < KDE::MdiMainFrm
makeView("View #{idx.to_s}", ico, ico) makeView("View #{idx.to_s}", ico, ico)
end end
connect(self, SIGNAL('viewActivated(KMdiChildView*)'), self, SLOT('activatedMessage(KMdiChildView*)')) connect(self, TQ_SIGNAL('viewActivated(KMdiChildView*)'), self, TQ_SLOT('activatedMessage(KMdiChildView*)'))
connect(self, SIGNAL('viewActivated(KMdiChildView*)'), self, SLOT('syncFromChildView(KMdiChildView*)')) connect(self, TQ_SIGNAL('viewActivated(KMdiChildView*)'), self, TQ_SLOT('syncFromChildView(KMdiChildView*)'))
connect(@maintool, SIGNAL('selectionChanged(TQListBoxItem*)'), self, SLOT('syncFromMainTool(TQListBoxItem*)')) connect(@maintool, TQ_SIGNAL('selectionChanged(TQListBoxItem*)'), self, TQ_SLOT('syncFromMainTool(TQListBoxItem*)'))
syncFromChildView(activeWindow()) syncFromChildView(activeWindow())
end end
@ -128,7 +128,7 @@ class KmdiExample < KDE::MdiMainFrm
pxm.setPixmap(getIcon(icon, Icon::NoGroup, KDE::Icon::SizeLarge)) pxm.setPixmap(getIcon(icon, Icon::NoGroup, KDE::Icon::SizeLarge))
addWindow(view) addWindow(view)
@mainToolWidget.insertItem(label) @mainToolWidget.insertItem(label)
connect(view, SIGNAL('childWindowCloseRequest(KMdiChildView*)'), self, SLOT('closeChild(KMdiChildView*)')) connect(view, TQ_SIGNAL('childWindowCloseRequest(KMdiChildView*)'), self, TQ_SLOT('closeChild(KMdiChildView*)'))
end end
def removeMainToolItem(view) def removeMainToolItem(view)

@ -34,7 +34,7 @@ begin
m = KDE::MainWindow.new m = KDE::MainWindow.new
@r = Receiver.new m @r = Receiver.new m
mActionCollection = m.actionCollection mActionCollection = m.actionCollection
action = std_actions[:quit].create @r, SLOT("quit()"), mActionCollection action = std_actions[:quit].create @r, TQ_SLOT("quit()"), mActionCollection
m.createGUI Dir.pwd + "/xmlgui.rc" m.createGUI Dir.pwd + "/xmlgui.rc"
app.setMainWidget(m) app.setMainWidget(m)
m.show m.show

@ -81,22 +81,22 @@ class MainWin < KDE::MainWindow
acts = actionCollection() acts = actionCollection()
# "File" menu items # "File" menu items
newAction = KDE::StdAction.openNew(self, SLOT('slotNew()'), acts) newAction = KDE::StdAction.openNew(self, TQ_SLOT('slotNew()'), acts)
openAction = KDE::StdAction.open(self, SLOT('slotOpen()'), acts) openAction = KDE::StdAction.open(self, TQ_SLOT('slotOpen()'), acts)
@saveAction = KDE::StdAction.save(self, SLOT('slotSave()'), acts) @saveAction = KDE::StdAction.save(self, TQ_SLOT('slotSave()'), acts)
@saveAsAction = KDE::StdAction.saveAs(self, SLOT('slotSaveAs()'), acts) @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT('slotSaveAs()'), acts)
printAction = KDE::StdAction.print(self, SLOT('slotPrint()'), acts) printAction = KDE::StdAction.print(self, TQ_SLOT('slotPrint()'), acts)
quitAction = KDE::StdAction.quit(self, SLOT('slotQuit()'), acts) quitAction = KDE::StdAction.quit(self, TQ_SLOT('slotQuit()'), acts)
# "Edit" menu items # "Edit" menu items
undoAction = KDE::StdAction.undo(self, SLOT('slotUndo()'), acts) undoAction = KDE::StdAction.undo(self, TQ_SLOT('slotUndo()'), acts)
redoAction = KDE::StdAction.redo(self, SLOT('slotRedo()'), acts) redoAction = KDE::StdAction.redo(self, TQ_SLOT('slotRedo()'), acts)
cutAction = KDE::StdAction.cut(self, SLOT('slotCut()'), acts) cutAction = KDE::StdAction.cut(self, TQ_SLOT('slotCut()'), acts)
copyAction = KDE::StdAction.copy(self, SLOT('slotCopy()'), acts) copyAction = KDE::StdAction.copy(self, TQ_SLOT('slotCopy()'), acts)
pasteAction = KDE::StdAction.paste(self, SLOT('slotPaste()'), acts) pasteAction = KDE::StdAction.paste(self, TQ_SLOT('slotPaste()'), acts)
findAction = KDE::StdAction.find(self, SLOT('slotFind()'), acts) findAction = KDE::StdAction.find(self, TQ_SLOT('slotFind()'), acts)
findNextAction = KDE::StdAction.findNext(self, SLOT('slotFindNext()'), acts) findNextAction = KDE::StdAction.findNext(self, TQ_SLOT('slotFindNext()'), acts)
replaceAction = KDE::StdAction.replace(self, SLOT('slotReplace()'), acts) replaceAction = KDE::StdAction.replace(self, TQ_SLOT('slotReplace()'), acts)
# NOTE!!!! You must specify a parent and name for the action object in its constructor # NOTE!!!! You must specify a parent and name for the action object in its constructor
# Normally in a constructor like # Normally in a constructor like
@ -111,13 +111,13 @@ class MainWin < KDE::MainWindow
# object names - the variable the object is assigned to('specialAction') # object names - the variable the object is assigned to('specialAction')
# has no meaning in XNLGUI terms except through the objects 'name' member value # has no meaning in XNLGUI terms except through the objects 'name' member value
specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), acts, "specialActionName") specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), acts, "specialActionName")
# Demo menu items # Demo menu items
# KDE::ToggleAction has an isChecked member and emits the "toggle" signal # KDE::ToggleAction has an isChecked member and emits the "toggle" signal
toggle1Action = KDE::ToggleAction.new("Toggle 1", KDE::Shortcut.new(0), acts, "toggle1Action") toggle1Action = KDE::ToggleAction.new("Toggle 1", KDE::Shortcut.new(0), acts, "toggle1Action")
toggle2Action = KDE::ToggleAction.new("Toggle 2", KDE::Shortcut.new(0), self, SLOT('slotToggle2()'), acts, "toggle2Action") toggle2Action = KDE::ToggleAction.new("Toggle 2", KDE::Shortcut.new(0), self, TQ_SLOT('slotToggle2()'), acts, "toggle2Action")
# A separator - create once/use everywhere # A separator - create once/use everywhere
separateAction = KDE::ActionSeparator.new(acts, "separateAction") separateAction = KDE::ActionSeparator.new(acts, "separateAction")
@ -146,15 +146,15 @@ class MainWin < KDE::MainWindow
# separators). Creating the KDE::StdActions alone is sufficient - you # separators). Creating the KDE::StdActions alone is sufficient - you
# could delete their references from the *ui.rc file and the menu # could delete their references from the *ui.rc file and the menu
# items would still be created via ui_standards.rc # items would still be created via ui_standards.rc
actionMenu.insert(KDE::StdAction.zoomIn(self, SLOT('slotZoomIn()'), acts)) actionMenu.insert(KDE::StdAction.zoomIn(self, TQ_SLOT('slotZoomIn()'), acts))
actionMenu.insert(KDE::StdAction.zoomOut(self, SLOT('slotZoomOut()'), acts)) actionMenu.insert(KDE::StdAction.zoomOut(self, TQ_SLOT('slotZoomOut()'), acts))
radio1Action = KDE::RadioAction.new("Radio 1", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio1") radio1Action = KDE::RadioAction.new("Radio 1", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio1")
radio1Action.setExclusiveGroup("Radio") radio1Action.setExclusiveGroup("Radio")
radio1Action.setChecked(true) radio1Action.setChecked(true)
radio2Action = KDE::RadioAction.new("Radio 2", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio2") radio2Action = KDE::RadioAction.new("Radio 2", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio2")
radio2Action.setExclusiveGroup("Radio") radio2Action.setExclusiveGroup("Radio")
radio3Action = KDE::RadioAction.new("Radio 3", KDE::Shortcut.new(0), self, SLOT('slotRadio()'), acts, "radio3") radio3Action = KDE::RadioAction.new("Radio 3", KDE::Shortcut.new(0), self, TQ_SLOT('slotRadio()'), acts, "radio3")
radio3Action.setExclusiveGroup("Radio") radio3Action.setExclusiveGroup("Radio")
end end
@ -184,7 +184,7 @@ class MainWin < KDE::MainWindow
# in this case only # in this case only
(0...fakeFiles.length).each do |i| (0...fakeFiles.length).each do |i|
act = KDE::Action.new(i18n(" &#{i.to_s} #{fakeFiles[i]}"), KDE::Shortcut.new(0), act = KDE::Action.new(i18n(" &#{i.to_s} #{fakeFiles[i]}"), KDE::Shortcut.new(0),
self, SLOT('slotFake()'), nil, fakeFiles[i].sub(/.sip$/,'') + "open") self, TQ_SLOT('slotFake()'), nil, fakeFiles[i].sub(/.sip$/,'') + "open")
dynamicActionsList << act dynamicActionsList << act
end end

@ -87,21 +87,21 @@ class MainWin < KDE::MainWindow
# need to instantiate KDE::StdAccel # need to instantiate KDE::StdAccel
# "File" menu items # "File" menu items
fileMenu.insertItem(i18n("New"), self, SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt())) fileMenu.insertItem(i18n("New"), self, TQ_SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt()))
fileMenu.insertItem(i18n("Open"), self, SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt())) fileMenu.insertItem(i18n("Open"), self, TQ_SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt()))
fileMenu.insertSeparator() fileMenu.insertSeparator()
fileMenu.insertItem(i18n("Save"), self, SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt())) fileMenu.insertItem(i18n("Save"), self, TQ_SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt()))
# TDEStdAccel doesn't have a standard accelerator for 'Save As', # TDEStdAccel doesn't have a standard accelerator for 'Save As',
# so we omit it - insertItem uses the default value # so we omit it - insertItem uses the default value
fileMenu.insertItem(i18n("SaveAs"), self, SLOT('slotSaveAs()')) fileMenu.insertItem(i18n("SaveAs"), self, TQ_SLOT('slotSaveAs()'))
# This inserts a line between groups of items in a menu # This inserts a line between groups of items in a menu
fileMenu.insertSeparator() fileMenu.insertSeparator()
fileMenu.insertItem(i18n("Print"), self, SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt())) fileMenu.insertItem(i18n("Print"), self, TQ_SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt()))
fileMenu.insertSeparator() fileMenu.insertSeparator()
fileMenu.insertItem(i18n("&Quit"), self, SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt())) fileMenu.insertItem(i18n("&Quit"), self, TQ_SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt()))
# Put fileMenu (as the File menu) into the menu bar # Put fileMenu (as the File menu) into the menu bar
# 'menuBar' is a predefined object owned by KDE::MainWindow # 'menuBar' is a predefined object owned by KDE::MainWindow
@ -110,16 +110,16 @@ class MainWin < KDE::MainWindow
editMenu = TQt::PopupMenu.new(self) editMenu = TQt::PopupMenu.new(self)
# "Edit" menu items # "Edit" menu items
editMenu.insertItem(i18n("Undo"), self, SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt())) editMenu.insertItem(i18n("Undo"), self, TQ_SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt()))
editMenu.insertItem(i18n("Redo"), self, SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt())) editMenu.insertItem(i18n("Redo"), self, TQ_SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt()))
editMenu.insertSeparator() editMenu.insertSeparator()
editMenu.insertItem(i18n("Cut"), self, SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt())) editMenu.insertItem(i18n("Cut"), self, TQ_SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt()))
editMenu.insertItem(i18n("Copy"), self, SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt())) editMenu.insertItem(i18n("Copy"), self, TQ_SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt()))
editMenu.insertItem(i18n("Paste"), self, SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt())) editMenu.insertItem(i18n("Paste"), self, TQ_SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt()))
editMenu.insertSeparator() editMenu.insertSeparator()
editMenu.insertItem(i18n("Find"), self, SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt())) editMenu.insertItem(i18n("Find"), self, TQ_SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt()))
editMenu.insertItem(i18n("Find Next"), self, SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt())) editMenu.insertItem(i18n("Find Next"), self, TQ_SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt()))
editMenu.insertItem(i18n("Replace"), self, SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt())) editMenu.insertItem(i18n("Replace"), self, TQ_SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt()))
# Put editMenu (as the Edit menu) into the menu bar # Put editMenu (as the Edit menu) into the menu bar
@ -150,18 +150,18 @@ class MainWin < KDE::MainWindow
# are easier ways to do this - see other menuapp templates for easier # are easier ways to do this - see other menuapp templates for easier
# methods using KDE::Action/KDE::StdAction # methods using KDE::Action/KDE::StdAction
toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotNew()'), true, "New") self, TQ_SLOT('slotNew()'), true, "New")
toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotOpen()'), true, "Open") self, TQ_SLOT('slotOpen()'), true, "Open")
toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotSave()'), true, "Save") self, TQ_SLOT('slotSave()'), true, "Save")
toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotCut()'), true, "Cut") self, TQ_SLOT('slotCut()'), true, "Cut")
toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotCopy()'), true, "Copy") self, TQ_SLOT('slotCopy()'), true, "Copy")
toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotPaste()'), true, "Paste") self, TQ_SLOT('slotPaste()'), true, "Paste")
end end
def initStatusBar() def initStatusBar()

@ -87,22 +87,22 @@ class MainWin < KDE::MainWindow
# where the code for the action is located # where the code for the action is located
# "File" menu items # "File" menu items
@newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection()) @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
@openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection()) @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
@saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection()) @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
@saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection()) @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
@printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection()) @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
@quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection()) @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items # "Edit" menu items
@undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection()) @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
@redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection()) @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
@cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection()) @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
@copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection()) @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
@pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection()) @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
@findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection()) @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
@findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection()) @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
@replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection()) @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
# For actions that are not "standard", you can create your # For actions that are not "standard", you can create your
# own actions using KDE::Action. This example doesn't include # own actions using KDE::Action. This example doesn't include
@ -114,7 +114,7 @@ class MainWin < KDE::MainWindow
# This TDEAction constructor requires a string, an accelerator (0 # This TDEAction constructor requires a string, an accelerator (0
# in this case), a slot, and a TQObject (None in this case) # in this case), a slot, and a TQObject (None in this case)
@specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName") @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end end
def initMenus() def initMenus()

@ -96,29 +96,29 @@ class MainWin < KDE::MainWindow
# in the toolBar. # in the toolBar.
# "File" menu items # "File" menu items
@newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection()) @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
@openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection()) @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
@saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection()) @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
@saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection()) @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
@printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection()) @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
@quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection()) @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items # "Edit" menu items
@undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection()) @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
@redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection()) @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
@cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection()) @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
@copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection()) @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
@pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection()) @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
@findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection()) @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
@findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection()) @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
@replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection()) @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
# For ANYTHING constructed from KDE::Action or its descendants (KDE::ActionMenu, KDE::ActionSeparator, # For ANYTHING constructed from KDE::Action or its descendants (KDE::ActionMenu, KDE::ActionSeparator,
# KDE::FontAction, etc) you MUST provide the actionCollection () parent and an object # KDE::FontAction, etc) you MUST provide the actionCollection () parent and an object
# name ("specialActionName") or the XMLGUI mechanism will not be able to locate the # name ("specialActionName") or the XMLGUI mechanism will not be able to locate the
# action. XMLGUI finds the action via its member name value, NOT via its variable name. # action. XMLGUI finds the action via its member name value, NOT via its variable name.
@specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName") @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end end
def initStatusBar() def initStatusBar()

@ -60,7 +60,7 @@ class MainWin < KDE::MainWindow
# KDE::SystemTray hides or shows its parent when the system tray icon is clicked # KDE::SystemTray hides or shows its parent when the system tray icon is clicked
systray = KDE::SystemTray.new(self) systray = KDE::SystemTray.new(self)
systray.setPixmap(icons.loadIcon("process-stop", 0)) systray.setPixmap(icons.loadIcon("process-stop", 0))
connect(systray, SIGNAL("quitSelected()"), self, SLOT('slotQuitSelected()')) connect(systray, TQ_SIGNAL("quitSelected()"), self, TQ_SLOT('slotQuitSelected()'))
systray.show() systray.show()
end end

@ -71,31 +71,31 @@ class MainWin < KDE::MainWindow
fileMenu = TQt::PopupMenu.new(self) fileMenu = TQt::PopupMenu.new(self)
# "File" menu items # "File" menu items
fileMenu.insertItem(i18n("New"), self, SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt())) fileMenu.insertItem(i18n("New"), self, TQ_SLOT('slotNew()'), TQt::KeySequence.new(KDE::StdAccel.openNew().keyCodeQt()))
fileMenu.insertItem(i18n("Open"), self, SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt())) fileMenu.insertItem(i18n("Open"), self, TQ_SLOT('slotOpen()'), TQt::KeySequence.new(KDE::StdAccel.open().keyCodeQt()))
fileMenu.insertSeparator() fileMenu.insertSeparator()
fileMenu.insertItem(i18n("Save"), self, SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt())) fileMenu.insertItem(i18n("Save"), self, TQ_SLOT('slotSave()'), TQt::KeySequence.new(KDE::StdAccel.save().keyCodeQt()))
fileMenu.insertItem(i18n("SaveAs"), self, SLOT('slotSaveAs()')) fileMenu.insertItem(i18n("SaveAs"), self, TQ_SLOT('slotSaveAs()'))
fileMenu.insertSeparator() fileMenu.insertSeparator()
fileMenu.insertItem(i18n("Print"), self, SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt())) fileMenu.insertItem(i18n("Print"), self, TQ_SLOT('slotPrint()'), TQt::KeySequence.new(KDE::StdAccel.print().keyCodeQt()))
fileMenu.insertSeparator() fileMenu.insertSeparator()
fileMenu.insertItem(i18n("&Quit"), self, SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt())) fileMenu.insertItem(i18n("&Quit"), self, TQ_SLOT('slotQuit()'), TQt::KeySequence.new(KDE::StdAccel.quit().keyCodeQt()))
menuBar().insertItem(i18n("&File"), fileMenu) menuBar().insertItem(i18n("&File"), fileMenu)
editMenu = TQt::PopupMenu.new(self) editMenu = TQt::PopupMenu.new(self)
# "Edit" menu items # "Edit" menu items
editMenu.insertItem(i18n("Undo"), self, SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt())) editMenu.insertItem(i18n("Undo"), self, TQ_SLOT('slotUndo()'), TQt::KeySequence.new(KDE::StdAccel.undo().keyCodeQt()))
editMenu.insertItem(i18n("Redo"), self, SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt())) editMenu.insertItem(i18n("Redo"), self, TQ_SLOT('slotRedo()'), TQt::KeySequence.new(KDE::StdAccel.redo().keyCodeQt()))
editMenu.insertSeparator() editMenu.insertSeparator()
editMenu.insertItem(i18n("Cut"), self, SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt())) editMenu.insertItem(i18n("Cut"), self, TQ_SLOT('slotCut()'), TQt::KeySequence.new(KDE::StdAccel.cut().keyCodeQt()))
editMenu.insertItem(i18n("Copy"), self, SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt())) editMenu.insertItem(i18n("Copy"), self, TQ_SLOT('slotCopy()'), TQt::KeySequence.new(KDE::StdAccel.copy().keyCodeQt()))
editMenu.insertItem(i18n("Paste"), self, SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt())) editMenu.insertItem(i18n("Paste"), self, TQ_SLOT('slotPaste()'), TQt::KeySequence.new(KDE::StdAccel.paste().keyCodeQt()))
editMenu.insertSeparator() editMenu.insertSeparator()
editMenu.insertItem(i18n("Find"), self, SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt())) editMenu.insertItem(i18n("Find"), self, TQ_SLOT('slotFind()'), TQt::KeySequence.new(KDE::StdAccel.find().keyCodeQt()))
editMenu.insertItem(i18n("Find Next"), self, SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt())) editMenu.insertItem(i18n("Find Next"), self, TQ_SLOT('slotFindNext()'), TQt::KeySequence.new(KDE::StdAccel.findNext().keyCodeQt()))
editMenu.insertItem(i18n("Replace"), self, SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt())) editMenu.insertItem(i18n("Replace"), self, TQ_SLOT('slotReplace()'), TQt::KeySequence.new(KDE::StdAccel.replace().keyCodeQt()))
menuBar().insertItem(i18n("&Edit"), editMenu) menuBar().insertItem(i18n("&Edit"), editMenu)
@ -106,18 +106,18 @@ class MainWin < KDE::MainWindow
def initToolBar() def initToolBar()
icons = KDE::IconLoader.new() icons = KDE::IconLoader.new()
toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("filenew", KDE::Icon::Toolbar), TOOLBAR_NEW, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotNew()'), true, "New") self, TQ_SLOT('slotNew()'), true, "New")
toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("fileopen", KDE::Icon::Toolbar), TOOLBAR_OPEN, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotOpen()'), true, "Open") self, TQ_SLOT('slotOpen()'), true, "Open")
toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("filesave", KDE::Icon::Toolbar), TOOLBAR_SAVE, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotSave()'), true, "Save") self, TQ_SLOT('slotSave()'), true, "Save")
toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("editcut", KDE::Icon::Toolbar), TOOLBAR_CUT, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotCut()'), true, "Cut") self, TQ_SLOT('slotCut()'), true, "Cut")
toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("editcopy", KDE::Icon::Toolbar), TOOLBAR_COPY, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotCopy()'), true, "Copy") self, TQ_SLOT('slotCopy()'), true, "Copy")
toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, SIGNAL("clicked(int)"), toolBar().insertButton(icons.loadIcon("editpaste", KDE::Icon::Toolbar), TOOLBAR_PASTE, TQ_SIGNAL("clicked(int)"),
self, SLOT('slotPaste()'), true, "Paste") self, TQ_SLOT('slotPaste()'), true, "Paste")
end end
def initStatusBar() def initStatusBar()

@ -63,23 +63,23 @@ class MainWin < KDE::MainWindow
def initActions() def initActions()
# "File" menu items # "File" menu items
@newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection()) @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
@openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection()) @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
@saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection()) @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
@saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection()) @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
@printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection()) @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
@quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection()) @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items # "Edit" menu items
@undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection()) @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
@redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection()) @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
@cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection()) @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
@copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection()) @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
@pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection()) @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
@findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection()) @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
@findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection()) @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
@replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection()) @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
@specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName") @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end end
def initMenus() def initMenus()

@ -59,24 +59,24 @@ class MainWin < KDE::MainWindow
def initActions() def initActions()
# "File" menu items # "File" menu items
@newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection()) @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection())
@openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection()) @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection())
@saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection()) @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection())
@saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection()) @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection())
@printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection()) @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection())
@quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection()) @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection())
# "Edit" menu items # "Edit" menu items
@undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection()) @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection())
@redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection()) @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection())
@cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection()) @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection())
@copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection()) @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection())
@pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection()) @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection())
@findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection()) @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection())
@findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection()) @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection())
@replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection()) @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection())
@specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName") @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName")
end end
def initStatusBar() def initStatusBar()

@ -45,7 +45,7 @@ class MainWin < KDE::MainWindow
systray = KDE::SystemTray.new(self) systray = KDE::SystemTray.new(self)
systray.setPixmap(icons.loadIcon("process-stop", 0)) systray.setPixmap(icons.loadIcon("process-stop", 0))
connect(systray, SIGNAL("quitSelected()"), self, SLOT('slotQuitSelected()')) connect(systray, TQ_SIGNAL("quitSelected()"), self, TQ_SLOT('slotQuitSelected()'))
systray.show() systray.show()
end end

@ -5,7 +5,7 @@ require 'Qt'
hello = TQt::PushButton.new( "Hello world!", nil ) hello = TQt::PushButton.new( "Hello world!", nil )
hello.resize( 100, 30 ) hello.resize( 100, 30 )
TQt::Object::connect( hello, SIGNAL('clicked()'), a, SLOT('quit()') ) TQt::Object::connect( hello, TQ_SIGNAL('clicked()'), a, TQ_SLOT('quit()') )
a.setMainWidget( hello ) a.setMainWidget( hello )
hello.show() hello.show()

@ -8,9 +8,9 @@ class MainWindow < KDE::MainWindow
setCaption("KDE Tutorial - p3") setCaption("KDE Tutorial - p3")
filemenu = TQt::PopupMenu.new filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Open" ), self, SLOT('fileOpen()') ) filemenu.insertItem( i18n( "&Open" ), self, TQ_SLOT('fileOpen()') )
filemenu.insertItem( i18n( "&Save" ), self, SLOT('fileSave()') ) filemenu.insertItem( i18n( "&Save" ), self, TQ_SLOT('fileSave()') )
filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT('quit()') ) filemenu.insertItem( i18n( "&Quit" ), $kapp, TQ_SLOT('quit()') )
about = about =
i18n("p3 1.0\n\n" + i18n("p3 1.0\n\n" +

@ -9,7 +9,7 @@ class MainWindow < KDE::MainWindow
setCaption("KDE Tutorial - p4") setCaption("KDE Tutorial - p4")
filemenu = TQt::PopupMenu.new filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT( 'quit()' ) ) filemenu.insertItem( i18n( "&Quit" ), $kapp, TQ_SLOT( 'quit()' ) )
about = about =
i18n("p4 1.0\n\n" + i18n("p4 1.0\n\n" +
"(C) 1999-2002 Antonio Larrosa Jimenez\n" + "(C) 1999-2002 Antonio Larrosa Jimenez\n" +
@ -34,12 +34,12 @@ class MainWindow < KDE::MainWindow
@browser = KDE::HTMLPart.new( vbox ) @browser = KDE::HTMLPart.new( vbox )
@browser.openURL( KDE::URL.new(@location.text()) ) @browser.openURL( KDE::URL.new(@location.text()) )
connect( @location , SIGNAL( 'returnPressed()' ), connect( @location , TQ_SIGNAL( 'returnPressed()' ),
self, SLOT( 'changeLocation()' ) ) self, TQ_SLOT( 'changeLocation()' ) )
connect( @browser.browserExtension(), connect( @browser.browserExtension(),
SIGNAL( 'openURLRequest( const KURL &, const KParts::URLArgs & )' ), TQ_SIGNAL( 'openURLRequest( const KURL &, const KParts::URLArgs & )' ),
self, SLOT( 'openURLRequest(const KURL &, const KParts::URLArgs & )' ) ) self, TQ_SLOT( 'openURLRequest(const KURL &, const KParts::URLArgs & )' ) )
setCentralWidget(vbox) setCentralWidget(vbox)
end end

@ -10,7 +10,7 @@ class MainWindow < KDE::MainWindow
setCaption("KDE Tutorial - p5") setCaption("KDE Tutorial - p5")
filemenu = TQt::PopupMenu.new filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Quit" ), $kapp, SLOT( 'quit()' ) ) filemenu.insertItem( i18n( "&Quit" ), $kapp, TQ_SLOT( 'quit()' ) )
about = about =
i18n("p5 1.0\n\n" + i18n("p5 1.0\n\n" +
"(C) 1999-2002 Antonio Larrosa Jimenez\n" + "(C) 1999-2002 Antonio Larrosa Jimenez\n" +
@ -32,22 +32,22 @@ class MainWindow < KDE::MainWindow
@location = TQt::LineEdit.new( vbox ) @location = TQt::LineEdit.new( vbox )
@location.setText( "http://localhost" ) @location.setText( "http://localhost" )
connect( @location , SIGNAL( 'returnPressed()' ), connect( @location , TQ_SIGNAL( 'returnPressed()' ),
self, SLOT( 'changeLocation()' ) ) self, TQ_SLOT( 'changeLocation()' ) )
split = TQt::Splitter.new( vbox ) split = TQt::Splitter.new( vbox )
split.setOpaqueResize() split.setOpaqueResize()
bookmark = TQt::PushButton.new( i18n("Add to Bookmarks"), split ); bookmark = TQt::PushButton.new( i18n("Add to Bookmarks"), split );
connect( bookmark, SIGNAL( 'clicked()' ), self, SLOT( 'bookLocation()' ) ) connect( bookmark, TQ_SIGNAL( 'clicked()' ), self, TQ_SLOT( 'bookLocation()' ) )
@browser = KDE::HTMLPart.new( split ) @browser = KDE::HTMLPart.new( split )
@browser.openURL( KDE::URL.new(@location.text()) ) @browser.openURL( KDE::URL.new(@location.text()) )
connect( @browser.browserExtension(), connect( @browser.browserExtension(),
SIGNAL( 'openURLRequest( const KURL &, const KParts::URLArgs & )' ), TQ_SIGNAL( 'openURLRequest( const KURL &, const KParts::URLArgs & )' ),
self, SLOT( 'openURLRequest(const KURL &, const KParts::URLArgs & )' ) ) self, TQ_SLOT( 'openURLRequest(const KURL &, const KParts::URLArgs & )' ) )
setCentralWidget(vbox) setCentralWidget(vbox)
end end

@ -20,8 +20,8 @@ class Browser < KDE::MainWindow
filemenu = TQt::PopupMenu.new filemenu = TQt::PopupMenu.new
filemenu.insertItem( i18n( "&Set default page" ), filemenu.insertItem( i18n( "&Set default page" ),
self, SLOT( 'fileSetDefaultPage()' ) ) self, TQ_SLOT( 'fileSetDefaultPage()' ) )
filemenu.insertItem(i18n( "&Quit" ), $kapp, SLOT( 'quit()' )) filemenu.insertItem(i18n( "&Quit" ), $kapp, TQ_SLOT( 'quit()' ))
about = about =
i18n("p7 1.0\n\n" + i18n("p7 1.0\n\n" +
"(C) 1999-2002 Antonio Larrosa Jimenez\n" + "(C) 1999-2002 Antonio Larrosa Jimenez\n" +
@ -42,13 +42,13 @@ class Browser < KDE::MainWindow
icons = KDE::IconLoader.new() icons = KDE::IconLoader.new()
toolbar.insertButton(icons.loadIcon("reload", KDE::Icon::Toolbar), TOOLBAR_ID_ADDBOOKMARK, toolbar.insertButton(icons.loadIcon("reload", KDE::Icon::Toolbar), TOOLBAR_ID_ADDBOOKMARK,
SIGNAL('clicked(int)'),self,SLOT('bookLocation()'),true, TQ_SIGNAL('clicked(int)'),self,TQ_SLOT('bookLocation()'),true,
i18n("Add to Bookmarks")) i18n("Add to Bookmarks"))
toolbar.insertButton(icons.loadIcon("back", KDE::Icon::Toolbar), TOOLBAR_ID_BACK, toolbar.insertButton(icons.loadIcon("back", KDE::Icon::Toolbar), TOOLBAR_ID_BACK,
SIGNAL('clicked(int)'),self,SLOT('gotoPreviousPage()'), TQ_SIGNAL('clicked(int)'),self,TQ_SLOT('gotoPreviousPage()'),
false, i18n("Back to previous page")) false, i18n("Back to previous page"))
toolbar.insertButton(icons.loadIcon("system-log-out", KDE::Icon::Toolbar), TOOLBAR_ID_QUIT, toolbar.insertButton(icons.loadIcon("system-log-out", KDE::Icon::Toolbar), TOOLBAR_ID_QUIT,
SIGNAL('clicked(int)'),$kapp,SLOT('quit()'),true, TQ_SIGNAL('clicked(int)'),$kapp,TQ_SLOT('quit()'),true,
i18n("Quit the application")) i18n("Quit the application"))
addToolBar(toolbar) addToolBar(toolbar)
@ -60,8 +60,8 @@ class Browser < KDE::MainWindow
config.setGroup("Settings") config.setGroup("Settings")
@location.text = config.readEntry( "defaultPage", "http://localhost") @location.text = config.readEntry( "defaultPage", "http://localhost")
connect( @location , SIGNAL( 'returnPressed()' ), connect( @location , TQ_SIGNAL( 'returnPressed()' ),
self, SLOT( 'changeLocation()' ) ) self, TQ_SLOT( 'changeLocation()' ) )
split = TQt::Splitter.new( vbox ) split = TQt::Splitter.new( vbox )
split.setOpaqueResize() split.setOpaqueResize()
@ -70,8 +70,8 @@ class Browser < KDE::MainWindow
@browser.openURL( KDE::URL.new(@location.text()) ) @browser.openURL( KDE::URL.new(@location.text()) )
connect( @browser.browserExtension(), connect( @browser.browserExtension(),
SIGNAL( 'openURLRequest( const KURL&, const KParts::URLArgs& )' ), TQ_SIGNAL( 'openURLRequest( const KURL&, const KParts::URLArgs& )' ),
self, SLOT( 'openURLRequest(const KURL&, const KParts::URLArgs& )' ) ) self, TQ_SLOT( 'openURLRequest(const KURL&, const KParts::URLArgs& )' ) )
setCentralWidget(vbox) setCentralWidget(vbox)
end end

@ -8,8 +8,8 @@ class BookMarkList < KDE::ListView
def initialize() def initialize()
super(nil, "Bookmarks") super(nil, "Bookmarks")
addColumn( i18n("My Bookmarks") ); addColumn( i18n("My Bookmarks") );
connect( self, SIGNAL('clicked(TQListViewItem *)'), connect( self, TQ_SIGNAL('clicked(TQListViewItem *)'),
self, SLOT('setURLInBrowser(TQListViewItem *)')) self, TQ_SLOT('setURLInBrowser(TQListViewItem *)'))
end end
def add( s ) def add( s )

@ -13,16 +13,16 @@ class Browser < KDE::MainWindow
super(nil, name) super(nil, name)
@history = [] @history = []
KDE::StdAction.quit(self, SLOT('close()'), actionCollection()) KDE::StdAction.quit(self, TQ_SLOT('close()'), actionCollection())
KDE::Action.new(i18n("&Set default page"), "gohome", KDE::Shortcut.new(0), self, KDE::Action.new(i18n("&Set default page"), "gohome", KDE::Shortcut.new(0), self,
SLOT('fileSetDefaultPage()'), actionCollection(), "set_default_page") TQ_SLOT('fileSetDefaultPage()'), actionCollection(), "set_default_page")
KDE::Action.new(i18n("Add to Bookmarks"), "reload", KDE::Shortcut.new(0), self, KDE::Action.new(i18n("Add to Bookmarks"), "reload", KDE::Shortcut.new(0), self,
SLOT('bookLocation()'), actionCollection(), "add_to_bookmarks") TQ_SLOT('bookLocation()'), actionCollection(), "add_to_bookmarks")
KDE::Action.new(i18n("Back to previous page"), "back", KDE::Shortcut.new(0), self, KDE::Action.new(i18n("Back to previous page"), "back", KDE::Shortcut.new(0), self,
SLOT('gotoPreviousPage()'), actionCollection(), "back") TQ_SLOT('gotoPreviousPage()'), actionCollection(), "back")
actionCollection().action("back").setEnabled(false) actionCollection().action("back").setEnabled(false)
@ -36,15 +36,15 @@ class Browser < KDE::MainWindow
config.setGroup("Settings") config.setGroup("Settings")
@location.text = config.readEntry( "defaultPage", "http://localhost") @location.text = config.readEntry( "defaultPage", "http://localhost")
connect( @location , SIGNAL( 'returnPressed()' ), connect( @location , TQ_SIGNAL( 'returnPressed()' ),
self, SLOT( 'changeLocation()' ) ) self, TQ_SLOT( 'changeLocation()' ) )
@browser = KDE::HTMLPart.new( vbox ) @browser = KDE::HTMLPart.new( vbox )
@browser.openURL( KDE::URL.new(@location.text()) ) @browser.openURL( KDE::URL.new(@location.text()) )
connect( @browser.browserExtension(), connect( @browser.browserExtension(),
SIGNAL( 'openURLRequest( const KURL&, const KParts::URLArgs& )' ), TQ_SIGNAL( 'openURLRequest( const KURL&, const KParts::URLArgs& )' ),
self, SLOT( 'openURLRequest(const KURL&, const KParts::URLArgs& )' ) ) self, TQ_SLOT( 'openURLRequest(const KURL&, const KParts::URLArgs& )' ) )
setCentralWidget(vbox) setCentralWidget(vbox)
end end

@ -631,9 +631,9 @@
</xsl:variable> </xsl:variable>
<xsl:value-of select="$nlIndent8"/> <xsl:value-of select="$nlIndent8"/>
<xsl:value-of select="concat('connect( ', $sender, <xsl:value-of select="concat('connect( ', $sender,
', SIGNAL( &quot;', $signal, '&quot; ), ', ', TQ_SIGNAL( &quot;', $signal, '&quot; ), ',
$receiver, $receiver,
', SLOT( &quot;', $slot, '&quot; ));')"/> ', TQ_SLOT( &quot;', $slot, '&quot; ));')"/>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -156,7 +156,7 @@
<xsl:template name="putLanguageChangeSlot"> <xsl:template name="putLanguageChangeSlot">
/** /**
* SLOT * TQ_SLOT
* languageChange sets the strings according to current language * languageChange sets the strings according to current language
*/ */
protected void languageChange() { protected void languageChange() {

@ -411,7 +411,7 @@
</xsl:if> </xsl:if>
<xsl:message>Generating slot "<xsl:value-of select="$method"/></xsl:message> <xsl:message>Generating slot "<xsl:value-of select="$method"/></xsl:message>
/** /**
* SLOT <xsl:value-of select="$method"/> * TQ_SLOT <xsl:value-of select="$method"/>
*/ */
<xsl:choose> <xsl:choose>
<xsl:when test="$abstract"> <xsl:when test="$abstract">
@ -419,7 +419,7 @@
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="$method"/> { <xsl:value-of select="$method"/> {
tqWarning("Warning: SLOT \"<xsl:value-of select="$method"/>\" must be overridden"); tqWarning("Warning: TQ_SLOT \"<xsl:value-of select="$method"/>\" must be overridden");
<xsl:if test="not($return = 'void')"> <xsl:if test="not($return = 'void')">
<xsl:choose> <xsl:choose>
<xsl:when test="$return = 'byte' or $return = 'short' or $return = 'int' or $return = 'long'"> <xsl:when test="$return = 'byte' or $return = 'short' or $return = 'int' or $return = 'long'">
@ -447,7 +447,7 @@
<xsl:template name="putSignal"> <xsl:template name="putSignal">
<xsl:param name="data"/> <xsl:param name="data"/>
<xsl:variable name="sig" select="java:cpp-to-java-signature(.)"/> <xsl:variable name="sig" select="java:cpp-to-java-signature(.)"/>
/** SIGNAL <xsl:value-of select="."/> */ /** TQ_SIGNAL <xsl:value-of select="."/> */
</xsl:template> </xsl:template>
<!-- <!--

@ -30,7 +30,7 @@ public AnalogClock( TQWidget parent, String name )
super( parent, name ); super( parent, name );
time = new Date(); // get current time time = new Date(); // get current time
TQTimer internalTimer = new TQTimer( this ); // create internal timer TQTimer internalTimer = new TQTimer( this ); // create internal timer
connect( internalTimer, SIGNAL("timeout()"), SLOT("timeout()") ); connect( internalTimer, TQ_SIGNAL("timeout()"), TQ_SLOT("timeout()") );
internalTimer.start( 5000 ); // emit signal every 5 seconds internalTimer.start( 5000 ); // emit signal every 5 seconds
} }

@ -106,7 +106,7 @@ public void setupTabWidget()
add = new TQPushButton( "A&dd", input ); add = new TQPushButton( "A&dd", input );
add.resize( add.sizeHint() ); add.resize( add.sizeHint() );
grid1.addWidget( add, 0, 4 ); grid1.addWidget( add, 0, 4 );
connect( add, SIGNAL( "clicked()" ), this, SLOT( "addEntry()" ) ); connect( add, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "addEntry()" ) );
iFirstName = new TQLineEdit( input ); iFirstName = new TQLineEdit( input );
iFirstName.resize( iFirstName.sizeHint() ); iFirstName.resize( iFirstName.sizeHint() );
@ -131,7 +131,7 @@ public void setupTabWidget()
change = new TQPushButton( "&Change", input ); change = new TQPushButton( "&Change", input );
change.resize( change.sizeHint() ); change.resize( change.sizeHint() );
grid1.addWidget( change, 1, 4 ); grid1.addWidget( change, 1, 4 );
connect( change, SIGNAL( "clicked()" ), this, SLOT( "changeEntry()" ) ); connect( change, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "changeEntry()" ) );
tabWidget.addTab( input, "&Add/Change Entry" ); tabWidget.addTab( input, "&Add/Change Entry" );
@ -143,22 +143,22 @@ public void setupTabWidget()
cFirstName = new TQCheckBox( "First &Name", search ); cFirstName = new TQCheckBox( "First &Name", search );
cFirstName.resize( cFirstName.sizeHint() ); cFirstName.resize( cFirstName.sizeHint() );
grid2.addWidget( cFirstName, 0, 0 ); grid2.addWidget( cFirstName, 0, 0 );
connect( cFirstName, SIGNAL( "clicked()" ), this, SLOT( "toggleFirstName()" ) ); connect( cFirstName, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "toggleFirstName()" ) );
cLastName = new TQCheckBox( "&Last Name", search ); cLastName = new TQCheckBox( "&Last Name", search );
cLastName.resize( cLastName.sizeHint() ); cLastName.resize( cLastName.sizeHint() );
grid2.addWidget( cLastName, 0, 1 ); grid2.addWidget( cLastName, 0, 1 );
connect( cLastName, SIGNAL( "clicked()" ), this, SLOT( "toggleLastName()" ) ); connect( cLastName, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "toggleLastName()" ) );
cAddress = new TQCheckBox( "Add&ress", search ); cAddress = new TQCheckBox( "Add&ress", search );
cAddress.resize( cAddress.sizeHint() ); cAddress.resize( cAddress.sizeHint() );
grid2.addWidget( cAddress, 0, 2 ); grid2.addWidget( cAddress, 0, 2 );
connect( cAddress, SIGNAL( "clicked()" ), this, SLOT( "toggleAddress()" ) ); connect( cAddress, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "toggleAddress()" ) );
cEMail = new TQCheckBox( "&E-Mail", search ); cEMail = new TQCheckBox( "&E-Mail", search );
cEMail.resize( cEMail.sizeHint() ); cEMail.resize( cEMail.sizeHint() );
grid2.addWidget( cEMail, 0, 3 ); grid2.addWidget( cEMail, 0, 3 );
connect( cEMail, SIGNAL( "clicked()" ), this, SLOT( "toggleEMail()" ) ); connect( cEMail, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "toggleEMail()" ) );
sFirstName = new TQLineEdit( search ); sFirstName = new TQLineEdit( search );
sFirstName.resize( sFirstName.sizeHint() ); sFirstName.resize( sFirstName.sizeHint() );
@ -179,7 +179,7 @@ public void setupTabWidget()
find = new TQPushButton( "F&ind", search ); find = new TQPushButton( "F&ind", search );
find.resize( find.sizeHint() ); find.resize( find.sizeHint() );
grid2.addWidget( find, 1, 4 ); grid2.addWidget( find, 1, 4 );
connect( find, SIGNAL( "clicked()" ), this, SLOT( "findEntries()" ) ); connect( find, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "findEntries()" ) );
cFirstName.setChecked( true ); cFirstName.setChecked( true );
sFirstName.setEnabled( true ); sFirstName.setEnabled( true );
@ -202,7 +202,7 @@ public void setupListView()
listView.setSelectionMode( TQListView.Extended ); listView.setSelectionMode( TQListView.Extended );
connect( listView, SIGNAL( "clicked( TQListViewItem )" ), this, SLOT( "itemSelected( TQListViewItem )" ) ); connect( listView, TQ_SIGNAL( "clicked( TQListViewItem )" ), this, TQ_SLOT( "itemSelected( TQListViewItem )" ) );
mainGrid.addWidget( listView, 1, 0 ); mainGrid.addWidget( listView, 1, 0 );
listView.setAllColumnsShowFocus( true ); listView.setAllColumnsShowFocus( true );

@ -30,16 +30,16 @@ public void setupMenuBar()
TQPopupMenu file = new TQPopupMenu( this ); TQPopupMenu file = new TQPopupMenu( this );
menuBar().insertItem( "&File", file ); menuBar().insertItem( "&File", file );
file.insertItem( "New", this, SLOT( "fileNew()" ), new TQKeySequence(CTRL + Key_N) ); file.insertItem( "New", this, TQ_SLOT( "fileNew()" ), new TQKeySequence(CTRL + Key_N) );
file.insertItem( new TQIconSet(new TQPixmap( "fileopen.xpm" )), "Open", this, SLOT( "fileOpen()" ), new TQKeySequence(CTRL + Key_O) ); file.insertItem( new TQIconSet(new TQPixmap( "fileopen.xpm" )), "Open", this, TQ_SLOT( "fileOpen()" ), new TQKeySequence(CTRL + Key_O) );
file.insertSeparator(); file.insertSeparator();
file.insertItem( new TQIconSet(new TQPixmap( "filesave.xpm" )), "Save", this, SLOT( "fileSave()" ), new TQKeySequence(CTRL + Key_S) ); file.insertItem( new TQIconSet(new TQPixmap( "filesave.xpm" )), "Save", this, TQ_SLOT( "fileSave()" ), new TQKeySequence(CTRL + Key_S) );
file.insertItem( "Save As...", this, SLOT( "fileSaveAs()" ) ); file.insertItem( "Save As...", this, TQ_SLOT( "fileSaveAs()" ) );
file.insertSeparator(); file.insertSeparator();
file.insertItem( new TQIconSet(new TQPixmap( "fileprint.xpm" )), "Print...", this, SLOT( "filePrint()" ), new TQKeySequence(CTRL + Key_P) ); file.insertItem( new TQIconSet(new TQPixmap( "fileprint.xpm" )), "Print...", this, TQ_SLOT( "filePrint()" ), new TQKeySequence(CTRL + Key_P) );
file.insertSeparator(); file.insertSeparator();
file.insertItem( "Close", this, SLOT( "closeWindow()" ), new TQKeySequence(CTRL + Key_W) ); file.insertItem( "Close", this, TQ_SLOT( "closeWindow()" ), new TQKeySequence(CTRL + Key_W) );
file.insertItem( "Quit", tqApp(), SLOT( "quit()" ), new TQKeySequence(CTRL + Key_Q) ); file.insertItem( "Quit", tqApp(), TQ_SLOT( "quit()" ), new TQKeySequence(CTRL + Key_Q) );
} }
public void setupFileTools() public void setupFileTools()

@ -20,7 +20,7 @@ public static void main( String[] args )
a.setMainWidget( mw ); a.setMainWidget( mw );
mw.show(); mw.show();
a.connect( a, Qt.SIGNAL( "lastWindowClosed()" ), a, Qt.SLOT( "quit()" ) ); a.connect( a, Qt.TQ_SIGNAL( "lastWindowClosed()" ), a, Qt.TQ_SLOT( "quit()" ) );
int result = a.exec(); int result = a.exec();
return; return;
} }

@ -102,30 +102,30 @@ public class ApplicationWindow extends TQMainWindow {
fileQuitAction; fileQuitAction;
fileNewAction = new TQAction("New", "&New", new TQKeySequence(CTRL+Key_N), this, "new", false); fileNewAction = new TQAction("New", "&New", new TQKeySequence(CTRL+Key_N), this, "new", false);
connect(fileNewAction, SIGNAL("activated()"), this, SLOT("newDoc()")); connect(fileNewAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("newDoc()"));
fileOpenAction = new TQAction("Open File", new TQIconSet(new TQPixmap(fileopen)), "&Open", new TQKeySequence(CTRL+Key_O), this, "open", false); fileOpenAction = new TQAction("Open File", new TQIconSet(new TQPixmap(fileopen)), "&Open", new TQKeySequence(CTRL+Key_O), this, "open", false);
connect(fileOpenAction, SIGNAL("activated()"), this, SLOT("load()")); connect(fileOpenAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("load()"));
TQMimeSourceFactory.defaultFactory().setPixmap("fileopen", new TQPixmap(fileopen)); TQMimeSourceFactory.defaultFactory().setPixmap("fileopen", new TQPixmap(fileopen));
fileOpenAction.setWhatsThis(fileOpenText); fileOpenAction.setWhatsThis(fileOpenText);
fileSaveAction = new TQAction("Save File", new TQIconSet(new TQPixmap(filesave)), "&Save", new TQKeySequence(CTRL+Key_S), this, "save", false); fileSaveAction = new TQAction("Save File", new TQIconSet(new TQPixmap(filesave)), "&Save", new TQKeySequence(CTRL+Key_S), this, "save", false);
connect(fileSaveAction, SIGNAL("activated()"), this, SLOT("save()")); connect(fileSaveAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("save()"));
fileSaveAction.setWhatsThis(fileSaveText); fileSaveAction.setWhatsThis(fileSaveText);
fileSaveAsAction = new TQAction("Save File As", "Save &as", new TQKeySequence(), this, "save as", false); fileSaveAsAction = new TQAction("Save File As", "Save &as", new TQKeySequence(), this, "save as", false);
connect(fileSaveAsAction, SIGNAL("activated()"), this, SLOT("saveAs()")); connect(fileSaveAsAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("saveAs()"));
fileSaveAsAction.setWhatsThis(fileSaveText); fileSaveAsAction.setWhatsThis(fileSaveText);
filePrintAction = new TQAction("Print File", new TQIconSet(new TQPixmap(fileprint)), "&Print", new TQKeySequence(CTRL+Key_P), this, "print", false); filePrintAction = new TQAction("Print File", new TQIconSet(new TQPixmap(fileprint)), "&Print", new TQKeySequence(CTRL+Key_P), this, "print", false);
connect(filePrintAction, SIGNAL("activated()"), this, SLOT("print()")); connect(filePrintAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("print()"));
filePrintAction.setWhatsThis(filePrintText); filePrintAction.setWhatsThis(filePrintText);
fileCloseAction = new TQAction("Close", "&Close", new TQKeySequence(CTRL+Key_W), this, "close", false); fileCloseAction = new TQAction("Close", "&Close", new TQKeySequence(CTRL+Key_W), this, "close", false);
connect(fileCloseAction, SIGNAL("activated()"), this, SLOT("close()")); connect(fileCloseAction, TQ_SIGNAL("activated()"), this, TQ_SLOT("close()"));
fileQuitAction = new TQAction("Quit", "&Quit", new TQKeySequence(CTRL+Key_Q), this, "quit", false); fileQuitAction = new TQAction("Quit", "&Quit", new TQKeySequence(CTRL+Key_Q), this, "quit", false);
connect(fileQuitAction, SIGNAL("activated()"), tqApp(), SLOT("closeAllWindows()")); connect(fileQuitAction, TQ_SIGNAL("activated()"), tqApp(), TQ_SLOT("closeAllWindows()"));
// populate a tool bar with some actions // populate a tool bar with some actions
@ -158,10 +158,10 @@ public class ApplicationWindow extends TQMainWindow {
TQPopupMenu help = new TQPopupMenu(this, "help"); TQPopupMenu help = new TQPopupMenu(this, "help");
menuBar().insertSeparator(); menuBar().insertSeparator();
menuBar().insertItem("&Help", help); menuBar().insertItem("&Help", help);
help.insertItem("&About", this, SLOT("about()"), new TQKeySequence(Key_F1), -1, -1); help.insertItem("&About", this, TQ_SLOT("about()"), new TQKeySequence(Key_F1), -1, -1);
help.insertItem("About &Qt", this, SLOT("aboutTQt()")); help.insertItem("About &Qt", this, TQ_SLOT("aboutTQt()"));
help.insertSeparator(); help.insertSeparator();
help.insertItem("What's &This", this, SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1), -1, -1); help.insertItem("What's &This", this, TQ_SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1), -1, -1);
// create and define the central widget // create and define the central widget

@ -6,7 +6,7 @@ public class Main extends TQObject {
ApplicationWindow mw = new ApplicationWindow(); ApplicationWindow mw = new ApplicationWindow();
mw.setCaption("Document 1"); mw.setCaption("Document 1");
mw.show(); mw.show();
a.connect(a, SIGNAL("lastWindowClosed()"), a, SLOT("quit()")); a.connect(a, TQ_SIGNAL("lastWindowClosed()"), a, TQ_SLOT("quit()"));
a.exec(); a.exec();
return; return;
} }

@ -80,8 +80,8 @@ public ButtonsGroups( TQWidget parent, String name )
// insert a checkbox... // insert a checkbox...
state = new TQCheckBox( "E&nable Radiobuttons", bgrp3 ); state = new TQCheckBox( "E&nable Radiobuttons", bgrp3 );
state.setChecked( true ); state.setChecked( true );
// ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State() // ...and connect its signal clicked() with the slot slotChangeGrp3State()
connect( state, SIGNAL(" clicked()"), this, SLOT(" slotChangeGrp3State()") ); connect( state, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" slotChangeGrp3State()") );
// ------------ fourth group // ------------ fourth group
@ -103,7 +103,7 @@ public ButtonsGroups( TQWidget parent, String name )
} }
/* /*
SLOT slotChangeGrp3State() TQ_SLOT slotChangeGrp3State()
* *
enables/disables the radiobuttons of the third buttongroup enables/disables the radiobuttons of the third buttongroup
*/ */

@ -73,8 +73,8 @@ CheckLists( TQWidget parent, String name )
TQPushButton copy1 = new TQPushButton( " -> ", this ); TQPushButton copy1 = new TQPushButton( " -> ", this );
tmp.addWidget( copy1 ); tmp.addWidget( copy1 );
copy1.setMaximumWidth( copy1.sizeHint().width() ); copy1.setMaximumWidth( copy1.sizeHint().width() );
// connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2() // connect the signal clicked() of the pushbutton with the slot copy1to2()
connect( copy1, SIGNAL(" clicked()"), this, SLOT(" copy1to2()") ); connect( copy1, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" copy1to2()") );
// another widget for layouting // another widget for layouting
TQVBoxLayout vbox2 = new TQVBoxLayout( lay ); TQVBoxLayout vbox2 = new TQVBoxLayout( lay );
@ -97,8 +97,8 @@ CheckLists( TQWidget parent, String name )
TQPushButton copy2 = new TQPushButton( " -> ", this ); TQPushButton copy2 = new TQPushButton( " -> ", this );
lay.addWidget( copy2 ); lay.addWidget( copy2 );
copy2.setMaximumWidth( copy2.sizeHint().width() ); copy2.setMaximumWidth( copy2.sizeHint().width() );
// ...and connect its clicked() SIGNAL to the copy2to3() SLOT // ...and connect its clicked() signal to the copy2to3() slot
connect( copy2, SIGNAL(" clicked()"), this, SLOT(" copy2to3()") ); connect( copy2, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" copy2to3()") );
tmp = new TQVBoxLayout( lay ); tmp = new TQVBoxLayout( lay );
tmp.setMargin( 5 ); tmp.setMargin( 5 );
@ -109,7 +109,7 @@ CheckLists( TQWidget parent, String name )
} }
/* /*
SLOT copy1to2() TQ_SLOT copy1to2()
* *
Copies all checked ListViewItems from the first ListView to Copies all checked ListViewItems from the first ListView to
the second one, and inserts them as Radio-ListViewItem. the second one, and inserts them as Radio-ListViewItem.
@ -143,7 +143,7 @@ public void copy1to2()
} }
/* /*
SLOT copy2to3() TQ_SLOT copy2to3()
* *
Copies the checked item of the second ListView into the Copies the checked item of the second ListView into the
Label at the right. Label at the right.

@ -83,10 +83,10 @@ BookForm( TQWidget parent, String name, int fl )
// signals and slots connections // signals and slots connections
connect( editButton, SIGNAL( "clicked()" ), this, SLOT( "editClicked()" ) ); connect( editButton, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "editClicked()" ) );
connect( AuthorDataTable, SIGNAL( "primeInsert(TQSqlRecord)" ), this, SLOT( "primeInsertAuthor(TQSqlRecord)" ) ); connect( AuthorDataTable, TQ_SIGNAL( "primeInsert(TQSqlRecord)" ), this, TQ_SLOT( "primeInsertAuthor(TQSqlRecord)" ) );
connect( AuthorDataTable, SIGNAL( "currentChanged(TQSqlRecord)" ), this, SLOT( "newCurrentAuthor(TQSqlRecord)" ) ); connect( AuthorDataTable, TQ_SIGNAL( "currentChanged(TQSqlRecord)" ), this, TQ_SLOT( "newCurrentAuthor(TQSqlRecord)" ) );
connect( connectButton, SIGNAL( "clicked()" ), this, SLOT( "connectClicked()" ) ); connect( connectButton, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "connectClicked()" ) );
// tab order // tab order
setTabOrder( connectButton, editButton ); setTabOrder( connectButton, editButton );

@ -108,8 +108,8 @@ ConnectDialog( TQWidget parent, String name, boolean modal, int fl )
// signals and slots connections // signals and slots connections
connect( PushButton1, SIGNAL( "clicked()" ), this, SLOT( "accept()" ) ); connect( PushButton1, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "accept()" ) );
connect( PushButton2, SIGNAL( "clicked()" ), this, SLOT( "reject()" ) ); connect( PushButton2, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "reject()" ) );
// tab order // tab order
setTabOrder( comboDriver, editDatabase ); setTabOrder( comboDriver, editDatabase );

@ -157,23 +157,23 @@ EditBookForm( TQWidget parent, String name, boolean modal, int fl )
// signals and slots connections // signals and slots connections
connect( PushButtonFirst, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "first()" ) ); connect( PushButtonFirst, TQ_SIGNAL( "clicked()" ), BookDataBrowser, TQ_SLOT( "first()" ) );
connect( BookDataBrowser, SIGNAL( "firstRecordAvailable( boolean )" ), PushButtonFirst, SLOT( "setEnabled(boolean)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "firstRecordAvailable( boolean )" ), PushButtonFirst, TQ_SLOT( "setEnabled(boolean)" ) );
connect( PushButtonPrev, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "prev()" ) ); connect( PushButtonPrev, TQ_SIGNAL( "clicked()" ), BookDataBrowser, TQ_SLOT( "prev()" ) );
connect( BookDataBrowser, SIGNAL( "prevRecordAvailable( boolean )" ), PushButtonPrev, SLOT( "setEnabled(boolean)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "prevRecordAvailable( boolean )" ), PushButtonPrev, TQ_SLOT( "setEnabled(boolean)" ) );
connect( PushButtonNext, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "next()" ) ); connect( PushButtonNext, TQ_SIGNAL( "clicked()" ), BookDataBrowser, TQ_SLOT( "next()" ) );
connect( BookDataBrowser, SIGNAL( "nextRecordAvailable( boolean )" ), PushButtonNext, SLOT( "setEnabled(boolean)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "nextRecordAvailable( boolean )" ), PushButtonNext, TQ_SLOT( "setEnabled(boolean)" ) );
connect( PushButtonLast, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "last()" ) ); connect( PushButtonLast, TQ_SIGNAL( "clicked()" ), BookDataBrowser, TQ_SLOT( "last()" ) );
connect( BookDataBrowser, SIGNAL( "lastRecordAvailable( boolean )" ), PushButtonLast, SLOT( "setEnabled(boolean)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "lastRecordAvailable( boolean )" ), PushButtonLast, TQ_SLOT( "setEnabled(boolean)" ) );
connect( PushButtonInsert, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "insert()" ) ); connect( PushButtonInsert, TQ_SIGNAL( "clicked()" ), BookDataBrowser, TQ_SLOT( "insert()" ) );
connect( PushButtonUpdate, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "update()" ) ); connect( PushButtonUpdate, TQ_SIGNAL( "clicked()" ), BookDataBrowser, TQ_SLOT( "update()" ) );
connect( PushButtonDelete, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "del()" ) ); connect( PushButtonDelete, TQ_SIGNAL( "clicked()" ), BookDataBrowser, TQ_SLOT( "del()" ) );
connect( PushButtonClose, SIGNAL( "clicked()" ), this, SLOT( "accept()" ) ); connect( PushButtonClose, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "accept()" ) );
connect( BookDataBrowser, SIGNAL( "primeUpdate(TQSqlRecord)" ), this, SLOT( "primeUpdateBook(TQSqlRecord)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "primeUpdate(TQSqlRecord)" ), this, TQ_SLOT( "primeUpdateBook(TQSqlRecord)" ) );
connect( BookDataBrowser, SIGNAL( "beforeUpdate(TQSqlRecord)" ), this, SLOT( "beforeUpdateBook(TQSqlRecord)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "beforeUpdate(TQSqlRecord)" ), this, TQ_SLOT( "beforeUpdateBook(TQSqlRecord)" ) );
connect( BookDataBrowser, SIGNAL( "beforeInsert(TQSqlRecord)" ), this, SLOT( "beforeUpdateBook(TQSqlRecord)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "beforeInsert(TQSqlRecord)" ), this, TQ_SLOT( "beforeUpdateBook(TQSqlRecord)" ) );
connect( BookDataBrowser, SIGNAL( "primeInsert(TQSqlRecord)" ), this, SLOT( "primeInsertBook(TQSqlRecord)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "primeInsert(TQSqlRecord)" ), this, TQ_SLOT( "primeInsertBook(TQSqlRecord)" ) );
connect( BookDataBrowser, SIGNAL( "primeInsert(TQSqlRecord)" ), this, SLOT( "primeInsertBook(TQSqlRecord)" ) ); connect( BookDataBrowser, TQ_SIGNAL( "primeInsert(TQSqlRecord)" ), this, TQ_SLOT( "primeInsertBook(TQSqlRecord)" ) );
// tab order // tab order
setTabOrder( TQLineEditTitle, TQLineEditPrice ); setTabOrder( TQLineEditTitle, TQLineEditPrice );

@ -6036,19 +6036,19 @@ WidgetsBase( TQWidget parent, String name, int fl )
// signals and slots connections // signals and slots connections
connect( slider, SIGNAL( "valueChanged(int)" ), lcdDisplay, SLOT( "display(int)" ) ); connect( slider, TQ_SIGNAL( "valueChanged(int)" ), lcdDisplay, TQ_SLOT( "display(int)" ) );
connect( slider, SIGNAL( "valueChanged(int)" ), progressBar, SLOT( "setProgress(int)" ) ); connect( slider, TQ_SIGNAL( "valueChanged(int)" ), progressBar, TQ_SLOT( "setProgress(int)" ) );
connect( dateEdit, SIGNAL( "valueChanged(Calendar)" ), this, SLOT( "updateDateTimeString()" ) ); connect( dateEdit, TQ_SIGNAL( "valueChanged(Calendar)" ), this, TQ_SLOT( "updateDateTimeString()" ) );
connect( slider, SIGNAL( "valueChanged(int)" ), spinBox, SLOT( "setValue(int)" ) ); connect( slider, TQ_SIGNAL( "valueChanged(int)" ), spinBox, TQ_SLOT( "setValue(int)" ) );
connect( spinBox, SIGNAL( "valueChanged(int)" ), slider, SLOT( "setValue(int)" ) ); connect( spinBox, TQ_SIGNAL( "valueChanged(int)" ), slider, TQ_SLOT( "setValue(int)" ) );
connect( spinBox, SIGNAL( "valueChanged(int)" ), progressBar, SLOT( "setProgress(int)" ) ); connect( spinBox, TQ_SIGNAL( "valueChanged(int)" ), progressBar, TQ_SLOT( "setProgress(int)" ) );
connect( spinBox, SIGNAL( "valueChanged(int)" ), lcdDisplay, SLOT( "display(int)" ) ); connect( spinBox, TQ_SIGNAL( "valueChanged(int)" ), lcdDisplay, TQ_SLOT( "display(int)" ) );
connect( buttonColorBox, SIGNAL( "activated(String)" ), this, SLOT( "setColor(String)" ) ); connect( buttonColorBox, TQ_SIGNAL( "activated(String)" ), this, TQ_SLOT( "setColor(String)" ) );
connect( lineEdit, SIGNAL( "textChanged(String)" ), this, SLOT( "updateColorTest(String)" ) ); connect( lineEdit, TQ_SIGNAL( "textChanged(String)" ), this, TQ_SLOT( "updateColorTest(String)" ) );
connect( lineEdit, SIGNAL( "returnPressed()" ), this, SLOT( "setColor()" ) ); connect( lineEdit, TQ_SIGNAL( "returnPressed()" ), this, TQ_SLOT( "setColor()" ) );
connect( timeEdit, SIGNAL( "valueChanged(Date)" ), this, SLOT( "updateDateTimeString()" ) ); connect( timeEdit, TQ_SIGNAL( "valueChanged(Date)" ), this, TQ_SLOT( "updateDateTimeString()" ) );
connect( timeEdit, SIGNAL( "valueChanged(Date)" ), this, SLOT( "updateClock()" ) ); connect( timeEdit, TQ_SIGNAL( "valueChanged(Date)" ), this, TQ_SLOT( "updateClock()" ) );
connect( pushButton, SIGNAL( "clicked()" ), this, SLOT( "resetColors()" ) ); connect( pushButton, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "resetColors()" ) );
init(); init();
} }

@ -147,7 +147,7 @@ DragMoviePlayer( TQDragObject p )
// TQObject(p), // TQObject(p),
dobj = p; dobj = p;
movie = new TQMovie("trolltech.gif" ); movie = new TQMovie("trolltech.gif" );
movie.connectUpdate(this,SLOT("updatePixmap(TQRect)")); movie.connectUpdate(this,TQ_SLOT("updatePixmap(TQRect)"));
} }
void updatePixmap( TQRect rect ) void updatePixmap( TQRect rect )

@ -48,8 +48,8 @@ static DropSite addStuff( TQWidget parent, boolean image, boolean secret )
tll.activate(); tll.activate();
parent.resize( parent.sizeHint() ); parent.resize( parent.sizeHint() );
TQObject.connect( d, Qt.SIGNAL("message(String)"), TQObject.connect( d, Qt.TQ_SIGNAL("message(String)"),
format, Qt.SLOT("setText(String)") ); format, Qt.TQ_SLOT("setText(String)") );
return d; return d;
} }
@ -75,7 +75,7 @@ public static void main( String[] args )
mw3.setCaption( "Qt Example - Drag and Drop" ); mw3.setCaption( "Qt Example - Drag and Drop" );
mw3.show(); mw3.show();
TQObject.connect(Qt.qApp(),Qt.SIGNAL("lastWindowClosed()"),Qt.qApp(),Qt.SLOT("quit()")); TQObject.connect(Qt.qApp(),Qt.TQ_SIGNAL("lastWindowClosed()"),Qt.qApp(),Qt.TQ_SLOT("quit()"));
a.exec(); a.exec();
return; return;
} }

@ -49,8 +49,8 @@ Forever( TQWidget parent, String name )
rectangles = 0; rectangles = 0;
startTimer( 0 ); // run continuous timer startTimer( 0 ); // run continuous timer
TQTimer counter = new TQTimer( this ); TQTimer counter = new TQTimer( this );
connect( counter, SIGNAL("timeout()"), connect( counter, TQ_SIGNAL("timeout()"),
this, SLOT("updateCaption()") ); this, TQ_SLOT("updateCaption()") );
counter.start( 1000 ); counter.start( 1000 );
} }

@ -28,7 +28,7 @@ Hello( String text, TQWidget parent, String name )
super(parent,name); super(parent,name);
t = text; t = text;
TQTimer timer = new TQTimer(this); TQTimer timer = new TQTimer(this);
connect( timer, SIGNAL("timeout()"), SLOT("animate()") ); connect( timer, TQ_SIGNAL("timeout()"), TQ_SLOT("animate()") );
timer.start( 40 ); timer.start( 40 );
resize( 260, 130 ); resize( 260, 130 );

@ -29,7 +29,7 @@ public static void main( String[] args )
s = "Hello, World"; s = "Hello, World";
Hello h = new Hello( s ); Hello h = new Hello( s );
h.setCaption( "Qt says hello" ); h.setCaption( "Qt says hello" );
TQObject.connect( h, Qt.SIGNAL("clicked()"), a, Qt.SLOT("quit()") ); TQObject.connect( h, Qt.TQ_SIGNAL("clicked()"), a, Qt.TQ_SLOT("quit()") );
h.setFont( new TQFont("times",32,TQFont.Bold) ); // default font h.setFont( new TQFont("times",32,TQFont.Bold) ); // default font
h.setBackgroundColor( Qt.white() ); // default bg color h.setBackgroundColor( Qt.white() ); // default bg color
a.setMainWidget( h ); a.setMainWidget( h );

@ -42,26 +42,26 @@ HelpWindow( String home_, String _path,
browser.mimeSourceFactory().setFilePath( new String[] { _path } ); browser.mimeSourceFactory().setFilePath( new String[] { _path } );
browser.setFrameStyle( TQFrame.Panel | TQFrame.Sunken ); browser.setFrameStyle( TQFrame.Panel | TQFrame.Sunken );
connect( browser, SIGNAL(" textChanged()"), connect( browser, TQ_SIGNAL(" textChanged()"),
this, SLOT(" textChanged()") ); this, TQ_SLOT(" textChanged()") );
setCentralWidget( browser ); setCentralWidget( browser );
if ( !home_.equals("") ) if ( !home_.equals("") )
browser.setSource( home_ ); browser.setSource( home_ );
connect( browser, SIGNAL(" highlighted( String)"), connect( browser, TQ_SIGNAL(" highlighted( String)"),
statusBar(), SLOT(" message( String)") ); statusBar(), TQ_SLOT(" message( String)") );
resize( 640,700 ); resize( 640,700 );
TQPopupMenu file = new TQPopupMenu( this ); TQPopupMenu file = new TQPopupMenu( this );
file.insertItem( tr("&New Window"), this, SLOT(" newWindow()"), new TQKeySequence(CTRL+Key_N) ); file.insertItem( tr("&New Window"), this, TQ_SLOT(" newWindow()"), new TQKeySequence(CTRL+Key_N) );
file.insertItem( tr("&Open File"), this, SLOT(" openFile()"), new TQKeySequence(CTRL+Key_O) ); file.insertItem( tr("&Open File"), this, TQ_SLOT(" openFile()"), new TQKeySequence(CTRL+Key_O) );
file.insertItem( tr("&Print"), this, SLOT(" print()"), new TQKeySequence(CTRL+Key_P) ); file.insertItem( tr("&Print"), this, TQ_SLOT(" print()"), new TQKeySequence(CTRL+Key_P) );
file.insertSeparator(); file.insertSeparator();
file.insertItem( tr("&Close"), this, SLOT(" close()"), new TQKeySequence(CTRL+Key_Q) ); file.insertItem( tr("&Close"), this, TQ_SLOT(" close()"), new TQKeySequence(CTRL+Key_Q) );
file.insertItem( tr("E&xit"), tqApp(), SLOT(" closeAllWindows()"), new TQKeySequence(CTRL+Key_X) ); file.insertItem( tr("E&xit"), tqApp(), TQ_SLOT(" closeAllWindows()"), new TQKeySequence(CTRL+Key_X) );
// The same three icons are used twice each. // The same three icons are used twice each.
TQIconSet icon_back = new TQIconSet( new TQPixmap("back.xpm") ); TQIconSet icon_back = new TQIconSet( new TQPixmap("back.xpm") );
@ -70,16 +70,16 @@ HelpWindow( String home_, String _path,
TQPopupMenu go = new TQPopupMenu( this ); TQPopupMenu go = new TQPopupMenu( this );
backwardId = go.insertItem( icon_back, backwardId = go.insertItem( icon_back,
tr("&Backward"), browser, SLOT(" backward()"), tr("&Backward"), browser, TQ_SLOT(" backward()"),
new TQKeySequence(CTRL+Key_Left) ); new TQKeySequence(CTRL+Key_Left) );
forwardId = go.insertItem( icon_forward, forwardId = go.insertItem( icon_forward,
tr("&Forward"), browser, SLOT(" forward()"), tr("&Forward"), browser, TQ_SLOT(" forward()"),
new TQKeySequence(CTRL+Key_Right) ); new TQKeySequence(CTRL+Key_Right) );
go.insertItem( icon_home, tr("&Home"), browser, SLOT(" home()") ); go.insertItem( icon_home, tr("&Home"), browser, TQ_SLOT(" home()") );
TQPopupMenu help = new TQPopupMenu( this ); TQPopupMenu help = new TQPopupMenu( this );
help.insertItem( tr("&About ..."), this, SLOT(" about()") ); help.insertItem( tr("&About ..."), this, TQ_SLOT(" about()") );
help.insertItem( tr("About &Qt ..."), this, SLOT(" aboutTQt()") ); help.insertItem( tr("About &Qt ..."), this, TQ_SLOT(" aboutTQt()") );
hist = new TQPopupMenu( this ); hist = new TQPopupMenu( this );
Iterator it = history.iterator(); Iterator it = history.iterator();
@ -87,11 +87,11 @@ HelpWindow( String home_, String _path,
String item = (String) it.next(); String item = (String) it.next();
mHistory.put(new Integer(hist.insertItem( item )), item); mHistory.put(new Integer(hist.insertItem( item )), item);
} }
connect( hist, SIGNAL(" activated( int )"), connect( hist, TQ_SIGNAL(" activated( int )"),
this, SLOT(" histChosen( int )") ); this, TQ_SLOT(" histChosen( int )") );
bookm = new TQPopupMenu( this ); bookm = new TQPopupMenu( this );
bookm.insertItem( tr( "Add Bookmark" ), this, SLOT(" addBookmark()") ); bookm.insertItem( tr( "Add Bookmark" ), this, TQ_SLOT(" addBookmark()") );
bookm.insertSeparator(); bookm.insertSeparator();
Iterator it2 = bookmarks.iterator(); Iterator it2 = bookmarks.iterator();
@ -99,8 +99,8 @@ HelpWindow( String home_, String _path,
String item = (String) it2.next(); String item = (String) it2.next();
mBookmarks.put(new Integer(bookm.insertItem( item )), item); mBookmarks.put(new Integer(bookm.insertItem( item )), item);
} }
connect( bookm, SIGNAL(" activated( int )"), connect( bookm, TQ_SIGNAL(" activated( int )"),
this, SLOT(" bookmChosen( int )") ); this, TQ_SLOT(" bookmChosen( int )") );
menuBar().insertItem( tr("&File"), file ); menuBar().insertItem( tr("&File"), file );
menuBar().insertItem( tr("&Go"), go ); menuBar().insertItem( tr("&Go"), go );
@ -111,29 +111,29 @@ HelpWindow( String home_, String _path,
menuBar().setItemEnabled( forwardId, false); menuBar().setItemEnabled( forwardId, false);
menuBar().setItemEnabled( backwardId, false); menuBar().setItemEnabled( backwardId, false);
connect( browser, SIGNAL(" backwardAvailable( boolean )"), connect( browser, TQ_SIGNAL(" backwardAvailable( boolean )"),
this, SLOT(" setBackwardAvailable( boolean )") ); this, TQ_SLOT(" setBackwardAvailable( boolean )") );
connect( browser, SIGNAL(" forwardAvailable( boolean )"), connect( browser, TQ_SIGNAL(" forwardAvailable( boolean )"),
this, SLOT(" setForwardAvailable( boolean )") ); this, TQ_SLOT(" setForwardAvailable( boolean )") );
TQToolBar toolbar = new TQToolBar( this ); TQToolBar toolbar = new TQToolBar( this );
addToolBar( toolbar, "Toolbar"); addToolBar( toolbar, "Toolbar");
TQToolButton button; TQToolButton button;
button = new TQToolButton( icon_back, tr("Backward"), "", browser, SLOT("backward()"), toolbar ); button = new TQToolButton( icon_back, tr("Backward"), "", browser, TQ_SLOT("backward()"), toolbar );
connect( browser, SIGNAL(" backwardAvailable(boolean)"), button, SLOT(" setEnabled(boolean)") ); connect( browser, TQ_SIGNAL(" backwardAvailable(boolean)"), button, TQ_SLOT(" setEnabled(boolean)") );
button.setEnabled( false ); button.setEnabled( false );
button = new TQToolButton( icon_forward, tr("Forward"), "", browser, SLOT("forward()"), toolbar ); button = new TQToolButton( icon_forward, tr("Forward"), "", browser, TQ_SLOT("forward()"), toolbar );
connect( browser, SIGNAL(" forwardAvailable(boolean)"), button, SLOT(" setEnabled(boolean)") ); connect( browser, TQ_SIGNAL(" forwardAvailable(boolean)"), button, TQ_SLOT(" setEnabled(boolean)") );
button.setEnabled( false ); button.setEnabled( false );
button = new TQToolButton( icon_home, tr("Home"), "", browser, SLOT("home()"), toolbar ); button = new TQToolButton( icon_home, tr("Home"), "", browser, TQ_SLOT("home()"), toolbar );
toolbar.addSeparator(); toolbar.addSeparator();
pathCombo = new TQComboBox( true, toolbar ); pathCombo = new TQComboBox( true, toolbar );
connect( pathCombo, SIGNAL(" activated( String )"), connect( pathCombo, TQ_SIGNAL(" activated( String )"),
this, SLOT(" pathSelected( String )") ); this, TQ_SLOT(" pathSelected( String )") );
toolbar.setStretchableWidget( pathCombo ); toolbar.setStretchableWidget( pathCombo );
setRightJustification( true ); setRightJustification( true );
setDockEnabled( DockLeft, false ); setDockEnabled( DockLeft, false );

@ -32,10 +32,10 @@ public static void main( String[] args )
else else
help.showMaximized(); help.showMaximized();
TQObject.connect( a, Qt.SIGNAL("aboutToQuit()"), TQObject.connect( a, Qt.TQ_SIGNAL("aboutToQuit()"),
help, Qt.SLOT("cleanUp()") ); help, Qt.TQ_SLOT("cleanUp()") );
TQObject.connect( a, Qt.SIGNAL("lastWindowClosed()"), TQObject.connect( a, Qt.TQ_SIGNAL("lastWindowClosed()"),
a, Qt.SLOT("quit()") ); a, Qt.TQ_SLOT("quit()") );
a.exec(); a.exec();
return; return;

@ -49,9 +49,9 @@ public static void main( String[] args )
qiconview.setCaption( "Qt Example - Iconview" ); qiconview.setCaption( "Qt Example - Iconview" );
ListenDND listen_dnd = new ListenDND( qiconview ); ListenDND listen_dnd = new ListenDND( qiconview );
TQObject.connect( qiconview, SIGNAL(" dropped( TQDropEvent , ArrayList )"), TQObject.connect( qiconview, TQ_SIGNAL(" dropped( TQDropEvent , ArrayList )"),
listen_dnd, SLOT(" dropped( TQDropEvent )") ); listen_dnd, TQ_SLOT(" dropped( TQDropEvent )") );
TQObject.connect( qiconview, SIGNAL(" moved()"), listen_dnd, SLOT(" moved()") ); TQObject.connect( qiconview, TQ_SIGNAL(" moved()"), listen_dnd, TQ_SLOT(" moved()") );
a.setMainWidget( qiconview ); a.setMainWidget( qiconview );
qiconview.show(); qiconview.show();

@ -30,7 +30,7 @@ ExampleWidget( TQWidget parent, String name )
menubar.setSeparator( TQMenuBar.InWindowsStyle ); menubar.setSeparator( TQMenuBar.InWindowsStyle );
TQPopupMenu popup; TQPopupMenu popup;
popup = new TQPopupMenu( this ); popup = new TQPopupMenu( this );
popup.insertItem( "&Quit", tqApp(), SLOT("quit()") ); popup.insertItem( "&Quit", tqApp(), TQ_SLOT("quit()") );
menubar.insertItem( "&File", popup ); menubar.insertItem( "&File", popup );
// ...and tell the layout about it. // ...and tell the layout about it.

@ -48,9 +48,9 @@ LineEdits( TQWidget parent, String name )
combo1.insertItem( "Normal", -1 ); combo1.insertItem( "Normal", -1 );
combo1.insertItem( "Password", -1 ); combo1.insertItem( "Password", -1 );
combo1.insertItem( "No Echo", -1 ); combo1.insertItem( "No Echo", -1 );
// ...and connect the activated() SIGNAL with the slotEchoChanged() SLOT to be able // ...and connect the activated() signal with the slotEchoChanged() slot to be able
// to react when an item is selected // to react when an item is selected
connect( combo1, SIGNAL(" activated( int )"), this, SLOT(" slotEchoChanged( int )") ); connect( combo1, TQ_SIGNAL(" activated( int )"), this, TQ_SLOT(" slotEchoChanged( int )") );
// insert the first LineEdit // insert the first LineEdit
lined1 = new TQLineEdit( this ); lined1 = new TQLineEdit( this );
@ -70,8 +70,8 @@ LineEdits( TQWidget parent, String name )
combo2.insertItem( "No Validator", -1 ); combo2.insertItem( "No Validator", -1 );
combo2.insertItem( "Integer Validator", -1 ); combo2.insertItem( "Integer Validator", -1 );
combo2.insertItem( "Double Validator", -1 ); combo2.insertItem( "Double Validator", -1 );
// ...and again the activated() SIGNAL gets connected with a SLOT // ...and again the activated() signal gets connected with a slot
connect( combo2, SIGNAL(" activated( int )"), this, SLOT(" slotValidatorChanged( int )") ); connect( combo2, TQ_SIGNAL(" activated( int )"), this, TQ_SLOT(" slotValidatorChanged( int )") );
// and the second LineEdit // and the second LineEdit
lined2 = new TQLineEdit( this ); lined2 = new TQLineEdit( this );
@ -91,8 +91,8 @@ LineEdits( TQWidget parent, String name )
combo3.insertItem( "Left", -1 ); combo3.insertItem( "Left", -1 );
combo3.insertItem( "Centered", -1 ); combo3.insertItem( "Centered", -1 );
combo3.insertItem( "Right", -1 ); combo3.insertItem( "Right", -1 );
// ...and again the activated() SIGNAL gets connected with a SLOT // ...and again the activated() signal gets connected with a slot
connect( combo3, SIGNAL(" activated( int )"), this, SLOT(" slotAlignmentChanged( int )") ); connect( combo3, TQ_SIGNAL(" activated( int )"), this, TQ_SLOT(" slotAlignmentChanged( int )") );
// and the third lineedit // and the third lineedit
lined3 = new TQLineEdit( this ); lined3 = new TQLineEdit( this );
@ -110,8 +110,8 @@ LineEdits( TQWidget parent, String name )
combo4 = new TQComboBox( false, row4 ); combo4 = new TQComboBox( false, row4 );
combo4.insertItem( "False", -1 ); combo4.insertItem( "False", -1 );
combo4.insertItem( "True", -1 ); combo4.insertItem( "True", -1 );
// ...and again the activated() SIGNAL gets connected with a SLOT // ...and again the activated() signal gets connected with a slot
connect( combo4, SIGNAL(" activated( int )"), this, SLOT(" slotReadOnlyChanged( int )") ); connect( combo4, TQ_SIGNAL(" activated( int )"), this, TQ_SLOT(" slotReadOnlyChanged( int )") );
// and the last lineedit // and the last lineedit
lined4 = new TQLineEdit( this ); lined4 = new TQLineEdit( this );
@ -122,7 +122,7 @@ LineEdits( TQWidget parent, String name )
} }
/* /*
SLOT slotEchoChanged( int i ) TQ_SLOT slotEchoChanged( int i )
* *
i contains the number of the item which the user has been chosen in the i contains the number of the item which the user has been chosen in the
first Combobox. According to this value, we set the Echo-Mode for the first Combobox. According to this value, we set the Echo-Mode for the
@ -147,7 +147,7 @@ void slotEchoChanged( int i )
} }
/* /*
SLOT slotValidatorChanged( int i ) TQ_SLOT slotValidatorChanged( int i )
* *
i contains the number of the item which the user has been chosen in the i contains the number of the item which the user has been chosen in the
second Combobox. According to this value, we set a validator for the second Combobox. According to this value, we set a validator for the
@ -177,7 +177,7 @@ void slotValidatorChanged( int i )
/* /*
SLOT slotAlignmentChanged( int i ) TQ_SLOT slotAlignmentChanged( int i )
* *
i contains the number of the item which the user has been chosen in i contains the number of the item which the user has been chosen in
the third Combobox. According to this value, we set an alignment the third Combobox. According to this value, we set an alignment
@ -203,7 +203,7 @@ void slotAlignmentChanged( int i )
/* /*
SLOT slotReadOnlyChanged( int i ) TQ_SLOT slotReadOnlyChanged( int i )
* *
i contains the number of the item which the user has been chosen in i contains the number of the item which the user has been chosen in
the fourth Combobox. According to this value, we toggle read-only. the fourth Combobox. According to this value, we toggle read-only.

@ -45,7 +45,7 @@ ListBoxDemo()
bg.insert( b ); bg.insert( b );
v.addWidget( b ); v.addWidget( b );
b.setChecked( true ); b.setChecked( true );
connect( b, SIGNAL("clicked()"), this, SLOT("setNumCols()") ); connect( b, TQ_SIGNAL("clicked()"), this, TQ_SLOT("setNumCols()") );
TQHBoxLayout h = new TQHBoxLayout(); TQHBoxLayout h = new TQHBoxLayout();
v.addLayout( h ); v.addLayout( h );
h.addSpacing( 30 ); h.addSpacing( 30 );
@ -61,7 +61,7 @@ ListBoxDemo()
this ); this );
bg.insert( b ); bg.insert( b );
v.addWidget( b ); v.addWidget( b );
connect( b, SIGNAL("clicked()"), this, SLOT("setColsByWidth()") ); connect( b, TQ_SIGNAL("clicked()"), this, TQ_SLOT("setColsByWidth()") );
v.addSpacing( 12 ); v.addSpacing( 12 );
@ -70,7 +70,7 @@ ListBoxDemo()
this ); this );
bg.insert( b ); bg.insert( b );
v.addWidget( b ); v.addWidget( b );
connect( b, SIGNAL("clicked()"), this, SLOT("setNumRows()") ); connect( b, TQ_SIGNAL("clicked()"), this, TQ_SLOT("setNumRows()") );
h = new TQHBoxLayout(); h = new TQHBoxLayout();
v.addLayout( h ); v.addLayout( h );
h.addSpacing( 30 ); h.addSpacing( 30 );
@ -87,30 +87,30 @@ ListBoxDemo()
this ); this );
bg.insert( b ); bg.insert( b );
v.addWidget( b ); v.addWidget( b );
connect( b, SIGNAL("clicked()"), this, SLOT("setRowsByHeight()") ); connect( b, TQ_SIGNAL("clicked()"), this, TQ_SLOT("setRowsByHeight()") );
v.addSpacing( 12 ); v.addSpacing( 12 );
TQCheckBox cb = new TQCheckBox( "Variable-height rows", this ); TQCheckBox cb = new TQCheckBox( "Variable-height rows", this );
cb.setChecked( true ); cb.setChecked( true );
connect( cb, SIGNAL("toggled(boolean)"), this, SLOT("setVariableHeight(boolean)") ); connect( cb, TQ_SIGNAL("toggled(boolean)"), this, TQ_SLOT("setVariableHeight(boolean)") );
v.addWidget( cb ); v.addWidget( cb );
v.addSpacing( 6 ); v.addSpacing( 6 );
cb = new TQCheckBox( "Variable-width columns", this ); cb = new TQCheckBox( "Variable-width columns", this );
connect( cb, SIGNAL("toggled(boolean)"), this, SLOT("setVariableWidth(boolean)") ); connect( cb, TQ_SIGNAL("toggled(boolean)"), this, TQ_SLOT("setVariableWidth(boolean)") );
v.addWidget( cb ); v.addWidget( cb );
cb = new TQCheckBox( "Extended-Selection", this ); cb = new TQCheckBox( "Extended-Selection", this );
connect( cb, SIGNAL("toggled(boolean)"), this, SLOT("setMultiSelection(boolean)") ); connect( cb, TQ_SIGNAL("toggled(boolean)"), this, TQ_SLOT("setMultiSelection(boolean)") );
v.addWidget( cb ); v.addWidget( cb );
TQPushButton pb = new TQPushButton( "Sort ascending", this ); TQPushButton pb = new TQPushButton( "Sort ascending", this );
connect( pb, SIGNAL(" clicked()"), this, SLOT(" sortAscending()") ); connect( pb, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" sortAscending()") );
v.addWidget( pb ); v.addWidget( pb );
pb = new TQPushButton( "Sort descending", this ); pb = new TQPushButton( "Sort descending", this );
connect( pb, SIGNAL(" clicked()"), this, SLOT(" sortDescending()") ); connect( pb, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" sortDescending()") );
v.addWidget( pb ); v.addWidget( pb );
v.addStretch( 100 ); v.addStretch( 100 );
@ -124,8 +124,8 @@ ListBoxDemo()
rows.setRange( 1, 256 ); rows.setRange( 1, 256 );
rows.setValue( 256 ); rows.setValue( 256 );
connect( columns, SIGNAL("valueChanged(int)"), this, SLOT("setNumCols()") ); connect( columns, TQ_SIGNAL("valueChanged(int)"), this, TQ_SLOT("setNumCols()") );
connect( rows, SIGNAL("valueChanged(int)"), this, SLOT("setNumRows()") ); connect( rows, TQ_SIGNAL("valueChanged(int)"), this, TQ_SLOT("setNumRows()") );
} }

@ -118,12 +118,12 @@ ApplicationWindow()
openIcon = new TQPixmap( fileopen ); openIcon = new TQPixmap( fileopen );
TQToolButton fileOpen TQToolButton fileOpen
= new TQToolButton( new TQIconSet(openIcon), "Open File", "", = new TQToolButton( new TQIconSet(openIcon), "Open File", "",
this, SLOT("load()"), fileTools, "open file" ); this, TQ_SLOT("load()"), fileTools, "open file" );
saveIcon = new TQPixmap( filesave ); saveIcon = new TQPixmap( filesave );
TQToolButton fileSave TQToolButton fileSave
= new TQToolButton( new TQIconSet(saveIcon), "Save File", "", = new TQToolButton( new TQIconSet(saveIcon), "Save File", "",
this, SLOT("save()"), fileTools, "save file" ); this, TQ_SLOT("save()"), fileTools, "save file" );
printer = new TQPrinter(); printer = new TQPrinter();
TQPixmap printIcon; TQPixmap printIcon;
@ -131,7 +131,7 @@ ApplicationWindow()
printIcon = new TQPixmap( fileprint ); printIcon = new TQPixmap( fileprint );
TQToolButton filePrint TQToolButton filePrint
= new TQToolButton( new TQIconSet(printIcon), "Print File", "", = new TQToolButton( new TQIconSet(printIcon), "Print File", "",
this, SLOT("print()"), fileTools, "print file" ); this, TQ_SLOT("print()"), fileTools, "print file" );
TQWhatsThis.add( filePrint, filePrintText ); TQWhatsThis.add( filePrint, filePrintText );
TQWhatsThis.whatsThisButton( fileTools ); TQWhatsThis.whatsThisButton( fileTools );
@ -142,39 +142,39 @@ ApplicationWindow()
TQPopupMenu file = new TQPopupMenu( this ); TQPopupMenu file = new TQPopupMenu( this );
menuBar().insertItem( "&File", file ); menuBar().insertItem( "&File", file );
file.insertItem( "&New", this, SLOT("newDoc()"), new TQKeySequence(CTRL+Key_N) ); file.insertItem( "&New", this, TQ_SLOT("newDoc()"), new TQKeySequence(CTRL+Key_N) );
id = file.insertItem( new TQIconSet(openIcon), "&Open...", id = file.insertItem( new TQIconSet(openIcon), "&Open...",
this, SLOT("load()"), new TQKeySequence(CTRL+Key_O) ); this, TQ_SLOT("load()"), new TQKeySequence(CTRL+Key_O) );
file.setWhatsThis( id, fileOpenText ); file.setWhatsThis( id, fileOpenText );
id = file.insertItem( new TQIconSet(saveIcon), "&Save", id = file.insertItem( new TQIconSet(saveIcon), "&Save",
this, SLOT("save()"), new TQKeySequence(CTRL+Key_S) ); this, TQ_SLOT("save()"), new TQKeySequence(CTRL+Key_S) );
file.setWhatsThis( id, fileSaveText ); file.setWhatsThis( id, fileSaveText );
id = file.insertItem( "Save &As...", this, SLOT("saveAs()") ); id = file.insertItem( "Save &As...", this, TQ_SLOT("saveAs()") );
file.setWhatsThis( id, fileSaveText ); file.setWhatsThis( id, fileSaveText );
file.insertSeparator(); file.insertSeparator();
id = file.insertItem( new TQIconSet(printIcon), "&Print...", id = file.insertItem( new TQIconSet(printIcon), "&Print...",
this, SLOT("print()"), new TQKeySequence(CTRL+Key_P) ); this, TQ_SLOT("print()"), new TQKeySequence(CTRL+Key_P) );
file.setWhatsThis( id, filePrintText ); file.setWhatsThis( id, filePrintText );
file.insertSeparator(); file.insertSeparator();
file.insertItem( "&Close", this, SLOT("closeWindow()"), new TQKeySequence(CTRL+Key_W) ); file.insertItem( "&Close", this, TQ_SLOT("closeWindow()"), new TQKeySequence(CTRL+Key_W) );
file.insertItem( "&Quit", tqApp(), SLOT(" closeAllWindows()"), new TQKeySequence(CTRL+Key_Q) ); file.insertItem( "&Quit", tqApp(), TQ_SLOT(" closeAllWindows()"), new TQKeySequence(CTRL+Key_Q) );
windowsMenu = new TQPopupMenu( this ); windowsMenu = new TQPopupMenu( this );
windowsMenu.setCheckable( true ); windowsMenu.setCheckable( true );
connect( windowsMenu, SIGNAL(" aboutToShow()"), connect( windowsMenu, TQ_SIGNAL(" aboutToShow()"),
this, SLOT(" windowsMenuAboutToShow()") ); this, TQ_SLOT(" windowsMenuAboutToShow()") );
menuBar().insertItem( "&Windows", windowsMenu ); menuBar().insertItem( "&Windows", windowsMenu );
menuBar().insertSeparator(); menuBar().insertSeparator();
TQPopupMenu help = new TQPopupMenu( this ); TQPopupMenu help = new TQPopupMenu( this );
menuBar().insertItem( "&Help", help ); menuBar().insertItem( "&Help", help );
help.insertItem( "&About", this, SLOT("about()"), new TQKeySequence(Key_F1)); help.insertItem( "&About", this, TQ_SLOT("about()"), new TQKeySequence(Key_F1));
help.insertItem( "About &Qt", this, SLOT("aboutTQt()")); help.insertItem( "About &Qt", this, TQ_SLOT("aboutTQt()"));
help.insertSeparator(); help.insertSeparator();
help.insertItem( "What's &This", this, SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1)); help.insertItem( "What's &This", this, TQ_SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1));
TQVBox vb = new TQVBox( this ); TQVBox vb = new TQVBox( this );
vb.setFrameStyle( TQFrame.StyledPanel | TQFrame.Sunken ); vb.setFrameStyle( TQFrame.StyledPanel | TQFrame.Sunken );
@ -189,7 +189,7 @@ ApplicationWindow()
MDIWindow newDoc() MDIWindow newDoc()
{ {
MDIWindow w = new MDIWindow( ws, null, WDestructiveClose ); MDIWindow w = new MDIWindow( ws, null, WDestructiveClose );
connect( w, SIGNAL("message(String,int)"), statusBar(), SLOT("message(String,int)") ); connect( w, TQ_SIGNAL("message(String,int)"), statusBar(), TQ_SLOT("message(String,int)") );
w.setCaption("unnamed document"); w.setCaption("unnamed document");
w.setIcon( new TQPixmap("document.xpm") ); w.setIcon( new TQPixmap("document.xpm") );
// show the very first window in maximized mode // show the very first window in maximized mode
@ -260,8 +260,8 @@ void aboutTQt()
void windowsMenuAboutToShow() void windowsMenuAboutToShow()
{ {
windowsMenu.clear(); windowsMenu.clear();
int cascadeId = windowsMenu.insertItem("&Cascade", ws, SLOT("cascade()") ); int cascadeId = windowsMenu.insertItem("&Cascade", ws, TQ_SLOT("cascade()") );
int tileId = windowsMenu.insertItem("&Tile", ws, SLOT("tile()") ); int tileId = windowsMenu.insertItem("&Tile", ws, TQ_SLOT("tile()") );
windows = ws.windowList(); windows = ws.windowList();
if ( windows.size() == 0 ) { if ( windows.size() == 0 ) {
windowsMenu.setItemEnabled( cascadeId, false ); windowsMenu.setItemEnabled( cascadeId, false );
@ -270,7 +270,7 @@ void windowsMenuAboutToShow()
windowsMenu.insertSeparator(); windowsMenu.insertSeparator();
for ( int i = 0; i < windows.size(); ++i ) { for ( int i = 0; i < windows.size(); ++i ) {
int id = windowsMenu.insertItem(((TQWidget) windows.get(i)).caption(), int id = windowsMenu.insertItem(((TQWidget) windows.get(i)).caption(),
this, SLOT(" windowsMenuActivated( int )") ); this, TQ_SLOT(" windowsMenuActivated( int )") );
windowsMenu.setItemParameter( id, i ); windowsMenu.setItemParameter( id, i );
windowsMenu.setItemChecked( id, ws.activeWindow() == windows.get(i) ); windowsMenu.setItemChecked( id, ws.activeWindow() == windows.get(i) );
} }

@ -17,7 +17,7 @@ public static void main(String[] args) {
ApplicationWindow mw = new ApplicationWindow(); ApplicationWindow mw = new ApplicationWindow();
mw.setCaption( "Qt Example - Multiple Documents Interface (MDI)" ); mw.setCaption( "Qt Example - Multiple Documents Interface (MDI)" );
mw.show(); mw.show();
a.connect( a, Qt.SIGNAL("lastWindowClosed()"), a, Qt.SLOT("quit()") ); a.connect( a, Qt.TQ_SIGNAL("lastWindowClosed()"), a, Qt.TQ_SLOT("quit()") );
int res = a.exec(); int res = a.exec();
return; return;
} }

@ -135,32 +135,32 @@ MenuExample( TQWidget parent, String name )
TQPopupMenu print = new TQPopupMenu( this ); TQPopupMenu print = new TQPopupMenu( this );
print.insertTearOffHandle(); print.insertTearOffHandle();
print.insertItem( "&Print to printer", this, SLOT("printer()") ); print.insertItem( "&Print to printer", this, TQ_SLOT("printer()") );
print.insertItem( "Print to &file", this, SLOT("file()") ); print.insertItem( "Print to &file", this, TQ_SLOT("file()") );
print.insertItem( "Print to fa&x", this, SLOT("fax()") ); print.insertItem( "Print to fa&x", this, TQ_SLOT("fax()") );
print.insertSeparator(); print.insertSeparator();
print.insertItem( "Printer &Setup", this, SLOT("printerSetup()") ); print.insertItem( "Printer &Setup", this, TQ_SLOT("printerSetup()") );
TQPopupMenu file = new TQPopupMenu( this ); TQPopupMenu file = new TQPopupMenu( this );
file.insertItem( new TQIconSet(p1), "&Open", this, SLOT("open()"), new TQKeySequence(CTRL+Key_O) ); file.insertItem( new TQIconSet(p1), "&Open", this, TQ_SLOT("open()"), new TQKeySequence(CTRL+Key_O) );
file.insertItem( new TQIconSet(p2), "&New", this, SLOT("news()"), new TQKeySequence(CTRL+Key_N) ); file.insertItem( new TQIconSet(p2), "&New", this, TQ_SLOT("news()"), new TQKeySequence(CTRL+Key_N) );
file.insertItem( new TQIconSet(p3), "&Save", this, SLOT("save()"), new TQKeySequence(CTRL+Key_S) ); file.insertItem( new TQIconSet(p3), "&Save", this, TQ_SLOT("save()"), new TQKeySequence(CTRL+Key_S) );
file.insertItem( "&Close", this, SLOT("closeDoc()"), new TQKeySequence(CTRL+Key_W) ); file.insertItem( "&Close", this, TQ_SLOT("closeDoc()"), new TQKeySequence(CTRL+Key_W) );
file.insertSeparator(); file.insertSeparator();
file.insertItem( "&Print", print, CTRL+Key_P ); file.insertItem( "&Print", print, CTRL+Key_P );
file.insertSeparator(); file.insertSeparator();
file.insertItem( "E&xit", tqApp(), SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) ); file.insertItem( "E&xit", tqApp(), TQ_SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) );
TQPopupMenu edit = new TQPopupMenu( this ); TQPopupMenu edit = new TQPopupMenu( this );
int undoID = edit.insertItem( "&Undo", this, SLOT("undo()") ); int undoID = edit.insertItem( "&Undo", this, TQ_SLOT("undo()") );
int redoID = edit.insertItem( "&Redo", this, SLOT("redo()") ); int redoID = edit.insertItem( "&Redo", this, TQ_SLOT("redo()") );
edit.setItemEnabled( undoID, false ); edit.setItemEnabled( undoID, false );
edit.setItemEnabled( redoID, false ); edit.setItemEnabled( redoID, false );
TQPopupMenu options = new TQPopupMenu( this ); TQPopupMenu options = new TQPopupMenu( this );
options.insertTearOffHandle(); options.insertTearOffHandle();
options.setCaption("Options"); options.setCaption("Options");
options.insertItem( "&Normal Font", this, SLOT("normal()") ); options.insertItem( "&Normal Font", this, TQ_SLOT("normal()") );
options.insertSeparator(); options.insertSeparator();
options.polish(); // adjust system settings options.polish(); // adjust system settings
@ -168,12 +168,12 @@ MenuExample( TQWidget parent, String name )
f.setBold( true ); f.setBold( true );
// boldID = options.insertItem( new MyMenuItem( "&Bold", f ) ); // boldID = options.insertItem( new MyMenuItem( "&Bold", f ) );
options.setAccel( new TQKeySequence(CTRL+Key_B), boldID ); options.setAccel( new TQKeySequence(CTRL+Key_B), boldID );
options.connectItem( boldID, this, SLOT("bold()") ); options.connectItem( boldID, this, TQ_SLOT("bold()") );
f = font(); f = font();
f.setUnderline( true ); f.setUnderline( true );
// underlineID = options.insertItem( new MyMenuItem( "&Underline", f ) ); // underlineID = options.insertItem( new MyMenuItem( "&Underline", f ) );
options.setAccel( new TQKeySequence(CTRL+Key_U), underlineID ); options.setAccel( new TQKeySequence(CTRL+Key_U), underlineID );
options.connectItem( underlineID, this, SLOT("underline()") ); options.connectItem( underlineID, this, TQ_SLOT("underline()") );
isBold = false; isBold = false;
isUnderline = false; isUnderline = false;
@ -181,8 +181,8 @@ MenuExample( TQWidget parent, String name )
TQPopupMenu help = new TQPopupMenu( this ); TQPopupMenu help = new TQPopupMenu( this );
help.insertItem( "&About", this, SLOT("about()"), new TQKeySequence(CTRL+Key_H) ); help.insertItem( "&About", this, TQ_SLOT("about()"), new TQKeySequence(CTRL+Key_H) );
help.insertItem( "About &Qt", this, SLOT("aboutTQt()") ); help.insertItem( "About &Qt", this, TQ_SLOT("aboutTQt()") );
menu = new TQMenuBar( this ); menu = new TQMenuBar( this );
menu.insertItem( "&File", file ); menu.insertItem( "&File", file );
@ -198,8 +198,8 @@ MenuExample( TQWidget parent, String name )
label.setLineWidth( 1 ); label.setLineWidth( 1 );
label.setAlignment( AlignCenter ); label.setAlignment( AlignCenter );
connect( this, SIGNAL("explain(String)"), connect( this, TQ_SIGNAL("explain(String)"),
label, SLOT("setText(String)") ); label, TQ_SLOT("setText(String)") );
setMinimumSize( 100, 80 ); setMinimumSize( 100, 80 );
} }

@ -32,9 +32,9 @@ Frame(TQWidget parent, String name)
{ {
super(parent, name); super(parent, name);
button1 = new TQPushButton("Simple Popup", this); button1 = new TQPushButton("Simple Popup", this);
connect ( button1, SIGNAL(" clicked()"), SLOT(" button1Clicked()") ); connect ( button1, TQ_SIGNAL(" clicked()"), TQ_SLOT(" button1Clicked()") );
button2 = new TQPushButton("Fancy Popup", this); button2 = new TQPushButton("Fancy Popup", this);
connect ( button2, SIGNAL(" pressed()"), SLOT(" button2Pressed()") ); connect ( button2, TQ_SIGNAL(" pressed()"), TQ_SLOT(" button2Pressed()") );
TQBoxLayout l = new TQHBoxLayout( this ); TQBoxLayout l = new TQHBoxLayout( this );
button1.setMaximumSize(button1.sizeHint()); button1.setMaximumSize(button1.sizeHint());
@ -54,11 +54,11 @@ Frame(TQWidget parent, String name)
popup1.setFrameStyle( WinPanel|Raised ); popup1.setFrameStyle( WinPanel|Raised );
popup1.resize(150,100); popup1.resize(150,100);
TQLineEdit tmpE = new TQLineEdit( popup1 ); TQLineEdit tmpE = new TQLineEdit( popup1 );
connect( tmpE, SIGNAL(" returnPressed()"), popup1, SLOT(" hide()") ); connect( tmpE, TQ_SIGNAL(" returnPressed()"), popup1, TQ_SLOT(" hide()") );
tmpE.setGeometry(10,10, 130, 30); tmpE.setGeometry(10,10, 130, 30);
tmpE.setFocus(); tmpE.setFocus();
TQPushButton tmpB = new TQPushButton("Click me!", popup1); TQPushButton tmpB = new TQPushButton("Click me!", popup1);
connect( tmpB, SIGNAL(" clicked()"), popup1, SLOT(" close()") ); connect( tmpB, TQ_SIGNAL(" clicked()"), popup1, TQ_SLOT(" close()") );
tmpB.setGeometry(10, 50, 130, 30); tmpB.setGeometry(10, 50, 130, 30);
// the fancier version uses its own class. It will be shown when // the fancier version uses its own class. It will be shown when
@ -73,7 +73,7 @@ Frame(TQWidget parent, String name)
// tmpE = new TQLineEdit( popup2 ); // tmpE = new TQLineEdit( popup2 );
// tmpE.setFocus(); // tmpE.setFocus();
// connect( tmpE, SIGNAL(" returnPressed()"), popup2, SLOT(" close()") ); // connect( tmpE, TQ_SIGNAL(" returnPressed()"), popup2, TQ_SLOT(" close()") );
// tmpE.setGeometry(10, 10, 130, 30); // tmpE.setGeometry(10, 10, 130, 30);
} }

@ -67,11 +67,11 @@ ProgressBar( TQWidget parent, String name )
toplayout.addMultiCellWidget( progress, 1, 1, 0, 1 ); toplayout.addMultiCellWidget( progress, 1, 1, 0, 1 );
// connect the clicked() SIGNALs of the pushbuttons to SLOTs // connect the clicked() SIGNALs of the pushbuttons to SLOTs
connect( start, SIGNAL(" clicked()"), this, SLOT(" slotStart()") ); connect( start, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" slotStart()") );
connect( reset, SIGNAL(" clicked()"), this, SLOT(" slotReset()") ); connect( reset, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" slotReset()") );
// connect the timeout() SIGNAL of the progress-timer to a SLOT // connect the timeout() TQ_SIGNAL of the progress-timer to a TQ_SLOT
connect( timer, SIGNAL(" timeout()"), this, SLOT(" slotTimeout()") ); connect( timer, TQ_SIGNAL(" timeout()"), this, TQ_SLOT(" slotTimeout()") );
// Let's start with normal speed... // Let's start with normal speed...
normal.setChecked( true ); normal.setChecked( true );
@ -83,9 +83,9 @@ ProgressBar( TQWidget parent, String name )
} }
/* /*
SLOT slotStart TQ_SLOT slotStart
* *
This SLOT is called if the user clicks start/pause/continue This slot is called if the user clicks start/pause/continue
button button
*/ */
@ -123,9 +123,9 @@ void slotStart()
} }
/* /*
SLOT slotReset TQ_SLOT slotReset
* *
This SLOT is called when the user clicks the reset button This slot is called when the user clicks the reset button
*/ */
void slotReset() void slotReset()
@ -148,9 +148,9 @@ void slotReset()
} }
/* /*
SLOT slotTimeout TQ_SLOT slotTimeout
* *
This SLOT is called each ms when the timer is This slot is called each ms when the timer is
active (== progress is running) active (== progress is running)
*/ */

@ -157,10 +157,10 @@ FontDisplayer( TQWidget parent, String name )
controls.addSeparator(); controls.addSeparator();
TQPushButton fontbutton = new TQPushButton(tr("Font..."), controls); TQPushButton fontbutton = new TQPushButton(tr("Font..."), controls);
connect(row,SIGNAL("valueChanged(int)"),table,SLOT("setRow(int)")); connect(row,TQ_SIGNAL("valueChanged(int)"),table,TQ_SLOT("setRow(int)"));
connect(fontbutton, SIGNAL("clicked()"), table, SLOT("chooseFont()")); connect(fontbutton, TQ_SIGNAL("clicked()"), table, TQ_SLOT("chooseFont()"));
connect(table,SIGNAL("fontInformation(String)"), connect(table,TQ_SIGNAL("fontInformation(String)"),
statusBar(),SLOT("message(String)")); statusBar(),TQ_SLOT("message(String)"));
table.setRow(0); table.setRow(0);
setCentralWidget(table); setCentralWidget(table);
} }

@ -57,11 +57,11 @@ MagWidget( TQWidget parent, String name )
zoom = new TQComboBox( false, this ); zoom = new TQComboBox( false, this );
zoom.insertStrList( zoomfactors, 9 ); zoom.insertStrList( zoomfactors, 9 );
connect( zoom, SIGNAL("activated(int)"), SLOT("setZoom(int)") ); connect( zoom, TQ_SIGNAL("activated(int)"), TQ_SLOT("setZoom(int)") );
refresh = new TQComboBox( false, this ); refresh = new TQComboBox( false, this );
refresh.insertStrList( refreshrates, 9 ); refresh.insertStrList( refreshrates, 9 );
connect( refresh, SIGNAL("activated(int)"), SLOT("setRefresh(int)") ); connect( refresh, TQ_SIGNAL("activated(int)"), TQ_SLOT("setRefresh(int)") );
for( n=0; n<9; n++) { for( n=0; n<9; n++) {
int w2 = zoom.fontMetrics().width( zoomfactors[n] ); int w2 = zoom.fontMetrics().width( zoomfactors[n] );
@ -78,20 +78,20 @@ MagWidget( TQWidget parent, String name )
refresh.setGeometry( x, 2, w+30, 20 ); refresh.setGeometry( x, 2, w+30, 20 );
saveButton = new TQPushButton( this ); saveButton = new TQPushButton( this );
connect( saveButton, SIGNAL("clicked()"), this, SLOT("save()") ); connect( saveButton, TQ_SIGNAL("clicked()"), this, TQ_SLOT("save()") );
saveButton.setText( "Save" ); saveButton.setText( "Save" );
saveButton.setGeometry( x+w+30+2, 2, saveButton.setGeometry( x+w+30+2, 2,
10+saveButton.fontMetrics().width("Save"), 20 ); 10+saveButton.fontMetrics().width("Save"), 20 );
multiSaveButton = new TQPushButton( this ); multiSaveButton = new TQPushButton( this );
multiSaveButton.setToggleButton(true); multiSaveButton.setToggleButton(true);
connect( multiSaveButton, SIGNAL("clicked()"), this, SLOT("multiSave()") ); connect( multiSaveButton, TQ_SIGNAL("clicked()"), this, TQ_SLOT("multiSave()") );
multiSaveButton.setText( "MultiSave" ); multiSaveButton.setText( "MultiSave" );
multiSaveButton.setGeometry( saveButton.geometry().right() + 2, 2, multiSaveButton.setGeometry( saveButton.geometry().right() + 2, 2,
10+multiSaveButton.fontMetrics().width("MultiSave"), 20 ); 10+multiSaveButton.fontMetrics().width("MultiSave"), 20 );
quitButton = new TQPushButton( this ); quitButton = new TQPushButton( this );
connect( quitButton, SIGNAL("clicked()"), tqApp(), SLOT("quit()") ); connect( quitButton, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()") );
quitButton.setText( "Quit" ); quitButton.setText( "Quit" );
quitButton.setGeometry( multiSaveButton.geometry().right() + 2, 2, quitButton.setGeometry( multiSaveButton.geometry().right() + 2, 2,
10+quitButton.fontMetrics().width("Quit"), 20 ); 10+quitButton.fontMetrics().width("Quit"), 20 );

@ -46,35 +46,35 @@ Editor( TQWidget parent , String name )
TQPopupMenu file = new TQPopupMenu(this); TQPopupMenu file = new TQPopupMenu(this);
m.insertItem( "&File", file ); m.insertItem( "&File", file );
file.insertItem( "&New", this, SLOT("newDoc()"), new TQKeySequence(ALT+Key_N) ); file.insertItem( "&New", this, TQ_SLOT("newDoc()"), new TQKeySequence(ALT+Key_N) );
file.insertItem( "&Open...", this, SLOT("load()"), new TQKeySequence(ALT+Key_O) ); file.insertItem( "&Open...", this, TQ_SLOT("load()"), new TQKeySequence(ALT+Key_O) );
file.insertItem( "&Save...", this, SLOT("save()"), new TQKeySequence(ALT+Key_S) ); file.insertItem( "&Save...", this, TQ_SLOT("save()"), new TQKeySequence(ALT+Key_S) );
file.insertSeparator(); file.insertSeparator();
open_as = new TQPopupMenu(file); open_as = new TQPopupMenu(file);
file.insertItem( "Open &As", open_as ); file.insertItem( "Open &As", open_as );
save_as = new TQPopupMenu(file); save_as = new TQPopupMenu(file);
file.insertItem( "Sa&ve As", save_as ); file.insertItem( "Sa&ve As", save_as );
file.insertItem( "Add &Encoding", this, SLOT("addEncoding()") ); file.insertItem( "Add &Encoding", this, TQ_SLOT("addEncoding()") );
file.insertSeparator(); file.insertSeparator();
file.insertItem( "&Print...", this, SLOT("print()"), new TQKeySequence(ALT+Key_P) ); file.insertItem( "&Print...", this, TQ_SLOT("print()"), new TQKeySequence(ALT+Key_P) );
file.insertSeparator(); file.insertSeparator();
file.insertItem( "&Close", this, SLOT("close()"),new TQKeySequence(ALT+Key_W) ); file.insertItem( "&Close", this, TQ_SLOT("close()"),new TQKeySequence(ALT+Key_W) );
file.insertItem( "&Quit", tqApp(), SLOT("closeAllWindows()"), new TQKeySequence(ALT+Key_Q) ); file.insertItem( "&Quit", tqApp(), TQ_SLOT("closeAllWindows()"), new TQKeySequence(ALT+Key_Q) );
connect( save_as, SIGNAL("activated(int)"), this, SLOT("saveAsEncoding(int)") ); connect( save_as, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("saveAsEncoding(int)") );
connect( open_as, SIGNAL("activated(int)"), this, SLOT("openAsEncoding(int)") ); connect( open_as, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("openAsEncoding(int)") );
rebuildCodecList(); rebuildCodecList();
TQPopupMenu edit = new TQPopupMenu(m); TQPopupMenu edit = new TQPopupMenu(m);
m.insertItem( "&Edit", edit ); m.insertItem( "&Edit", edit );
edit.insertItem( "To &Uppercase", this, SLOT("toUpper()"), new TQKeySequence(ALT+Key_U) ); edit.insertItem( "To &Uppercase", this, TQ_SLOT("toUpper()"), new TQKeySequence(ALT+Key_U) );
edit.insertItem( "To &Lowercase", this, SLOT("toLower()"), new TQKeySequence(ALT+Key_L) ); edit.insertItem( "To &Lowercase", this, TQ_SLOT("toLower()"), new TQKeySequence(ALT+Key_L) );
edit.insertSeparator(); edit.insertSeparator();
edit.insertItem( "&Select Font" , this, SLOT("getFont()"), new TQKeySequence(ALT+Key_F) ); edit.insertItem( "&Select Font" , this, TQ_SLOT("getFont()"), new TQKeySequence(ALT+Key_F) );
changed = false; changed = false;
e = new TQMultiLineEdit( this, "editor" ); e = new TQMultiLineEdit( this, "editor" );
connect( e, SIGNAL(" textChanged()"), this, SLOT(" textChanged()") ); connect( e, TQ_SIGNAL(" textChanged()"), this, TQ_SLOT(" textChanged()") );
// We use Unifont - if you have it installed you'll see all // We use Unifont - if you have it installed you'll see all
// Unicode character glyphs. // Unicode character glyphs.

@ -32,7 +32,7 @@ public static void main(String[] args)
e.show(); e.show();
} }
} }
a.connect(a, Qt.SIGNAL("lastWindowClosed()"), a, Qt.SLOT("quit()") ); a.connect(a, Qt.TQ_SIGNAL("lastWindowClosed()"), a, Qt.TQ_SLOT("quit()") );
a.exec(); a.exec();
return; return;
} }

@ -61,7 +61,7 @@ RangeControls( TQWidget parent, String name )
TQLCDNumber lcd2 = new TQLCDNumber( 2, cell3 ); TQLCDNumber lcd2 = new TQLCDNumber( 2, cell3 );
lcd2.display( 33 ); lcd2.display( 33 );
lcd2.setSegmentStyle( TQLCDNumber.Filled ); lcd2.setSegmentStyle( TQLCDNumber.Filled );
connect( hslider, SIGNAL(" valueChanged( int )"), lcd2, SLOT(" display( int )") ); connect( hslider, TQ_SIGNAL(" valueChanged( int )"), lcd2, TQ_SLOT(" display( int )") );
TQHBox cell4 = new TQHBox( row2 ); TQHBox cell4 = new TQHBox( row2 );
cell4.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken ); cell4.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken );
@ -69,6 +69,6 @@ RangeControls( TQWidget parent, String name )
TQSlider vslider = new TQSlider( 0, 64, 1, 8, Qt.Vertical, cell4 ); TQSlider vslider = new TQSlider( 0, 64, 1, 8, Qt.Vertical, cell4 );
TQLCDNumber lcd3 = new TQLCDNumber( 3, cell4 ); TQLCDNumber lcd3 = new TQLCDNumber( 3, cell4 );
lcd3.display( 8 ); lcd3.display( 8 );
connect( vslider, SIGNAL(" valueChanged( int )"), lcd3, SLOT(" display( int )") ); connect( vslider, TQ_SIGNAL(" valueChanged( int )"), lcd3, TQ_SLOT(" display( int )") );
} }
} }

@ -108,9 +108,9 @@ MyRichText( TQWidget parent, String name )
bPrev.setEnabled( false ); bPrev.setEnabled( false );
connect( bClose, SIGNAL(" clicked()"), tqApp(), SLOT(" quit()") ); connect( bClose, TQ_SIGNAL(" clicked()"), tqApp(), TQ_SLOT(" quit()") );
connect( bPrev, SIGNAL(" clicked()"), this, SLOT(" prev()") ); connect( bPrev, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" prev()") );
connect( bNext, SIGNAL(" clicked()"), this, SLOT(" next()") ); connect( bNext, TQ_SIGNAL(" clicked()"), this, TQ_SLOT(" next()") );
num = 0; num = 0;
} }

@ -24,12 +24,12 @@ Rot13()
{ {
left = new TQMultiLineEdit( this, "left" ); left = new TQMultiLineEdit( this, "left" );
right = new TQMultiLineEdit( this, "right" ); right = new TQMultiLineEdit( this, "right" );
connect( left, SIGNAL("textChanged()"), this, SLOT("changeRight()") ); connect( left, TQ_SIGNAL("textChanged()"), this, TQ_SLOT("changeRight()") );
connect( right, SIGNAL("textChanged()"), this, SLOT("changeLeft()") ); connect( right, TQ_SIGNAL("textChanged()"), this, TQ_SLOT("changeLeft()") );
TQPushButton quit = new TQPushButton( "&Quit", this ); TQPushButton quit = new TQPushButton( "&Quit", this );
quit.setFocusPolicy( NoFocus ); quit.setFocusPolicy( NoFocus );
connect( quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()") ); connect( quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()") );
TQGridLayout l = new TQGridLayout( this, 2, 2, 5 ); TQGridLayout l = new TQGridLayout( this, 2, 2, 5 );
l.addWidget( left, 0, 0 ); l.addWidget( left, 0, 0 );

@ -153,24 +153,24 @@ Scribble( TQWidget parent, String name )
TQToolBar tools = new TQToolBar( this ); TQToolBar tools = new TQToolBar( this );
bSave = new TQToolButton( new TQIconSet(), "Save", "Save as PNG image", this, SLOT(" slotSave()"), tools ); bSave = new TQToolButton( new TQIconSet(), "Save", "Save as PNG image", this, TQ_SLOT(" slotSave()"), tools );
bSave.setText( "Save as..." ); bSave.setText( "Save as..." );
tools.addSeparator(); tools.addSeparator();
bPColor = new TQToolButton( new TQIconSet(), "Choose Pen Color", "Choose Pen Color", this, SLOT(" slotColor()"), tools ); bPColor = new TQToolButton( new TQIconSet(), "Choose Pen Color", "Choose Pen Color", this, TQ_SLOT(" slotColor()"), tools );
bPColor.setText( "Choose Pen Color..." ); bPColor.setText( "Choose Pen Color..." );
tools.addSeparator(); tools.addSeparator();
bPWidth = new TQSpinBox( 1, 20, 1, tools ); bPWidth = new TQSpinBox( 1, 20, 1, tools );
TQToolTip.add( bPWidth, "Choose Pen Width" ); TQToolTip.add( bPWidth, "Choose Pen Width" );
connect( bPWidth, SIGNAL(" valueChanged( int )"), this, SLOT(" slotWidth( int )") ); connect( bPWidth, TQ_SIGNAL(" valueChanged( int )"), this, TQ_SLOT(" slotWidth( int )") );
bPWidth.setValue( 3 ); bPWidth.setValue( 3 );
tools.addSeparator(); tools.addSeparator();
bClear = new TQToolButton( new TQIconSet(), "Clear Screen", "Clear Screen", this, SLOT(" slotClear()"), tools ); bClear = new TQToolButton( new TQIconSet(), "Clear Screen", "Clear Screen", this, TQ_SLOT(" slotClear()"), tools );
bClear.setText( "Clear Screen" ); bClear.setText( "Clear Screen" );
} }

@ -54,23 +54,23 @@ ImageTextEditor( TQImage i, TQWidget parent, String name, int f )
TQPushButton cancel = new TQPushButton("Cancel",hbox); TQPushButton cancel = new TQPushButton("Cancel",hbox);
TQPushButton ok = new TQPushButton("OK",hbox); TQPushButton ok = new TQPushButton("OK",hbox);
connect(add,SIGNAL("clicked()"), connect(add,TQ_SIGNAL("clicked()"),
this,SLOT("addText()")); this,TQ_SLOT("addText()"));
connect(remove,SIGNAL("clicked()"), connect(remove,TQ_SIGNAL("clicked()"),
this,SLOT("removeText()")); this,TQ_SLOT("removeText()"));
connect(ok,SIGNAL("clicked()"), connect(ok,TQ_SIGNAL("clicked()"),
this,SLOT("accept()")); this,TQ_SLOT("accept()"));
connect(cancel,SIGNAL("clicked()"), connect(cancel,TQ_SIGNAL("clicked()"),
this,SLOT("reject()")); this,TQ_SLOT("reject()"));
connect(languages,SIGNAL("activated(int)"), connect(languages,TQ_SIGNAL("activated(int)"),
this,SLOT("updateText()")); this,TQ_SLOT("updateText()"));
connect(keys,SIGNAL("activated(int)"), connect(keys,TQ_SIGNAL("activated(int)"),
this,SLOT("updateText()")); this,TQ_SLOT("updateText()"));
imageChanged(); imageChanged();
} }

@ -73,32 +73,32 @@ ImageViewer( TQWidget parent, String name, int wFlags )
saveimage.insertItem( f ); saveimage.insertItem( f );
savepixmap.insertItem( f ); savepixmap.insertItem( f );
} }
connect( saveimage, SIGNAL("activated(int)"), this, SLOT("saveImage(int)") ); connect( saveimage, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("saveImage(int)") );
connect( savepixmap, SIGNAL("activated(int)"), this, SLOT("savePixmap(int)") ); connect( savepixmap, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("savePixmap(int)") );
file = new TQPopupMenu( menubar ); file = new TQPopupMenu( menubar );
menubar.insertItem( "&File", file ); menubar.insertItem( "&File", file );
file.insertItem( "&New window", this, SLOT("newWindow()"), new TQKeySequence(CTRL+Key_N) ); file.insertItem( "&New window", this, TQ_SLOT("newWindow()"), new TQKeySequence(CTRL+Key_N) );
file.insertItem( "&Open...", this, SLOT("openFile()"), new TQKeySequence(CTRL+Key_O) ); file.insertItem( "&Open...", this, TQ_SLOT("openFile()"), new TQKeySequence(CTRL+Key_O) );
si = file.insertItem( "Save image", saveimage ); si = file.insertItem( "Save image", saveimage );
sp = file.insertItem( "Save pixmap", savepixmap ); sp = file.insertItem( "Save pixmap", savepixmap );
file.insertSeparator(); file.insertSeparator();
file.insertItem( "E&xit", tqApp(), SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) ); file.insertItem( "E&xit", tqApp(), TQ_SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) );
edit = new TQPopupMenu( menubar ); edit = new TQPopupMenu( menubar );
menubar.insertItem( "&Edit", edit ); menubar.insertItem( "&Edit", edit );
edit.insertItem("&Copy", this, SLOT("copy()"), new TQKeySequence(CTRL+Key_C)); edit.insertItem("&Copy", this, TQ_SLOT("copy()"), new TQKeySequence(CTRL+Key_C));
edit.insertItem("&Paste", this, SLOT("paste()"), new TQKeySequence(CTRL+Key_V)); edit.insertItem("&Paste", this, TQ_SLOT("paste()"), new TQKeySequence(CTRL+Key_V));
edit.insertSeparator(); edit.insertSeparator();
edit.insertItem("&Horizontal flip", this, SLOT("hFlip()"), new TQKeySequence(ALT+Key_H)); edit.insertItem("&Horizontal flip", this, TQ_SLOT("hFlip()"), new TQKeySequence(ALT+Key_H));
edit.insertItem("&Vertical flip", this, SLOT("vFlip()"), new TQKeySequence(ALT+Key_V)); edit.insertItem("&Vertical flip", this, TQ_SLOT("vFlip()"), new TQKeySequence(ALT+Key_V));
edit.insertItem("&Rotate 180", this, SLOT("rot180()"), new TQKeySequence(ALT+Key_R)); edit.insertItem("&Rotate 180", this, TQ_SLOT("rot180()"), new TQKeySequence(ALT+Key_R));
edit.insertSeparator(); edit.insertSeparator();
edit.insertItem("&Text...", this, SLOT("editText()")); edit.insertItem("&Text...", this, TQ_SLOT("editText()"));
edit.insertSeparator(); edit.insertSeparator();
t1 = edit.insertItem( "Convert to &1 bit", this, SLOT("to1Bit()") ); t1 = edit.insertItem( "Convert to &1 bit", this, TQ_SLOT("to1Bit()") );
t8 = edit.insertItem( "Convert to &8 bit", this, SLOT("to8Bit()") ); t8 = edit.insertItem( "Convert to &8 bit", this, TQ_SLOT("to8Bit()") );
t32 = edit.insertItem( "Convert to &32 bit", this, SLOT("to32Bit()") ); t32 = edit.insertItem( "Convert to &32 bit", this, TQ_SLOT("to32Bit()") );
options = new TQPopupMenu( menubar ); options = new TQPopupMenu( menubar );
menubar.insertItem( "&Options", options ); menubar.insertItem( "&Options", options );
@ -128,9 +128,9 @@ ImageViewer( TQWidget parent, String name, int wFlags )
TQPopupMenu help = new TQPopupMenu( menubar ); TQPopupMenu help = new TQPopupMenu( menubar );
menubar.insertItem( "&Help", help ); menubar.insertItem( "&Help", help );
help.insertItem( "Help!", this, SLOT("giveHelp()"), new TQKeySequence(CTRL+Key_H) ); help.insertItem( "Help!", this, TQ_SLOT("giveHelp()"), new TQKeySequence(CTRL+Key_H) );
connect( options, SIGNAL("activated(int)"), this, SLOT("doOption(int)") ); connect( options, TQ_SIGNAL("activated(int)"), this, TQ_SLOT("doOption(int)") );
status = new TQLabel(this); status = new TQLabel(this);
status.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken ); status.setFrameStyle( TQFrame.WinPanel | TQFrame.Sunken );

@ -47,7 +47,7 @@ public static void main(String[] args)
} }
} }
TQObject.connect(Qt.qApp(), Qt.SIGNAL("lastWindowClosed()"), Qt.qApp(), Qt.SLOT("quit()")); TQObject.connect(Qt.qApp(), Qt.TQ_SIGNAL("lastWindowClosed()"), Qt.qApp(), Qt.TQ_SLOT("quit()"));
a.exec(); a.exec();
return; return;

@ -49,15 +49,15 @@ SoundPlayer()
} }
TQPopupMenu file = new TQPopupMenu(this); TQPopupMenu file = new TQPopupMenu(this);
file.insertItem("Play &1", this, SLOT("doPlay1()"), new TQKeySequence(CTRL+Key_1)); file.insertItem("Play &1", this, TQ_SLOT("doPlay1()"), new TQKeySequence(CTRL+Key_1));
file.insertItem("Play &2", this, SLOT("doPlay2()"), new TQKeySequence(CTRL+Key_2)); file.insertItem("Play &2", this, TQ_SLOT("doPlay2()"), new TQKeySequence(CTRL+Key_2));
file.insertItem("Play from bucket &3", this, SLOT("doPlay3()"), new TQKeySequence(CTRL+Key_3)); file.insertItem("Play from bucket &3", this, TQ_SLOT("doPlay3()"), new TQKeySequence(CTRL+Key_3));
file.insertItem("Play from bucket &4", this, SLOT("doPlay4()"), new TQKeySequence(CTRL+Key_4)); file.insertItem("Play from bucket &4", this, TQ_SLOT("doPlay4()"), new TQKeySequence(CTRL+Key_4));
file.insertSeparator(); file.insertSeparator();
file.insertItem("Play 3 and 4 together", this, SLOT("doPlay34()")); file.insertItem("Play 3 and 4 together", this, TQ_SLOT("doPlay34()"));
file.insertItem("Play all together", this, SLOT("doPlay1234()")); file.insertItem("Play all together", this, TQ_SLOT("doPlay1234()"));
file.insertSeparator(); file.insertSeparator();
file.insertItem("E&xit", tqApp(), SLOT("quit()")); file.insertItem("E&xit", tqApp(), TQ_SLOT("quit()"));
menuBar().insertItem("&File", file); menuBar().insertItem("&File", file);
} }

@ -27,7 +27,7 @@ TabDialog( TQWidget parent, String name, String _filename )
setupTab2(); setupTab2();
setupTab3(); setupTab3();
connect( this, SIGNAL(" applyButtonPressed()"), tqApp(), SLOT(" quit()") ); connect( this, TQ_SIGNAL(" applyButtonPressed()"), tqApp(), TQ_SLOT(" quit()") );
} }
void setupTab1() void setupTab1()

@ -19,7 +19,7 @@ public static void main(String[] args)
mw.setCaption( "Richtext Editor" ); mw.setCaption( "Richtext Editor" );
mw.resize( 640, 800 ); mw.resize( 640, 800 );
mw.show(); mw.show();
a.connect( a, Qt.SIGNAL(" lastWindowClosed()"), a, Qt.SLOT(" quit()") ); a.connect( a, Qt.TQ_SIGNAL(" lastWindowClosed()"), a, Qt.TQ_SLOT(" quit()") );
a.exec(); a.exec();
return; return;
} }

@ -44,8 +44,8 @@ TextEdit( TQWidget parent, String name )
setupTextActions(); setupTextActions();
tabWidget = new TQTabWidget( this ); tabWidget = new TQTabWidget( this );
connect( tabWidget, SIGNAL(" currentChanged( TQWidget )"), connect( tabWidget, TQ_SIGNAL(" currentChanged( TQWidget )"),
this, SLOT(" editorChanged( TQWidget )") ); this, TQ_SLOT(" editorChanged( TQWidget )") );
setCentralWidget( tabWidget ); setCentralWidget( tabWidget );
if ( tqApp().args().length == 0 ) { if ( tqApp().args().length == 0 ) {
@ -65,31 +65,31 @@ void setupFileActions()
TQAction a; TQAction a;
a = new TQAction( tr( "New" ), new TQIconSet(new TQPixmap( "filenew.xpm" )), tr( "&New..." ), new TQKeySequence(CTRL + Key_N), this, "fileNew" ); a = new TQAction( tr( "New" ), new TQIconSet(new TQPixmap( "filenew.xpm" )), tr( "&New..." ), new TQKeySequence(CTRL + Key_N), this, "fileNew" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileNew()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" fileNew()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
a = new TQAction( tr( "Open" ), new TQIconSet(new TQPixmap( "fileopen.xpm" )), tr( "&Open..." ), new TQKeySequence(CTRL + Key_O), this, "fileOpen" ); a = new TQAction( tr( "Open" ), new TQIconSet(new TQPixmap( "fileopen.xpm" )), tr( "&Open..." ), new TQKeySequence(CTRL + Key_O), this, "fileOpen" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileOpen()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" fileOpen()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
menu.insertSeparator(); menu.insertSeparator();
a = new TQAction( tr( "Save" ), new TQIconSet(new TQPixmap( "filesave.xpm" )), tr( "&Save..." ), new TQKeySequence(CTRL + Key_S), this, "fileSave" ); a = new TQAction( tr( "Save" ), new TQIconSet(new TQPixmap( "filesave.xpm" )), tr( "&Save..." ), new TQKeySequence(CTRL + Key_S), this, "fileSave" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileSave()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" fileSave()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
a = new TQAction( tr( "Save As" ), new TQIconSet(new TQPixmap()), tr( "Save &As..." ), new TQKeySequence(0), this, "fileSaveAs" ); a = new TQAction( tr( "Save As" ), new TQIconSet(new TQPixmap()), tr( "Save &As..." ), new TQKeySequence(0), this, "fileSaveAs" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileSaveAs()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" fileSaveAs()") );
a.addTo( menu ); a.addTo( menu );
menu.insertSeparator(); menu.insertSeparator();
a = new TQAction( tr( "Print" ), new TQIconSet(new TQPixmap( "fileprint.xpm" )), tr( "&Print..." ), new TQKeySequence(CTRL + Key_P), this, "filePrint" ); a = new TQAction( tr( "Print" ), new TQIconSet(new TQPixmap( "fileprint.xpm" )), tr( "&Print..." ), new TQKeySequence(CTRL + Key_P), this, "filePrint" );
connect( a, SIGNAL(" activated()"), this, SLOT(" filePrint()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" filePrint()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
a = new TQAction( tr( "Close" ), new TQIconSet(new TQPixmap()), tr( "&Close" ), new TQKeySequence(0), this, "fileClose" ); a = new TQAction( tr( "Close" ), new TQIconSet(new TQPixmap()), tr( "&Close" ), new TQKeySequence(0), this, "fileClose" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileClose()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" fileClose()") );
a.addTo( menu ); a.addTo( menu );
a = new TQAction( tr( "Exit" ), new TQIconSet(new TQPixmap()), tr( "E&xit" ), new TQKeySequence(0), this, "fileExit" ); a = new TQAction( tr( "Exit" ), new TQIconSet(new TQPixmap()), tr( "E&xit" ), new TQKeySequence(0), this, "fileExit" );
connect( a, SIGNAL(" activated()"), this, SLOT(" fileExit()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" fileExit()") );
a.addTo( menu ); a.addTo( menu );
} }
@ -102,24 +102,24 @@ void setupEditActions()
TQAction a; TQAction a;
a = new TQAction( tr( "Undo" ), new TQIconSet(new TQPixmap( "editundo.xpm" )), tr( "&Undo" ), new TQKeySequence(CTRL + Key_Z), this, "editUndo" ); a = new TQAction( tr( "Undo" ), new TQIconSet(new TQPixmap( "editundo.xpm" )), tr( "&Undo" ), new TQKeySequence(CTRL + Key_Z), this, "editUndo" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editUndo()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" editUndo()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
a = new TQAction( tr( "Redo" ), new TQIconSet(new TQPixmap( "editredo.xpm" )), tr( "&Redo" ), new TQKeySequence(CTRL + Key_Y), this, "editRedo" ); a = new TQAction( tr( "Redo" ), new TQIconSet(new TQPixmap( "editredo.xpm" )), tr( "&Redo" ), new TQKeySequence(CTRL + Key_Y), this, "editRedo" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editRedo()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" editRedo()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
menu.insertSeparator(); menu.insertSeparator();
a = new TQAction( tr( "Copy" ), new TQIconSet(new TQPixmap( "editcopy.xpm" )), tr( "&Copy" ), new TQKeySequence(CTRL + Key_C), this, "editCopy" ); a = new TQAction( tr( "Copy" ), new TQIconSet(new TQPixmap( "editcopy.xpm" )), tr( "&Copy" ), new TQKeySequence(CTRL + Key_C), this, "editCopy" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editCopy()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" editCopy()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
a = new TQAction( tr( "Cut" ), new TQIconSet(new TQPixmap( "editcut.xpm" )), tr( "Cu&t" ), new TQKeySequence(CTRL + Key_X), this, "editCut" ); a = new TQAction( tr( "Cut" ), new TQIconSet(new TQPixmap( "editcut.xpm" )), tr( "Cu&t" ), new TQKeySequence(CTRL + Key_X), this, "editCut" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editCut()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" editCut()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
a = new TQAction( tr( "Paste" ), new TQIconSet(new TQPixmap( "editpaste.xpm" )), tr( "&Paste" ), new TQKeySequence(CTRL + Key_V), this, "editPaste" ); a = new TQAction( tr( "Paste" ), new TQIconSet(new TQPixmap( "editpaste.xpm" )), tr( "&Paste" ), new TQKeySequence(CTRL + Key_V), this, "editPaste" );
connect( a, SIGNAL(" activated()"), this, SLOT(" editPaste()") ); connect( a, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" editPaste()") );
a.addTo( tb ); a.addTo( tb );
a.addTo( menu ); a.addTo( menu );
} }
@ -139,36 +139,36 @@ void setupTextActions()
comboStyle.insertItem( "Ordered List (Decimal)" ); comboStyle.insertItem( "Ordered List (Decimal)" );
comboStyle.insertItem( "Ordered List (Alpha lower)" ); comboStyle.insertItem( "Ordered List (Alpha lower)" );
comboStyle.insertItem( "Ordered List (Alpha upper)" ); comboStyle.insertItem( "Ordered List (Alpha upper)" );
connect( comboStyle, SIGNAL(" activated( int )"), connect( comboStyle, TQ_SIGNAL(" activated( int )"),
this, SLOT(" textStyle( int )") ); this, TQ_SLOT(" textStyle( int )") );
comboFont = new TQComboBox( true, tb ); comboFont = new TQComboBox( true, tb );
TQFontDatabase db = new TQFontDatabase(); TQFontDatabase db = new TQFontDatabase();
comboFont.insertStringList( (String[]) db.families().toArray(new String[0]) ); comboFont.insertStringList( (String[]) db.families().toArray(new String[0]) );
connect( comboFont, SIGNAL(" activated( String )"), connect( comboFont, TQ_SIGNAL(" activated( String )"),
this, SLOT(" textFamily( String )") ); this, TQ_SLOT(" textFamily( String )") );
comboFont.lineEdit().setText( TQApplication.font().family() ); comboFont.lineEdit().setText( TQApplication.font().family() );
comboSize = new TQComboBox( true, tb ); comboSize = new TQComboBox( true, tb );
int[] sizes = db.standardSizes(); int[] sizes = db.standardSizes();
for (int i = 0; i < sizes.length; i++ ) for (int i = 0; i < sizes.length; i++ )
comboSize.insertItem( Integer.toString(sizes[i]) ); comboSize.insertItem( Integer.toString(sizes[i]) );
connect( comboSize, SIGNAL(" activated( String )"), connect( comboSize, TQ_SIGNAL(" activated( String )"),
this, SLOT(" textSize( String )") ); this, TQ_SLOT(" textSize( String )") );
comboSize.lineEdit().setText( Integer.toString( TQApplication.font().pointSize() ) ); comboSize.lineEdit().setText( Integer.toString( TQApplication.font().pointSize() ) );
actionTextBold = new TQAction( tr( "Bold" ), new TQIconSet(new TQPixmap( "textbold.xpm" )), tr( "&Bold" ), new TQKeySequence(CTRL + Key_B), this, "textBold" ); actionTextBold = new TQAction( tr( "Bold" ), new TQIconSet(new TQPixmap( "textbold.xpm" )), tr( "&Bold" ), new TQKeySequence(CTRL + Key_B), this, "textBold" );
connect( actionTextBold, SIGNAL(" activated()"), this, SLOT(" textBold()") ); connect( actionTextBold, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" textBold()") );
actionTextBold.addTo( tb ); actionTextBold.addTo( tb );
actionTextBold.addTo( menu ); actionTextBold.addTo( menu );
actionTextBold.setToggleAction( true ); actionTextBold.setToggleAction( true );
actionTextItalic = new TQAction( tr( "Italic" ), new TQIconSet(new TQPixmap( "textitalic.xpm" )), tr( "&Italic" ), new TQKeySequence(CTRL + Key_I), this, "textItalic" ); actionTextItalic = new TQAction( tr( "Italic" ), new TQIconSet(new TQPixmap( "textitalic.xpm" )), tr( "&Italic" ), new TQKeySequence(CTRL + Key_I), this, "textItalic" );
connect( actionTextItalic, SIGNAL(" activated()"), this, SLOT(" textItalic()") ); connect( actionTextItalic, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" textItalic()") );
actionTextItalic.addTo( tb ); actionTextItalic.addTo( tb );
actionTextItalic.addTo( menu ); actionTextItalic.addTo( menu );
actionTextItalic.setToggleAction( true ); actionTextItalic.setToggleAction( true );
actionTextUnderline = new TQAction( tr( "Underline" ), new TQIconSet(new TQPixmap( "textunder.xpm" )), tr( "&Underline" ), new TQKeySequence(CTRL + Key_U), this, "textUnderline" ); actionTextUnderline = new TQAction( tr( "Underline" ), new TQIconSet(new TQPixmap( "textunder.xpm" )), tr( "&Underline" ), new TQKeySequence(CTRL + Key_U), this, "textUnderline" );
connect( actionTextUnderline, SIGNAL(" activated()"), this, SLOT(" textUnderline()") ); connect( actionTextUnderline, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" textUnderline()") );
actionTextUnderline.addTo( tb ); actionTextUnderline.addTo( tb );
actionTextUnderline.addTo( menu ); actionTextUnderline.addTo( menu );
actionTextUnderline.setToggleAction( true ); actionTextUnderline.setToggleAction( true );
@ -176,7 +176,7 @@ void setupTextActions()
TQActionGroup grp = new TQActionGroup( this ); TQActionGroup grp = new TQActionGroup( this );
grp.setExclusive( true ); grp.setExclusive( true );
connect( grp, SIGNAL(" selected( TQAction )"), this, SLOT(" textAlign( TQAction )") ); connect( grp, TQ_SIGNAL(" selected( TQAction )"), this, TQ_SLOT(" textAlign( TQAction )") );
actionAlignLeft = new TQAction( tr( "Left" ), new TQIconSet(new TQPixmap( "textleft.xpm" )), tr( "&Left" ), new TQKeySequence(CTRL + Key_L), grp, "textLeft" ); actionAlignLeft = new TQAction( tr( "Left" ), new TQIconSet(new TQPixmap( "textleft.xpm" )), tr( "&Left" ), new TQKeySequence(CTRL + Key_L), grp, "textLeft" );
actionAlignLeft.addTo( tb ); actionAlignLeft.addTo( tb );
@ -200,7 +200,7 @@ void setupTextActions()
TQPixmap pix = new TQPixmap( 16, 16 ); TQPixmap pix = new TQPixmap( 16, 16 );
pix.fill( black() ); pix.fill( black() );
actionTextColor = new TQAction( tr( "Color" ), new TQIconSet(pix), tr( "&Color..." ), new TQKeySequence(0), this, "textColor" ); actionTextColor = new TQAction( tr( "Color" ), new TQIconSet(pix), tr( "&Color..." ), new TQKeySequence(0), this, "textColor" );
connect( actionTextColor, SIGNAL(" activated()"), this, SLOT(" textColor()") ); connect( actionTextColor, TQ_SIGNAL(" activated()"), this, TQ_SLOT(" textColor()") );
actionTextColor.addTo( tb ); actionTextColor.addTo( tb );
actionTextColor.addTo( menu ); actionTextColor.addTo( menu );
} }
@ -232,12 +232,12 @@ TQTextEdit currentEditor()
void doConnections( TQTextEdit e ) void doConnections( TQTextEdit e )
{ {
connect( e, SIGNAL(" currentFontChanged( TQFont )"), connect( e, TQ_SIGNAL(" currentFontChanged( TQFont )"),
this, SLOT(" fontChanged( TQFont )") ); this, TQ_SLOT(" fontChanged( TQFont )") );
connect( e, SIGNAL(" currentColorChanged( TQColor )"), connect( e, TQ_SIGNAL(" currentColorChanged( TQColor )"),
this, SLOT(" colorChanged( TQColor )") ); this, TQ_SLOT(" colorChanged( TQColor )") );
connect( e, SIGNAL(" currentAlignmentChanged( int )"), connect( e, TQ_SIGNAL(" currentAlignmentChanged( int )"),
this, SLOT(" alignmentChanged( int )") ); this, TQ_SLOT(" alignmentChanged( int )") );
} }
void fileNew() void fileNew()

@ -219,7 +219,7 @@ WidgetView( TQWidget parent, String name )
// put something in it // put something in it
TQPixmap openIcon = new TQPixmap( fileopen ); TQPixmap openIcon = new TQPixmap( fileopen );
TQToolButton toolb = new TQToolButton( new TQIconSet(openIcon), "toolbutton 1", TQToolButton toolb = new TQToolButton( new TQIconSet(openIcon), "toolbutton 1",
"", this, SLOT("open()"), "", this, TQ_SLOT("open()"),
tools, "open file" ); tools, "open file" );
TQWhatsThis.add( toolb, "This is a <b>TQToolButton</b>. It lives in a " TQWhatsThis.add( toolb, "This is a <b>TQToolButton</b>. It lives in a "
+ "TQToolBar. This particular button doesn't do anything " + "TQToolBar. This particular button doesn't do anything "
@ -227,13 +227,13 @@ WidgetView( TQWidget parent, String name )
TQPixmap saveIcon = new TQPixmap( filesave ); TQPixmap saveIcon = new TQPixmap( filesave );
toolb = new TQToolButton( new TQIconSet(saveIcon), "toolbutton 2", "", toolb = new TQToolButton( new TQIconSet(saveIcon), "toolbutton 2", "",
this, SLOT("dummy()"), this, TQ_SLOT("dummy()"),
tools, "save file" ); tools, "save file" );
TQWhatsThis.add( toolb, "This is also a <b>TQToolButton</b>." ); TQWhatsThis.add( toolb, "This is also a <b>TQToolButton</b>." );
TQPixmap printIcon = new TQPixmap( fileprint ); TQPixmap printIcon = new TQPixmap( fileprint );
toolb = new TQToolButton( new TQIconSet(printIcon), "toolbutton 3", "", toolb = new TQToolButton( new TQIconSet(printIcon), "toolbutton 3", "",
this, SLOT("dummy()"), this, TQ_SLOT("dummy()"),
tools, "print file" ); tools, "print file" );
TQWhatsThis.add( toolb, "This is the third <b>TQToolButton</b>."); TQWhatsThis.add( toolb, "This is the third <b>TQToolButton</b>.");
@ -265,10 +265,10 @@ WidgetView( TQWidget parent, String name )
int id; int id;
id = popup.insertItem( "&New" ); id = popup.insertItem( "&New" );
popup.setItemEnabled( id, false ); popup.setItemEnabled( id, false );
id = popup.insertItem( new TQIconSet(openIcon), "&Open", this, SLOT(" open()") ); id = popup.insertItem( new TQIconSet(openIcon), "&Open", this, TQ_SLOT(" open()") );
popup.insertSeparator(); popup.insertSeparator();
popup.insertItem( "&Quit", tqApp(), SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) ); popup.insertItem( "&Quit", tqApp(), TQ_SLOT("quit()"), new TQKeySequence(CTRL+Key_Q) );
textStylePopup = popup = new TQPopupMenu( this ); textStylePopup = popup = new TQPopupMenu( this );
@ -294,8 +294,8 @@ WidgetView( TQWidget parent, String name )
f = font(); f = font();
f.setStrikeOut( true ); f.setStrikeOut( true );
id = popup.insertItem( new MyMenuItem( "&Strike", f ) ); id = popup.insertItem( new MyMenuItem( "&Strike", f ) );
connect( textStylePopup, SIGNAL("activated(int)"), connect( textStylePopup, TQ_SIGNAL("activated(int)"),
this, SLOT("popupSelected(int)") ); this, TQ_SLOT("popupSelected(int)") );
*/ */
// Create an analog and a digital clock // Create an analog and a digital clock
aclock = new AnalogClock( central ); aclock = new AnalogClock( central );
@ -317,7 +317,7 @@ WidgetView( TQWidget parent, String name )
TQPushButton pb; TQPushButton pb;
pb = new TQPushButton( "&Push button 1", central, "button1" ); pb = new TQPushButton( "&Push button 1", central, "button1" );
grid.addWidget( pb, 0, 0, AlignVCenter ); grid.addWidget( pb, 0, 0, AlignVCenter );
connect( pb, SIGNAL("clicked()"), SLOT("button1Clicked()") ); connect( pb, TQ_SIGNAL("clicked()"), TQ_SLOT("button1Clicked()") );
TQToolTip.add( pb, "push button 1" ); TQToolTip.add( pb, "push button 1" );
TQWhatsThis.add( pb, "This is a <b>TQPushButton</b>.<br>" TQWhatsThis.add( pb, "This is a <b>TQPushButton</b>.<br>"
+ "Click it and watch...<br>" + "Click it and watch...<br>"
@ -336,8 +336,8 @@ WidgetView( TQWidget parent, String name )
// Create a label containing a TQMovie // Create a label containing a TQMovie
movie = new TQMovie( MOVIEFILENAME ); movie = new TQMovie( MOVIEFILENAME );
movielabel = new TQLabel( central, "label0" ); movielabel = new TQLabel( central, "label0" );
movie.connectStatus(this, SLOT("movieStatus(int)")); movie.connectStatus(this, TQ_SLOT("movieStatus(int)"));
movie.connectUpdate(this, SLOT("movieUpdate(TQRect)")); movie.connectUpdate(this, TQ_SLOT("movieUpdate(TQRect)"));
movielabel.setFrameStyle( TQFrame.Box | TQFrame.Plain ); movielabel.setFrameStyle( TQFrame.Box | TQFrame.Plain );
movielabel.setMovie( movie ); movielabel.setMovie( movie );
movielabel.setFixedSize( 128+movielabel.frameWidth()*2, movielabel.setFixedSize( 128+movielabel.frameWidth()*2,
@ -367,7 +367,7 @@ WidgetView( TQWidget parent, String name )
cb[2].setText( "&Execute" ); cb[2].setText( "&Execute" );
vbox.addWidget( cb[2] ); vbox.addWidget( cb[2] );
connect( bg, SIGNAL("clicked(int)"), SLOT("checkBoxClicked(int)") ); connect( bg, TQ_SIGNAL("clicked(int)"), TQ_SLOT("checkBoxClicked(int)") );
TQToolTip.add( cb[0], "check box 1" ); TQToolTip.add( cb[0], "check box 1" );
TQToolTip.add( cb[1], "check box 2" ); TQToolTip.add( cb[1], "check box 2" );
@ -397,7 +397,7 @@ WidgetView( TQWidget parent, String name )
rb.setText( "&Short Wave" ); rb.setText( "&Short Wave" );
vbox.addWidget(rb); vbox.addWidget(rb);
connect( bg, SIGNAL("clicked(int)"), SLOT("radioButtonClicked(int)") ); connect( bg, TQ_SIGNAL("clicked(int)"), TQ_SLOT("radioButtonClicked(int)") );
TQToolTip.add( rb, "radio button 3" ); TQToolTip.add( rb, "radio button 3" );
// Create a list box // Create a list box
@ -410,7 +410,7 @@ WidgetView( TQWidget parent, String name )
lb.insertItem( str ); lb.insertItem( str );
} }
grid.addMultiCellWidget( lb, 2, 4, 0, 0 ); grid.addMultiCellWidget( lb, 2, 4, 0, 0 );
connect( lb, SIGNAL("selected(int)"), SLOT("listBoxItemSelected(int)") ); connect( lb, TQ_SIGNAL("selected(int)"), TQ_SLOT("listBoxItemSelected(int)") );
TQToolTip.add( lb, "list box" ); TQToolTip.add( lb, "list box" );
// new MyWhatsThis( lb ); // new MyWhatsThis( lb );
@ -425,7 +425,7 @@ WidgetView( TQWidget parent, String name )
sb.setFocusPolicy( TQWidget.TabFocus ); sb.setFocusPolicy( TQWidget.TabFocus );
vbox.addWidget( sb ); vbox.addWidget( sb );
connect( sb, SIGNAL("valueChanged(int)"), SLOT("sliderValueChanged(int)") ); connect( sb, TQ_SIGNAL("valueChanged(int)"), TQ_SLOT("sliderValueChanged(int)") );
TQToolTip.add( sb, "slider" ); TQToolTip.add( sb, "slider" );
TQWhatsThis.add( sb, "This is a <b>TQSlider</b>. " TQWhatsThis.add( sb, "This is a <b>TQSlider</b>. "
+ "The tick marks are optional." + "The tick marks are optional."
@ -438,8 +438,8 @@ WidgetView( TQWidget parent, String name )
combo.insertItem( "blue" ); combo.insertItem( "blue" );
combo.insertItem( "red" ); combo.insertItem( "red" );
vbox.addWidget( combo ); vbox.addWidget( combo );
connect( combo, SIGNAL("activated(int)"), connect( combo, TQ_SIGNAL("activated(int)"),
this, SLOT("comboBoxItemActivated(int)") ); this, TQ_SLOT("comboBoxItemActivated(int)") );
TQToolTip.add( combo, "read-only combo box" ); TQToolTip.add( combo, "read-only combo box" );
// Create an editable combo box // Create an editable combo box
@ -450,8 +450,8 @@ WidgetView( TQWidget parent, String name )
edCombo.insertItem( "Alterable" ); edCombo.insertItem( "Alterable" );
edCombo.insertItem( "Inconstant" ); edCombo.insertItem( "Inconstant" );
vbox.addWidget( edCombo ); vbox.addWidget( edCombo );
connect( edCombo, SIGNAL("activated(String)"), connect( edCombo, TQ_SIGNAL("activated(String)"),
this, SLOT("edComboBoxItemActivated(String)") ); this, TQ_SLOT("edComboBoxItemActivated(String)") );
TQToolTip.add( edCombo, "editable combo box" ); TQToolTip.add( edCombo, "editable combo box" );
edCombo.setAutoCompletion( true ); edCombo.setAutoCompletion( true );
@ -463,8 +463,8 @@ WidgetView( TQWidget parent, String name )
TQSpinBox spin = new TQSpinBox( 0, 10, 1, central, "spin" ); TQSpinBox spin = new TQSpinBox( 0, 10, 1, central, "spin" );
spin.setSuffix(" mm"); spin.setSuffix(" mm");
spin.setSpecialValueText( "Auto" ); spin.setSpecialValueText( "Auto" );
connect( spin, SIGNAL(" valueChanged(String)"), connect( spin, TQ_SIGNAL(" valueChanged(String)"),
SLOT(" spinBoxValueChanged(String)") ); TQ_SLOT(" spinBoxValueChanged(String)") );
TQToolTip.add( spin, "spin box" ); TQToolTip.add( spin, "spin box" );
TQWhatsThis.add( spin, "This is a <b>TQSpinBox</b>. " TQWhatsThis.add( spin, "This is a <b>TQSpinBox</b>. "
+ "You can chose values in a given range " + "You can chose values in a given range "
@ -514,8 +514,8 @@ WidgetView( TQWidget parent, String name )
grid.addMultiCellWidget( le, 4, 4, 1, 2 ); grid.addMultiCellWidget( le, 4, 4, 1, 2 );
connect( le, SIGNAL("textChanged(String)"), connect( le, TQ_SIGNAL("textChanged(String)"),
SLOT("lineEditTextChanged(String)") ); TQ_SLOT("lineEditTextChanged(String)") );
TQToolTip.add( le, "single line editor" ); TQToolTip.add( le, "single line editor" );
TQWhatsThis.add( le, "This is a <b>TQLineEdit</b>, you can enter a " TQWhatsThis.add( le, "This is a <b>TQLineEdit</b>, you can enter a "
+ "single line of text in it. " + "single line of text in it. "
@ -536,14 +536,14 @@ WidgetView( TQWidget parent, String name )
split.setOpaqueResize( true ); split.setOpaqueResize( true );
topLayout.addWidget( split, 1 ); topLayout.addWidget( split, 1 );
TQListView lv = new MyListView( split ); TQListView lv = new MyListView( split );
connect(lv, SIGNAL("selectionChanged()"), connect(lv, TQ_SIGNAL("selectionChanged()"),
this, SLOT(" selectionChanged()") ); this, TQ_SLOT(" selectionChanged()") );
connect(lv, SIGNAL("selectionChanged(TQListViewItem)"), connect(lv, TQ_SIGNAL("selectionChanged(TQListViewItem)"),
this, SLOT(" selectionChanged(TQListViewItem)") ); this, TQ_SLOT(" selectionChanged(TQListViewItem)") );
connect(lv, SIGNAL("clicked(TQListViewItem)"), connect(lv, TQ_SIGNAL("clicked(TQListViewItem)"),
this, SLOT(" clicked(TQListViewItem)") ); this, TQ_SLOT(" clicked(TQListViewItem)") );
connect(lv, SIGNAL("mySelectionChanged(TQListViewItem)"), connect(lv, TQ_SIGNAL("mySelectionChanged(TQListViewItem)"),
this, SLOT(" mySelectionChanged(TQListViewItem)") ); this, TQ_SLOT(" mySelectionChanged(TQListViewItem)") );
lv.addColumn( "One" ); lv.addColumn( "One" );
lv.addColumn( "Two" ); lv.addColumn( "Two" );
lv.setAllColumnsShowFocus( true ); lv.setAllColumnsShowFocus( true );
@ -603,7 +603,7 @@ WidgetView( TQWidget parent, String name )
TQAccel a = new TQAccel( this ); TQAccel a = new TQAccel( this );
a.connectItem( a.insertItem( new TQKeySequence(Key_F9) ), a.connectItem( a.insertItem( new TQKeySequence(Key_F9) ),
this, SLOT(" showProperties()") ); this, TQ_SLOT(" showProperties()") );
prog = new TQProgressBar( statusBar(), "progress" ); prog = new TQProgressBar( statusBar(), "progress" );
prog.setTotalSteps( 100 ); prog.setTotalSteps( 100 );

@ -30,8 +30,8 @@ Wizard( TQWidget parent, String name )
setupPage1(); setupPage1();
setupPage2(); setupPage2();
setupPage3(); setupPage3();
connect(this, SIGNAL("selected(String)"), this, SLOT("doShowPage(String)")); connect(this, TQ_SIGNAL("selected(String)"), this, TQ_SLOT("doShowPage(String)"));
connect(finishButton(), SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(finishButton(), TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
key.setFocus(); key.setFocus();
} }
@ -59,8 +59,8 @@ void setupPage1()
key.setMaxLength( 4 ); key.setMaxLength( 4 );
key.setValidator( new TQIntValidator( 1000, 9999, key ) ); key.setValidator( new TQIntValidator( 1000, 9999, key ) );
connect( key, SIGNAL(" textChanged( String )"), connect( key, TQ_SIGNAL(" textChanged( String )"),
this, SLOT(" keyChanged( String )") ); this, TQ_SLOT(" keyChanged( String )") );
addPage( page1, "Personal Key" ); addPage( page1, "Personal Key" );
@ -115,12 +115,12 @@ void setupPage2()
phone = new TQLineEdit( row4 ); phone = new TQLineEdit( row4 );
email = new TQLineEdit( row5 ); email = new TQLineEdit( row5 );
connect( firstName, SIGNAL(" textChanged( String )"), connect( firstName, TQ_SIGNAL(" textChanged( String )"),
this, SLOT(" dataChanged( String )") ); this, TQ_SLOT(" dataChanged( String )") );
connect( lastName, SIGNAL(" textChanged( String )"), connect( lastName, TQ_SIGNAL(" textChanged( String )"),
this, SLOT(" dataChanged( String )") ); this, TQ_SLOT(" dataChanged( String )") );
connect( email, SIGNAL(" textChanged( String )"), connect( email, TQ_SIGNAL(" textChanged( String )"),
this, SLOT(" dataChanged( String )") ); this, TQ_SLOT(" dataChanged( String )") );
addPage( page2, "Personal Data" ); addPage( page2, "Personal Data" );

@ -1115,12 +1115,12 @@ public class Qt implements QtSupport {
} }
/** Prepend a '2' to a signal string and remove any spaces */ /** Prepend a '2' to a signal string and remove any spaces */
public static String SIGNAL(String signal) { public static String TQ_SIGNAL(String signal) {
return "2" + sqeezeOut(signal, ' '); return "2" + sqeezeOut(signal, ' ');
} }
/** Prepend a '1' to a slot string and remove any spaces */ /** Prepend a '1' to a slot string and remove any spaces */
public static String SLOT(String slot) { public static String TQ_SLOT(String slot) {
return "1" + sqeezeOut(slot, ' '); return "1" + sqeezeOut(slot, ' ');
} }

@ -181,8 +181,8 @@ AppWizardBase( TQWidget parent, String name, boolean modal, int fl )
addPage( privateWidget_2, tr( "Header" ) ); addPage( privateWidget_2, tr( "Header" ) );
// signals and slots connections // signals and slots connections
connect( loadheader_button, SIGNAL( "clicked()" ), this, SLOT( "slotLoadHeader()" ) ); connect( loadheader_button, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "slotLoadHeader()" ) );
connect( newheader_button, SIGNAL( "clicked()" ), this, SLOT( "slotNewHeader()" ) ); connect( newheader_button, TQ_SIGNAL( "clicked()" ), this, TQ_SLOT( "slotNewHeader()" ) );
// tab order // tab order
setTabOrder( loadheader_button, newheader_button ); setTabOrder( loadheader_button, newheader_button );

@ -114,8 +114,8 @@ public FilePropsPageBase( TQWidget parent, String name, int fl )
grid.addWidget( desc_textview, 1, 1 ); grid.addWidget( desc_textview, 1, 1 );
// signals and slots connections // signals and slots connections
connect( classname_edit, SIGNAL( "textChanged(String)" ), this, SLOT( "slotClassnameChanged(String)" ) ); connect( classname_edit, TQ_SIGNAL( "textChanged(String)" ), this, TQ_SLOT( "slotClassnameChanged(String)" ) );
connect( classes_listbox, SIGNAL( "mouseButtonClicked(int,TQListBoxItem,TQPoint)" ), this, SLOT( "slotSelectionChanged()" ) ); connect( classes_listbox, TQ_SIGNAL( "mouseButtonClicked(int,TQListBoxItem,TQPoint)" ), this, TQ_SLOT( "slotSelectionChanged()" ) );
// tab order // tab order
setTabOrder( classes_listbox, classname_edit ); setTabOrder( classes_listbox, classname_edit );

@ -148,8 +148,8 @@ public class ISBNValidator extends TQValidator
// set up a receiver for the returnPressed() signal // set up a receiver for the returnPressed() signal
ReturnReceiver receiver = new ReturnReceiver(); ReturnReceiver receiver = new ReturnReceiver();
TQObject.connect( myedit, SIGNAL( "returnPressed()" ), TQObject.connect( myedit, TQ_SIGNAL( "returnPressed()" ),
receiver, SLOT( "slotReturnPressed()" ) ); receiver, TQ_SLOT( "slotReturnPressed()" ) );
myapp.setMainWidget( myedit ); myapp.setMainWidget( myedit );
myedit.show(); myedit.show();

@ -42,7 +42,7 @@ public class ScribbleWindow extends TQWidget {
// create a pop-up menu // create a pop-up menu
_popupmenu = new TQPopupMenu(); _popupmenu = new TQPopupMenu();
_popupmenu.insertItem( "&Clear", this, SLOT( "slotClearArea()" ) ); _popupmenu.insertItem( "&Clear", this, TQ_SLOT( "slotClearArea()" ) );
} }
/** /**
@ -167,10 +167,10 @@ public class ScribbleWindow extends TQWidget {
/* The next lines build the menu bar. We first create the menus /* The next lines build the menu bar. We first create the menus
* one by one, then add them to the menu bar. */ * one by one, then add them to the menu bar. */
_filemenu = new TQPopupMenu(); // create a file menu _filemenu = new TQPopupMenu(); // create a file menu
_filemenu.insertItem( "&Load", this, SLOT( "slotLoad()" ) ); _filemenu.insertItem( "&Load", this, TQ_SLOT( "slotLoad()" ) );
_filemenu.insertItem( "&Save", this, SLOT( "slotSave()" ) ); _filemenu.insertItem( "&Save", this, TQ_SLOT( "slotSave()" ) );
_filemenu.insertSeparator(); _filemenu.insertSeparator();
_filemenu.insertItem( "&Quit", tqApp(), SLOT( "quit()" ) ); _filemenu.insertItem( "&Quit", tqApp(), TQ_SLOT( "quit()" ) );
_colormenu = new TQPopupMenu(); // create a color menu _colormenu = new TQPopupMenu(); // create a color menu
_colormenu.insertItem( "B&lack", COLOR_MENU_ID_BLACK); _colormenu.insertItem( "B&lack", COLOR_MENU_ID_BLACK);
@ -178,12 +178,12 @@ public class ScribbleWindow extends TQWidget {
_colormenu.insertItem( "&Blue", COLOR_MENU_ID_BLUE); _colormenu.insertItem( "&Blue", COLOR_MENU_ID_BLUE);
_colormenu.insertItem( "&Green", COLOR_MENU_ID_GREEN); _colormenu.insertItem( "&Green", COLOR_MENU_ID_GREEN);
_colormenu.insertItem( "&Yellow", COLOR_MENU_ID_YELLOW); _colormenu.insertItem( "&Yellow", COLOR_MENU_ID_YELLOW);
TQObject.connect( _colormenu, SIGNAL( "activated( int )" ), TQObject.connect( _colormenu, TQ_SIGNAL( "activated( int )" ),
this, SLOT( "slotColorMenu( int )" ) ); this, TQ_SLOT( "slotColorMenu( int )" ) );
_helpmenu = new TQPopupMenu(); // create a help menu _helpmenu = new TQPopupMenu(); // create a help menu
_helpmenu.insertItem( "&About QtScribble", this, SLOT( "slotAbout()" ) ); _helpmenu.insertItem( "&About QtScribble", this, TQ_SLOT( "slotAbout()" ) );
_helpmenu.insertItem( "&About Qt", this, SLOT( "slotAboutQt()" ) ); _helpmenu.insertItem( "&About Qt", this, TQ_SLOT( "slotAboutQt()" ) );
_menubar = new TQMenuBar( this, "" ); // create a menu bar _menubar = new TQMenuBar( this, "" ); // create a menu bar
_menubar.insertItem( "&File", _filemenu ); _menubar.insertItem( "&File", _filemenu );
@ -198,12 +198,12 @@ public class ScribbleWindow extends TQWidget {
_scribblearea = new ScribbleArea(); _scribblearea = new ScribbleArea();
_scribblearea.setGeometry( 0, 0, 1000, 1000 ); _scribblearea.setGeometry( 0, 0, 1000, 1000 );
_scrollview.addChild( _scribblearea ); _scrollview.addChild( _scribblearea );
TQObject.connect( this, SIGNAL( "colorChanged( TQColor )" ), TQObject.connect( this, TQ_SIGNAL( "colorChanged( TQColor )" ),
_scribblearea, SLOT( "setColor( TQColor )" ) ); _scribblearea, TQ_SLOT( "setColor( TQColor )" ) );
TQObject.connect( this, SIGNAL( "save( String )" ), TQObject.connect( this, TQ_SIGNAL( "save( String )" ),
_scribblearea, SLOT( "slotSave( String )" ) ); _scribblearea, TQ_SLOT( "slotSave( String )" ) );
TQObject.connect( this, SIGNAL( "load(String)" ), TQObject.connect( this, TQ_SIGNAL( "load(String)" ),
_scribblearea, SLOT( "slotLoad( String )" ) ); _scribblearea, TQ_SLOT( "slotLoad( String )" ) );
} }
protected void resizeEvent( TQResizeEvent event ) protected void resizeEvent( TQResizeEvent event )

@ -4,8 +4,8 @@ public class SignalForwarder extends TQDialog {
SignalForwarder() { SignalForwarder() {
TQPushButton searchButton = new TQPushButton("Search", this); TQPushButton searchButton = new TQPushButton("Search", this);
connect( searchButton, SIGNAL("clicked()"), this, SIGNAL("continueSearch()")); connect( searchButton, TQ_SIGNAL("clicked()"), this, TQ_SIGNAL("continueSearch()"));
connect( this, SIGNAL("continueSearch()"), this, SLOT("slotContinueSearch()")); connect( this, TQ_SIGNAL("continueSearch()"), this, TQ_SLOT("slotContinueSearch()"));
} }
public void slotContinueSearch() public void slotContinueSearch()

@ -44,7 +44,7 @@ public class TQTimerTest extends TQWidget {
// create a pop-up menu // create a pop-up menu
_popupmenu = new TQPopupMenu(); _popupmenu = new TQPopupMenu();
_popupmenu.insertItem( "&Clear", this, Qt.SLOT( "slotClearArea()" ) ); _popupmenu.insertItem( "&Clear", this, Qt.TQ_SLOT( "slotClearArea()" ) );
} }
/** /**
@ -170,10 +170,10 @@ public class TQTimerTest extends TQWidget {
/* The next lines build the menu bar. We first create the menus /* The next lines build the menu bar. We first create the menus
* one by one, then add them to the menu bar. */ * one by one, then add them to the menu bar. */
_filemenu = new TQPopupMenu(); // create a file menu _filemenu = new TQPopupMenu(); // create a file menu
_filemenu.insertItem( "&Load", this, Qt.SLOT( "slotLoad()" ) ); _filemenu.insertItem( "&Load", this, Qt.TQ_SLOT( "slotLoad()" ) );
_filemenu.insertItem( "&Save", this, Qt.SLOT( "slotSave()" ) ); _filemenu.insertItem( "&Save", this, Qt.TQ_SLOT( "slotSave()" ) );
_filemenu.insertSeparator(); _filemenu.insertSeparator();
_filemenu.insertItem( "&Quit", Qt.qApp(), Qt.SLOT( "quit()" ) ); _filemenu.insertItem( "&Quit", Qt.qApp(), Qt.TQ_SLOT( "quit()" ) );
_colormenu = new TQPopupMenu(); // create a color menu _colormenu = new TQPopupMenu(); // create a color menu
_colormenu.insertItem( "B&lack", COLOR_MENU_ID_BLACK); _colormenu.insertItem( "B&lack", COLOR_MENU_ID_BLACK);
@ -181,12 +181,12 @@ public class TQTimerTest extends TQWidget {
_colormenu.insertItem( "&Blue", COLOR_MENU_ID_BLUE); _colormenu.insertItem( "&Blue", COLOR_MENU_ID_BLUE);
_colormenu.insertItem( "&Green", COLOR_MENU_ID_GREEN); _colormenu.insertItem( "&Green", COLOR_MENU_ID_GREEN);
_colormenu.insertItem( "&Yellow", COLOR_MENU_ID_YELLOW); _colormenu.insertItem( "&Yellow", COLOR_MENU_ID_YELLOW);
TQObject.connect( _colormenu, SIGNAL( "activated(int)" ), TQObject.connect( _colormenu, TQ_SIGNAL( "activated(int)" ),
this, SLOT( "slotColorMenu(int)" ) ); this, TQ_SLOT( "slotColorMenu(int)" ) );
_helpmenu = new TQPopupMenu(); // create a help menu _helpmenu = new TQPopupMenu(); // create a help menu
_helpmenu.insertItem( "&About QtScribble", this, SLOT( "slotAbout()" ) ); _helpmenu.insertItem( "&About QtScribble", this, TQ_SLOT( "slotAbout()" ) );
_helpmenu.insertItem( "&About Qt", this, SLOT( "slotAboutQt()" ) ); _helpmenu.insertItem( "&About Qt", this, TQ_SLOT( "slotAboutQt()" ) );
_menubar = new TQMenuBar( this, "" ); // create a menu bar _menubar = new TQMenuBar( this, "" ); // create a menu bar
_menubar.insertItem( "&File", _filemenu ); _menubar.insertItem( "&File", _filemenu );
@ -201,12 +201,12 @@ public class TQTimerTest extends TQWidget {
_scribblearea = new ScribbleArea(); _scribblearea = new ScribbleArea();
_scribblearea.setGeometry( 0, 0, 1000, 1000 ); _scribblearea.setGeometry( 0, 0, 1000, 1000 );
_scrollview.addChild( _scribblearea ); _scrollview.addChild( _scribblearea );
TQObject.connect( this, SIGNAL( "colorChanged(TQColor)" ), TQObject.connect( this, TQ_SIGNAL( "colorChanged(TQColor)" ),
_scribblearea, SLOT( "setColor(TQColor)" ) ); _scribblearea, TQ_SLOT( "setColor(TQColor)" ) );
TQObject.connect( this, SIGNAL( "save(java.lang.String)" ), TQObject.connect( this, TQ_SIGNAL( "save(java.lang.String)" ),
_scribblearea, SLOT( "slotSave(java.lang.String)" ) ); _scribblearea, TQ_SLOT( "slotSave(java.lang.String)" ) );
TQObject.connect( this, SIGNAL( "load(java.lang.String)" ), TQObject.connect( this, TQ_SIGNAL( "load(java.lang.String)" ),
_scribblearea, SLOT( "slotLoad(java.lang.String)" ) ); _scribblearea, TQ_SLOT( "slotLoad(java.lang.String)" ) );
} }
public void resizeEvent( TQResizeEvent event ) public void resizeEvent( TQResizeEvent event )
@ -298,8 +298,8 @@ public class TQTimerTest extends TQWidget {
mywidget.setGeometry(50, 500, 400, 400); mywidget.setGeometry(50, 500, 400, 400);
TQTimer timer = new TQTimer( mywidget ); TQTimer timer = new TQTimer( mywidget );
connect( timer, Qt.SIGNAL("timeout()"), connect( timer, Qt.TQ_SIGNAL("timeout()"),
mywidget, Qt.SLOT("timerDone()") ); mywidget, Qt.TQ_SLOT("timerDone()") );
timer.start( 2000, false ); // 2 seconds single-shot timer.start( 2000, false ); // 2 seconds single-shot
myapp.setMainWidget(mywidget); myapp.setMainWidget(mywidget);

@ -10,10 +10,10 @@ public class LCDRange extends TQVBox {
slider.setRange(0, 99); slider.setRange(0, 99);
slider.setValue(0); slider.setValue(0);
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
lcd, SLOT("display(int)")); lcd, TQ_SLOT("display(int)"));
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
SIGNAL("valueChanged(int)")); TQ_SIGNAL("valueChanged(int)"));
setFocusProxy(slider); setFocusProxy(slider);
} }

@ -5,7 +5,7 @@ public class Tut10 extends TQWidget {
TQPushButton quit = new TQPushButton("&Quit", this, "quit"); TQPushButton quit = new TQPushButton("&Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
LCDRange angle = new LCDRange(this, "angle"); LCDRange angle = new LCDRange(this, "angle");
angle.setRange(5, 70); angle.setRange(5, 70);
@ -15,15 +15,15 @@ public class Tut10 extends TQWidget {
CannonField cannonField = new CannonField(this, "cannonField"); CannonField cannonField = new CannonField(this, "cannonField");
connect(angle, SIGNAL("valueChanged(int)"), connect(angle, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setAngle(int)")); cannonField, TQ_SLOT("setAngle(int)"));
connect(cannonField, SIGNAL("angleChanged(int)"), connect(cannonField, TQ_SIGNAL("angleChanged(int)"),
angle, SLOT("setValue(int)")); angle, TQ_SLOT("setValue(int)"));
connect(force, SIGNAL("valueChanged(int)"), connect(force, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setForce(int)")); cannonField, TQ_SLOT("setForce(int)"));
connect(cannonField, SIGNAL("forceChanged(int)"), connect(cannonField, TQ_SIGNAL("forceChanged(int)"),
force, SLOT("setValue(int)")); force, TQ_SLOT("setValue(int)"));
TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null); TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null);
grid.addWidget(quit, 0, 0); grid.addWidget(quit, 0, 0);

@ -16,8 +16,8 @@ public class CannonField extends TQWidget {
f = 0; f = 0;
timerCount = 0; timerCount = 0;
autoShootTimer = new TQTimer(this, "movement handler"); autoShootTimer = new TQTimer(this, "movement handler");
connect(autoShootTimer, SIGNAL("timeout()"), connect(autoShootTimer, TQ_SIGNAL("timeout()"),
this, SLOT("moveShot()")); this, TQ_SLOT("moveShot()"));
shoot_ang = 0; shoot_ang = 0;
shoot_f = 0; shoot_f = 0;

@ -10,10 +10,10 @@ public class LCDRange extends TQVBox {
slider.setRange(0, 99); slider.setRange(0, 99);
slider.setValue(0); slider.setValue(0);
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
lcd, SLOT("display(int)")); lcd, TQ_SLOT("display(int)"));
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
SIGNAL("valueChanged(int)")); TQ_SIGNAL("valueChanged(int)"));
setFocusProxy(slider); setFocusProxy(slider);
} }

@ -5,7 +5,7 @@ public class Tut11 extends TQWidget {
TQPushButton quit = new TQPushButton("&Quit", this, "quit"); TQPushButton quit = new TQPushButton("&Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
LCDRange angle = new LCDRange(this, "angle"); LCDRange angle = new LCDRange(this, "angle");
angle.setRange(5, 70); angle.setRange(5, 70);
@ -15,21 +15,21 @@ public class Tut11 extends TQWidget {
CannonField cannonField = new CannonField(this, "cannonField"); CannonField cannonField = new CannonField(this, "cannonField");
connect(angle, SIGNAL("valueChanged(int)"), connect(angle, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setAngle(int)")); cannonField, TQ_SLOT("setAngle(int)"));
connect(cannonField, SIGNAL("angleChanged(int)"), connect(cannonField, TQ_SIGNAL("angleChanged(int)"),
angle, SLOT("setValue(int)")); angle, TQ_SLOT("setValue(int)"));
connect(force, SIGNAL("valueChanged(int)"), connect(force, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setForce(int)")); cannonField, TQ_SLOT("setForce(int)"));
connect(cannonField, SIGNAL("forceChanged(int)"), connect(cannonField, TQ_SIGNAL("forceChanged(int)"),
force, SLOT("setValue(int)")); force, TQ_SLOT("setValue(int)"));
TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot"); TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot");
shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false)); shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(shoot, SIGNAL("clicked()"), cannonField, SLOT("shoot()")); connect(shoot, TQ_SIGNAL("clicked()"), cannonField, TQ_SLOT("shoot()"));
TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null); TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null);
grid.addWidget(quit, 0, 0); grid.addWidget(quit, 0, 0);

@ -19,8 +19,8 @@ public class CannonField extends TQWidget {
f = 0; f = 0;
timerCount = 0; timerCount = 0;
autoShootTimer = new TQTimer(this, "movement handler"); autoShootTimer = new TQTimer(this, "movement handler");
connect(autoShootTimer, SIGNAL("timeout()"), connect(autoShootTimer, TQ_SIGNAL("timeout()"),
this, SLOT("moveShot()")); this, TQ_SLOT("moveShot()"));
shoot_ang = 0; shoot_ang = 0;
shoot_f = 0; shoot_f = 0;
target = new TQPoint(0, 0); target = new TQPoint(0, 0);

@ -24,10 +24,10 @@ public class LCDRange extends TQVBox {
label = new TQLabel(" ", this, "label", 0); label = new TQLabel(" ", this, "label", 0);
label.setAlignment(AlignCenter); label.setAlignment(AlignCenter);
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
lcd, SLOT("display(int)")); lcd, TQ_SLOT("display(int)"));
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
SIGNAL("valueChanged(int)")); TQ_SIGNAL("valueChanged(int)"));
setFocusProxy(slider); setFocusProxy(slider);
} }

@ -5,7 +5,7 @@ public class Tut12 extends TQWidget {
TQPushButton quit = new TQPushButton("&Quit", this, "quit"); TQPushButton quit = new TQPushButton("&Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
LCDRange angle = new LCDRange("ANGLE", this, "angle"); LCDRange angle = new LCDRange("ANGLE", this, "angle");
angle.setRange(5, 70); angle.setRange(5, 70);
@ -15,21 +15,21 @@ public class Tut12 extends TQWidget {
CannonField cannonField = new CannonField(this, "cannonField"); CannonField cannonField = new CannonField(this, "cannonField");
connect(angle, SIGNAL("valueChanged(int)"), connect(angle, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setAngle(int)")); cannonField, TQ_SLOT("setAngle(int)"));
connect(cannonField, SIGNAL("angleChanged(int)"), connect(cannonField, TQ_SIGNAL("angleChanged(int)"),
angle, SLOT("setValue(int)")); angle, TQ_SLOT("setValue(int)"));
connect(force, SIGNAL("valueChanged(int)"), connect(force, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setForce(int)")); cannonField, TQ_SLOT("setForce(int)"));
connect(cannonField, SIGNAL("forceChanged(int)"), connect(cannonField, TQ_SIGNAL("forceChanged(int)"),
force, SLOT("setValue(int)")); force, TQ_SLOT("setValue(int)"));
TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot"); TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot");
shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false)); shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(shoot, SIGNAL("clicked()"), cannonField, SLOT("shoot()")); connect(shoot, TQ_SIGNAL("clicked()"), cannonField, TQ_SLOT("shoot()"));
TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null); TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null);
grid.addWidget(quit, 0, 0); grid.addWidget(quit, 0, 0);

@ -21,8 +21,8 @@ public class CannonField extends TQWidget {
f = 0; f = 0;
timerCount = 0; timerCount = 0;
autoShootTimer = new TQTimer(this, "movement handler"); autoShootTimer = new TQTimer(this, "movement handler");
connect(autoShootTimer, SIGNAL("timeout()"), connect(autoShootTimer, TQ_SIGNAL("timeout()"),
this, SLOT("moveShot()")); this, TQ_SLOT("moveShot()"));
shoot_ang = 0; shoot_ang = 0;
shoot_f = 0; shoot_f = 0;
target = new TQPoint(0, 0); target = new TQPoint(0, 0);

@ -9,7 +9,7 @@ public class GameBoard extends TQWidget {
TQPushButton quit = new TQPushButton("&Quit", this, "quit"); TQPushButton quit = new TQPushButton("&Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
LCDRange angle = new LCDRange("ANGLE", this, "angle"); LCDRange angle = new LCDRange("ANGLE", this, "angle");
angle.setRange(5, 70); angle.setRange(5, 70);
@ -19,32 +19,32 @@ public class GameBoard extends TQWidget {
cannonField = new CannonField(this, "cannonField"); cannonField = new CannonField(this, "cannonField");
connect(angle, SIGNAL("valueChanged(int)"), connect(angle, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setAngle(int)")); cannonField, TQ_SLOT("setAngle(int)"));
connect(cannonField, SIGNAL("angleChanged(int)"), connect(cannonField, TQ_SIGNAL("angleChanged(int)"),
angle, SLOT("setValue(int)")); angle, TQ_SLOT("setValue(int)"));
connect(force, SIGNAL("valueChanged(int)"), connect(force, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setForce(int)")); cannonField, TQ_SLOT("setForce(int)"));
connect(cannonField, SIGNAL("forceChanged(int)"), connect(cannonField, TQ_SIGNAL("forceChanged(int)"),
force, SLOT("setValue(int)")); force, TQ_SLOT("setValue(int)"));
connect(cannonField, SIGNAL("hit()"), connect(cannonField, TQ_SIGNAL("hit()"),
this, SLOT("hit()")); this, TQ_SLOT("hit()"));
connect(cannonField, SIGNAL("missed()"), connect(cannonField, TQ_SIGNAL("missed()"),
this, SLOT("missed()")); this, TQ_SLOT("missed()"));
TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot"); TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot");
shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false)); shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(shoot, SIGNAL("clicked()"), SLOT("fire()")); connect(shoot, TQ_SIGNAL("clicked()"), TQ_SLOT("fire()"));
connect(cannonField, SIGNAL("canShoot(boolean)"), connect(cannonField, TQ_SIGNAL("canShoot(boolean)"),
shoot, SLOT("setEnabled(boolean)")); shoot, TQ_SLOT("setEnabled(boolean)"));
TQPushButton restart = new TQPushButton("&New Game", this, "newgame"); TQPushButton restart = new TQPushButton("&New Game", this, "newgame");
restart.setFont(new TQFont("Times", 18, TQFont.Bold, false)); restart.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(restart, SIGNAL("clicked()"), this, SLOT("newGame()")); connect(restart, TQ_SIGNAL("clicked()"), this, TQ_SLOT("newGame()"));
hits = new TQLCDNumber(2, this, "hits"); hits = new TQLCDNumber(2, this, "hits");
shotsLeft = new TQLCDNumber(2, this, "shotsleft"); shotsLeft = new TQLCDNumber(2, this, "shotsleft");

@ -24,10 +24,10 @@ public class LCDRange extends TQWidget {
label = new TQLabel(" ", this, "label", 0); label = new TQLabel(" ", this, "label", 0);
label.setAlignment(AlignCenter); label.setAlignment(AlignCenter);
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
lcd, SLOT("display(int)")); lcd, TQ_SLOT("display(int)"));
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
SIGNAL("valueChanged(int)")); TQ_SIGNAL("valueChanged(int)"));
setFocusProxy(slider); setFocusProxy(slider);

@ -22,8 +22,8 @@ public class CannonField extends TQWidget {
f = 0; f = 0;
timerCount = 0; timerCount = 0;
autoShootTimer = new TQTimer(this, "movement handler"); autoShootTimer = new TQTimer(this, "movement handler");
connect(autoShootTimer, SIGNAL("timeout()"), connect(autoShootTimer, TQ_SIGNAL("timeout()"),
this, SLOT("moveShot()")); this, TQ_SLOT("moveShot()"));
shoot_ang = 0; shoot_ang = 0;
shoot_f = 0; shoot_f = 0;
target = new TQPoint(0, 0); target = new TQPoint(0, 0);

@ -10,7 +10,7 @@ public class GameBoard extends TQWidget {
TQPushButton quit = new TQPushButton("&Quit", this, "quit"); TQPushButton quit = new TQPushButton("&Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
LCDRange angle = new LCDRange("ANGLE", this, "angle"); LCDRange angle = new LCDRange("ANGLE", this, "angle");
angle.setRange(5, 70); angle.setRange(5, 70);
@ -23,30 +23,30 @@ public class GameBoard extends TQWidget {
cannonField = new CannonField(box, "cannonField"); cannonField = new CannonField(box, "cannonField");
connect(angle, SIGNAL("valueChanged(int)"), connect(angle, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setAngle(int)")); cannonField, TQ_SLOT("setAngle(int)"));
connect(cannonField, SIGNAL("angleChanged(int)"), connect(cannonField, TQ_SIGNAL("angleChanged(int)"),
angle, SLOT("setValue(int)")); angle, TQ_SLOT("setValue(int)"));
connect(force, SIGNAL("valueChanged(int)"), connect(force, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setForce(int)")); cannonField, TQ_SLOT("setForce(int)"));
connect(cannonField, SIGNAL("forceChanged(int)"), connect(cannonField, TQ_SIGNAL("forceChanged(int)"),
force, SLOT("setValue(int)")); force, TQ_SLOT("setValue(int)"));
connect(cannonField, SIGNAL("hit()"), connect(cannonField, TQ_SIGNAL("hit()"),
this, SLOT("hit()")); this, TQ_SLOT("hit()"));
connect(cannonField, SIGNAL("missed()"), connect(cannonField, TQ_SIGNAL("missed()"),
this, SLOT("missed()")); this, TQ_SLOT("missed()"));
TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot"); TQPushButton shoot = new TQPushButton("&Shoot", this, "shoot");
shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false)); shoot.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(shoot, SIGNAL("clicked()"), SLOT("fire()")); connect(shoot, TQ_SIGNAL("clicked()"), TQ_SLOT("fire()"));
TQPushButton restart = new TQPushButton("&New Game", this, "newgame"); TQPushButton restart = new TQPushButton("&New Game", this, "newgame");
restart.setFont(new TQFont("Times", 18, TQFont.Bold, false)); restart.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(restart, SIGNAL("clicked()"), this, SLOT("newGame()")); connect(restart, TQ_SIGNAL("clicked()"), this, TQ_SLOT("newGame()"));
hits = new TQLCDNumber(2, this, "hits"); hits = new TQLCDNumber(2, this, "hits");
shotsLeft = new TQLCDNumber(2, this, "shotsleft"); shotsLeft = new TQLCDNumber(2, this, "shotsleft");
@ -54,13 +54,13 @@ public class GameBoard extends TQWidget {
TQLabel shotsLeftL = new TQLabel("SHOTS LEFT", this, "shotsleftLabel", 0); TQLabel shotsLeftL = new TQLabel("SHOTS LEFT", this, "shotsleftLabel", 0);
TQAccel accel = new TQAccel(this); TQAccel accel = new TQAccel(this);
accel.connectItem(accel.insertItem(new TQKeySequence(Key_Enter)), this, SLOT("fire()")); accel.connectItem(accel.insertItem(new TQKeySequence(Key_Enter)), this, TQ_SLOT("fire()"));
accel.connectItem(accel.insertItem(new TQKeySequence(Key_Return)), this, SLOT("fire()")); accel.connectItem(accel.insertItem(new TQKeySequence(Key_Return)), this, TQ_SLOT("fire()"));
accel.connectItem(accel.insertItem(new TQKeySequence(CTRL+Key_Q)), tqApp(), SLOT("quit()")); accel.connectItem(accel.insertItem(new TQKeySequence(CTRL+Key_Q)), tqApp(), TQ_SLOT("quit()"));
/*** /***
accel.connectItem(accel.insertItem(Key_Enter), this, SLOT("fire()")); accel.connectItem(accel.insertItem(Key_Enter), this, TQ_SLOT("fire()"));
accel.connectItem(accel.insertItem(Key_Return), this, SLOT("fire()")); accel.connectItem(accel.insertItem(Key_Return), this, TQ_SLOT("fire()"));
accel.connectItem(accel.insertItem(CTRL+Key_Q), tqApp(), SLOT("quit()")); accel.connectItem(accel.insertItem(CTRL+Key_Q), tqApp(), TQ_SLOT("quit()"));
***/ ***/
TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null); TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null);
grid.addWidget(quit, 0, 0); grid.addWidget(quit, 0, 0);

@ -24,10 +24,10 @@ public class LCDRange extends TQWidget {
label = new TQLabel(" ", this, "label", 0); label = new TQLabel(" ", this, "label", 0);
label.setAlignment(AlignCenter); label.setAlignment(AlignCenter);
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
lcd, SLOT("display(int)")); lcd, TQ_SLOT("display(int)"));
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
SIGNAL("valueChanged(int)")); TQ_SIGNAL("valueChanged(int)"));
setFocusProxy(slider); setFocusProxy(slider);

@ -7,7 +7,7 @@ public class Tut2 extends TQObject {
quit.resize( 75, 30 ); quit.resize( 75, 30 );
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), a, SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), a, TQ_SLOT("quit()"));
a.setMainWidget(quit); a.setMainWidget(quit);
quit.show(); quit.show();

@ -10,7 +10,7 @@ public class Tut3 extends TQObject {
TQPushButton quit = new TQPushButton("Quit", box); TQPushButton quit = new TQPushButton("Quit", box);
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), a, SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), a, TQ_SLOT("quit()"));
a.setMainWidget(box); a.setMainWidget(box);
box.show(); box.show();

@ -9,7 +9,7 @@ public class Tut4 extends TQWidget {
quit.setGeometry(62, 40, 75, 30); quit.setGeometry(62, 40, 75, 30);
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
} }
public static void main(String[] args) { public static void main(String[] args) {

@ -5,7 +5,7 @@ public class Tut5 extends TQVBox {
TQPushButton quit = new TQPushButton("Quit", this, "quit"); TQPushButton quit = new TQPushButton("Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
TQLCDNumber lcd = new TQLCDNumber(2, this, "lcd"); TQLCDNumber lcd = new TQLCDNumber(2, this, "lcd");
@ -13,7 +13,7 @@ public class Tut5 extends TQVBox {
slider.setRange(0, 99); slider.setRange(0, 99);
slider.setValue(0); slider.setValue(0);
connect(slider, SIGNAL("valueChanged(int)"), lcd, SLOT("display(int)")); connect(slider, TQ_SIGNAL("valueChanged(int)"), lcd, TQ_SLOT("display(int)"));
} }
public static void main(String[] args) { public static void main(String[] args) {

@ -7,7 +7,7 @@ public class LCDRange extends TQVBox {
TQSlider slider = new TQSlider(Horizontal, this, "slider"); TQSlider slider = new TQSlider(Horizontal, this, "slider");
slider.setRange(0, 99); slider.setRange(0, 99);
slider.setValue(0); slider.setValue(0);
connect(slider, SIGNAL("valueChanged(int)"), lcd, SLOT("display(int)")); connect(slider, TQ_SIGNAL("valueChanged(int)"), lcd, TQ_SLOT("display(int)"));
} }
public LCDRange(TQWidget parent) { public LCDRange(TQWidget parent) {
this(parent, null); this(parent, null);

@ -5,7 +5,7 @@ public class Tut6 extends TQVBox {
TQPushButton quit = new TQPushButton("Quit", this, "quit"); TQPushButton quit = new TQPushButton("Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
TQGrid grid = new TQGrid(4, this, null, 0); TQGrid grid = new TQGrid(4, this, null, 0);

@ -10,10 +10,10 @@ public class LCDRange extends TQVBox {
slider.setRange(0, 99); slider.setRange(0, 99);
slider.setValue(0); slider.setValue(0);
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
lcd, SLOT("display(int)")); lcd, TQ_SLOT("display(int)"));
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
SIGNAL("valueChanged(int)")); TQ_SIGNAL("valueChanged(int)"));
} }
public LCDRange(TQWidget parent) { public LCDRange(TQWidget parent) {
this(parent, null); this(parent, null);

@ -5,7 +5,7 @@ public class Tut7 extends TQVBox {
TQPushButton quit = new TQPushButton("Quit", this, "quit"); TQPushButton quit = new TQPushButton("Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
TQGrid grid = new TQGrid(4, this, null, 0); TQGrid grid = new TQGrid(4, this, null, 0);
@ -14,8 +14,8 @@ public class Tut7 extends TQVBox {
for(int c = 0; c < 4; c++) { for(int c = 0; c < 4; c++) {
LCDRange lr = new LCDRange(grid); LCDRange lr = new LCDRange(grid);
if (previous!=null) if (previous!=null)
connect(lr, SIGNAL("valueChanged(int)"), connect(lr, TQ_SIGNAL("valueChanged(int)"),
previous, SLOT("setValue(int)")); previous, TQ_SLOT("setValue(int)"));
previous = lr; previous = lr;
} }
} }

@ -10,10 +10,10 @@ public class LCDRange extends TQVBox {
slider.setRange(0, 99); slider.setRange(0, 99);
slider.setValue(0); slider.setValue(0);
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
lcd, SLOT("display(int)")); lcd, TQ_SLOT("display(int)"));
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
SIGNAL("valueChanged(int)")); TQ_SIGNAL("valueChanged(int)"));
setFocusProxy(slider); setFocusProxy(slider);
} }

@ -5,17 +5,17 @@ public class Tut8 extends TQWidget {
TQPushButton quit = new TQPushButton("Quit", this, "quit"); TQPushButton quit = new TQPushButton("Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
LCDRange angle = new LCDRange(this, "angle"); LCDRange angle = new LCDRange(this, "angle");
angle.setRange(5, 70); angle.setRange(5, 70);
CannonField cannonField = new CannonField(this, "cannonField"); CannonField cannonField = new CannonField(this, "cannonField");
connect(angle, SIGNAL("valueChanged(int)"), connect(angle, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setAngle(int)")); cannonField, TQ_SLOT("setAngle(int)"));
connect(cannonField, SIGNAL("angleChanged(int)"), connect(cannonField, TQ_SIGNAL("angleChanged(int)"),
angle, SLOT("setValue(int)")); angle, TQ_SLOT("setValue(int)"));
TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null); TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null);
//2x2, 10 pixel border //2x2, 10 pixel border

@ -10,10 +10,10 @@ public class LCDRange extends TQVBox {
slider.setRange(0, 99); slider.setRange(0, 99);
slider.setValue(0); slider.setValue(0);
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
lcd, SLOT("display(int)")); lcd, TQ_SLOT("display(int)"));
connect(slider, SIGNAL("valueChanged(int)"), connect(slider, TQ_SIGNAL("valueChanged(int)"),
SIGNAL("valueChanged(int)")); TQ_SIGNAL("valueChanged(int)"));
setFocusProxy(slider); setFocusProxy(slider);
} }

@ -5,17 +5,17 @@ public class Tut9 extends TQWidget {
TQPushButton quit = new TQPushButton("Quit", this, "quit"); TQPushButton quit = new TQPushButton("Quit", this, "quit");
quit.setFont(new TQFont("Times", 18, TQFont.Bold, false)); quit.setFont(new TQFont("Times", 18, TQFont.Bold, false));
connect(quit, SIGNAL("clicked()"), tqApp(), SLOT("quit()")); connect(quit, TQ_SIGNAL("clicked()"), tqApp(), TQ_SLOT("quit()"));
LCDRange angle = new LCDRange(this, "angle"); LCDRange angle = new LCDRange(this, "angle");
angle.setRange(5, 70); angle.setRange(5, 70);
CannonField cannonField = new CannonField(this, "cannonField"); CannonField cannonField = new CannonField(this, "cannonField");
connect(angle, SIGNAL("valueChanged(int)"), connect(angle, TQ_SIGNAL("valueChanged(int)"),
cannonField, SLOT("setAngle(int)")); cannonField, TQ_SLOT("setAngle(int)"));
connect(cannonField, SIGNAL("angleChanged(int)"), connect(cannonField, TQ_SIGNAL("angleChanged(int)"),
angle, SLOT("setValue(int)")); angle, TQ_SLOT("setValue(int)"));
TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null); TQGridLayout grid = new TQGridLayout(this, 2, 2, 10, -1, null);
//2x2, 10 pixel border //2x2, 10 pixel border

@ -317,13 +317,13 @@ class QtShellControl < TQt::MainWindow
@helpExampleAction.addTo(helpMenu) @helpExampleAction.addTo(helpMenu)
@menubar.insertItem(trUtf8("&Help"), helpMenu) @menubar.insertItem(trUtf8("&Help"), helpMenu)
connect(@fileOpenAction, SIGNAL('activated()'), self, SLOT('fileOpen()')) connect(@fileOpenAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('fileOpen()'))
connect(@fileSaveAction, SIGNAL('activated()'), self, SLOT('fileSave()')) connect(@fileSaveAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('fileSave()'))
connect(@fileSaveAsAction, SIGNAL('activated()'), self, SLOT('fileSaveAs()')) connect(@fileSaveAsAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('fileSaveAs()'))
connect(@filePrintAction, SIGNAL('activated()'), self, SLOT('filePrint()')) connect(@filePrintAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('filePrint()'))
connect(@fileExitAction, SIGNAL('activated()'), self, SLOT('fileExit()')) connect(@fileExitAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('fileExit()'))
connect(@runAction, SIGNAL('activated()'), self, SLOT('runSelection()')) connect(@runAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('runSelection()'))
connect(@helpExampleAction, SIGNAL('activated()'), self, SLOT('helpExample()')) connect(@helpExampleAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('helpExample()'))
@executedLines = [] @executedLines = []
end end
@ -497,13 +497,13 @@ def initialize(*k)
self.show self.show
@shellWindow.show @shellWindow.show
connect(@shellWindow.comboBox.lineEdit, SIGNAL('returnPressed()'), self, SLOT('evalInput()')) connect(@shellWindow.comboBox.lineEdit, TQ_SIGNAL('returnPressed()'), self, TQ_SLOT('evalInput()'))
@prompt = '<b><font color="blue">$&gt;</font></b>' @prompt = '<b><font color="blue">$&gt;</font></b>'
self.setCaption("MainWindow - this") self.setCaption("MainWindow - this")
@shellWindow.sessionLog.setText("Ready.<br>") @shellWindow.sessionLog.setText("Ready.<br>")
connect(@shellWindow, SIGNAL('fileNeedsEval(TQString)'), self, SLOT('evalFile(TQString)')) connect(@shellWindow, TQ_SIGNAL('fileNeedsEval(TQString)'), self, TQ_SLOT('evalFile(TQString)'))
connect(@shellWindow, SIGNAL('selection(TQString)'), self, SLOT('evalSelection(TQString)')) connect(@shellWindow, TQ_SIGNAL('selection(TQString)'), self, TQ_SLOT('evalSelection(TQString)'))
end end
def logAppend(str) def logAppend(str)
@ -620,7 +620,7 @@ self.resize(220,240)
@vbox.show @vbox.show
@sample = TQt::PopupMenu.new(self) @sample = TQt::PopupMenu.new(self)
$ slots 'there()' $ slots 'there()'
@sample.insertItem("&There", self, SLOT('there()')) @sample.insertItem("&There", self, TQ_SLOT('there()'))
self.menuBar.insertItem("&Here", sample) self.menuBar.insertItem("&Here", sample)
$ def there; statusBar.message("There...", 2000); end $ def there; statusBar.message("There...", 2000); end
EXAMPLE EXAMPLE

@ -321,8 +321,8 @@ end
def editFind() def editFind()
if ! @findForm if ! @findForm
@findForm = FindForm.new( self ) @findForm = FindForm.new( self )
connect( @findForm, SIGNAL( 'lookfor(const TQString&)' ), connect( @findForm, TQ_SIGNAL( 'lookfor(const TQString&)' ),
self, SLOT( 'lookfor(const TQString&)' ) ) self, TQ_SLOT( 'lookfor(const TQString&)' ) )
end end
@findForm.show() @findForm.show()
end end

@ -751,7 +751,7 @@ void Uic::createFormImpl( const TQDomElement &e )
receiver = "self"; receiver = "self";
out << indent << "TQt::Object.connect(" << sender out << indent << "TQt::Object.connect(" << sender
<< ", TQT_SIGNAL(\"" << signal << "\"), "<< receiver << ", TQT_SLOT(\"" << slot << "\") )" << endl; << ", TQ_SIGNAL(\"" << signal << "\"), "<< receiver << ", TQ_SLOT(\"" << slot << "\") )" << endl;
} }
} else if ( n.tagName() == "tabstops" ) { } else if ( n.tagName() == "tabstops" ) {
// setup tab order // setup tab order

@ -15,6 +15,6 @@ if ARGV.length == 2
exit exit
end end
w.show() w.show()
a.connect( a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()') ) a.connect( a, TQ_SIGNAL('lastWindowClosed()'), a, TQ_SLOT('quit()') )
a.exec() a.exec()
end end

@ -11,7 +11,7 @@ def build_actions(actions)
} }
else else
qt_action = $kIcons.make_qt_action(self, a.text_with_accel, a.icon_type) qt_action = $kIcons.make_qt_action(self, a.text_with_accel, a.icon_type)
connect(qt_action, SIGNAL('activated()'), a.rec, a.slot) connect(qt_action, TQ_SIGNAL('activated()'), a.rec, a.slot)
a.included_in.each { a.included_in.each {
|to| qt_action.addTo(to) |to| qt_action.addTo(to)
} }

@ -43,11 +43,11 @@ class MyWidget < TQt::MainWindow
fileMenu = TQt::PopupMenu.new(self) fileMenu = TQt::PopupMenu.new(self)
actions = [ actions = [
RAction.new("&New", Icons::FILE_NEW, self, SLOT('new()'), [fileTools, fileMenu]), RAction.new("&New", Icons::FILE_NEW, self, TQ_SLOT('new()'), [fileTools, fileMenu]),
RAction.new("&Open...", Icons::FILE_OPEN, self, SLOT('open()'), [fileTools, fileMenu]), RAction.new("&Open...", Icons::FILE_OPEN, self, TQ_SLOT('open()'), [fileTools, fileMenu]),
@save = RAction.new("Save &As...", Icons::FILE_SAVE_AS, self, SLOT('save_as()'), [fileTools, fileMenu]), @save = RAction.new("Save &As...", Icons::FILE_SAVE_AS, self, TQ_SLOT('save_as()'), [fileTools, fileMenu]),
RSeperator.new([fileMenu]), RSeperator.new([fileMenu]),
RAction.new("E&xit", Icons::EXIT, $qApp, SLOT('quit()'), [fileMenu]) RAction.new("E&xit", Icons::EXIT, $qApp, TQ_SLOT('quit()'), [fileMenu])
] ]
build_actions(actions) build_actions(actions)

@ -12,20 +12,20 @@ class Client < TQt::VBox
close = TQt::PushButton.new( tr("Close connection") , self ) close = TQt::PushButton.new( tr("Close connection") , self )
quit = TQt::PushButton.new( tr("Quit") , self ) quit = TQt::PushButton.new( tr("Quit") , self )
connect( send, SIGNAL('clicked()'), SLOT('sendToServer()') ) connect( send, TQ_SIGNAL('clicked()'), TQ_SLOT('sendToServer()') )
connect( close, SIGNAL('clicked()'), SLOT('closeConnection()') ) connect( close, TQ_SIGNAL('clicked()'), TQ_SLOT('closeConnection()') )
connect( quit, SIGNAL('clicked()'), $qApp, SLOT('quit()') ) connect( quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()') )
# create the socket and connect various of its signals # create the socket and connect various of its signals
@socket = TQt::Socket.new( self ) @socket = TQt::Socket.new( self )
connect( @socket, SIGNAL('connected()'), connect( @socket, TQ_SIGNAL('connected()'),
SLOT('socketConnected()') ) TQ_SLOT('socketConnected()') )
connect( @socket, SIGNAL('connectionClosed()'), connect( @socket, TQ_SIGNAL('connectionClosed()'),
SLOT('socketConnectionClosed()') ) TQ_SLOT('socketConnectionClosed()') )
connect( @socket, SIGNAL('readyRead()'), connect( @socket, TQ_SIGNAL('readyRead()'),
SLOT('socketReadyRead()') ) TQ_SLOT('socketReadyRead()') )
connect( @socket, SIGNAL('error(int)'), connect( @socket, TQ_SIGNAL('error(int)'),
SLOT('socketError(int)') ) TQ_SLOT('socketError(int)') )
# connect to the server # connect to the server
@infoText.append( tr("Trying to connect to the server\n") ) @infoText.append( tr("Trying to connect to the server\n") )
@ -41,8 +41,8 @@ class Client < TQt::VBox
@socket.close() @socket.close()
if @socket.state() == TQt::Socket::Closing if @socket.state() == TQt::Socket::Closing
# We have a delayed close. # We have a delayed close.
connect( @socket, SIGNAL('delayedCloseFinished()'), connect( @socket, TQ_SIGNAL('delayedCloseFinished()'),
SLOT('socketClosed()') ) TQ_SLOT('socketClosed()') )
else else
# The socket is closed. # The socket is closed.
socketClosed() socketClosed()

@ -9,10 +9,10 @@ class ClientSocket < TQt::Socket
def initialize(sock, parent=nil, name=nil) def initialize(sock, parent=nil, name=nil)
super( parent, name ) super( parent, name )
@line = 0 @line = 0
connect( self, SIGNAL('readyRead()'), connect( self, TQ_SIGNAL('readyRead()'),
SLOT('readClient()') ) TQ_SLOT('readClient()') )
connect( self, SIGNAL('connectionClosed()'), connect( self, TQ_SIGNAL('connectionClosed()'),
SLOT('deleteLater()') ) TQ_SLOT('deleteLater()') )
setSocket( sock ) setSocket( sock )
end end
@ -84,20 +84,20 @@ class ServerInfo < TQt::VBox
# See the comment above about why the 'ClientSocket*' # See the comment above about why the 'ClientSocket*'
# type cannot be used # type cannot be used
connect( @server, SIGNAL('newConnect(TQSocket*)'), connect( @server, TQ_SIGNAL('newConnect(TQSocket*)'),
SLOT('newConnect(TQSocket*)') ) TQ_SLOT('newConnect(TQSocket*)') )
connect( quit, SIGNAL('clicked()'), $qApp, connect( quit, TQ_SIGNAL('clicked()'), $qApp,
SLOT('quit()') ) TQ_SLOT('quit()') )
end end
slots 'newConnect(TQSocket*)', 'connectionClosed()' slots 'newConnect(TQSocket*)', 'connectionClosed()'
def newConnect( s ) def newConnect( s )
@infoText.append( tr("New connection\n") ) @infoText.append( tr("New connection\n") )
connect( s, SIGNAL('logText(const TQString&)'), connect( s, TQ_SIGNAL('logText(const TQString&)'),
@infoText, SLOT('append(const TQString&)') ) @infoText, TQ_SLOT('append(const TQString&)') )
connect( s, SIGNAL('connectionClosed()'), connect( s, TQ_SIGNAL('connectionClosed()'),
SLOT('connectionClosed()') ) TQ_SLOT('connectionClosed()') )
end end
def connectionClosed() def connectionClosed()

@ -19,7 +19,7 @@ class PassiveWindow < TQt::Frame
TQt::Label.new(message, self) TQt::Label.new(message, self)
quit=TQt::PushButton.new(tr("Close"), self) quit=TQt::PushButton.new(tr("Close"), self)
connect(quit, SIGNAL("clicked()"), SLOT("close()")) connect(quit, TQ_SIGNAL("clicked()"), TQ_SLOT("close()"))
end end
def show def show

@ -11,7 +11,7 @@ class AnalogClock < TQt::Widget
@time = TQt::Time::currentTime @time = TQt::Time::currentTime
@internalTimer = TQt::Timer.new(self) @internalTimer = TQt::Timer.new(self)
connect(@internalTimer, SIGNAL('timeout()'), self, SLOT('timeout()')) connect(@internalTimer, TQ_SIGNAL('timeout()'), self, TQ_SLOT('timeout()'))
@internalTimer.start(5000) @internalTimer.start(5000)
end end

@ -42,41 +42,41 @@ class ChartForm < TQt::MainWindow
fileNewAction = TQt::Action.new( fileNewAction = TQt::Action.new(
"New Chart", TQt::IconSet.new(TQt::Pixmap.new( "images/file_new.xpm" )), "New Chart", TQt::IconSet.new(TQt::Pixmap.new( "images/file_new.xpm" )),
"&New", TQt::KeySequence.new(CTRL+Key_N), self, "new" ) "&New", TQt::KeySequence.new(CTRL+Key_N), self, "new" )
connect( fileNewAction, SIGNAL( 'activated()' ), self, SLOT( 'fileNew()' ) ) connect( fileNewAction, TQ_SIGNAL( 'activated()' ), self, TQ_SLOT( 'fileNew()' ) )
fileOpenAction = TQt::Action.new( fileOpenAction = TQt::Action.new(
"Open Chart", TQt::IconSet.new(TQt::Pixmap.new( "images/file_open.xpm" )), "Open Chart", TQt::IconSet.new(TQt::Pixmap.new( "images/file_open.xpm" )),
"&Open...", TQt::KeySequence.new(CTRL+Key_O), self, "open" ) "&Open...", TQt::KeySequence.new(CTRL+Key_O), self, "open" )
connect( fileOpenAction, SIGNAL( 'activated()' ), self, SLOT( 'fileOpen()' ) ) connect( fileOpenAction, TQ_SIGNAL( 'activated()' ), self, TQ_SLOT( 'fileOpen()' ) )
fileSaveAction = TQt::Action.new( fileSaveAction = TQt::Action.new(
"Save Chart", TQt::IconSet.new(TQt::Pixmap.new( "images/file_save.xpm" )), "Save Chart", TQt::IconSet.new(TQt::Pixmap.new( "images/file_save.xpm" )),
"&Save", TQt::KeySequence.new(CTRL+Key_S), self, "save" ) "&Save", TQt::KeySequence.new(CTRL+Key_S), self, "save" )
connect( fileSaveAction, SIGNAL( 'activated()' ), self, SLOT( 'fileSave()' ) ) connect( fileSaveAction, TQ_SIGNAL( 'activated()' ), self, TQ_SLOT( 'fileSave()' ) )
fileSaveAsAction = TQt::Action.new( fileSaveAsAction = TQt::Action.new(
"Save Chart As", TQt::IconSet.new(TQt::Pixmap.new( "images/file_save.xpm" )), "Save Chart As", TQt::IconSet.new(TQt::Pixmap.new( "images/file_save.xpm" )),
"Save &As...", TQt::KeySequence.new(0), self, "save as" ) "Save &As...", TQt::KeySequence.new(0), self, "save as" )
connect( fileSaveAsAction, SIGNAL( 'activated()' ), connect( fileSaveAsAction, TQ_SIGNAL( 'activated()' ),
self, SLOT( 'fileSaveAs()' ) ) self, TQ_SLOT( 'fileSaveAs()' ) )
fileSaveAsPixmapAction = TQt::Action.new( fileSaveAsPixmapAction = TQt::Action.new(
"Save Chart As Bitmap", TQt::IconSet.new(TQt::Pixmap.new( "images/file_save.xpm" )), "Save Chart As Bitmap", TQt::IconSet.new(TQt::Pixmap.new( "images/file_save.xpm" )),
"Save As &Bitmap...", TQt::KeySequence.new(CTRL+Key_B), self, "save as bitmap" ) "Save As &Bitmap...", TQt::KeySequence.new(CTRL+Key_B), self, "save as bitmap" )
connect( fileSaveAsPixmapAction, SIGNAL( 'activated()' ), connect( fileSaveAsPixmapAction, TQ_SIGNAL( 'activated()' ),
self, SLOT( 'fileSaveAsPixmap()' ) ) self, TQ_SLOT( 'fileSaveAsPixmap()' ) )
filePrintAction = TQt::Action.new( filePrintAction = TQt::Action.new(
"Print Chart", TQt::IconSet.new(TQt::Pixmap.new( "images/file_print.xpm" )), "Print Chart", TQt::IconSet.new(TQt::Pixmap.new( "images/file_print.xpm" )),
"&Print Chart...", TQt::KeySequence.new(CTRL+Key_P), self, "print chart" ) "&Print Chart...", TQt::KeySequence.new(CTRL+Key_P), self, "print chart" )
connect( filePrintAction, SIGNAL( 'activated()' ), connect( filePrintAction, TQ_SIGNAL( 'activated()' ),
self, SLOT( 'filePrint()' ) ) self, TQ_SLOT( 'filePrint()' ) )
optionsSetDataAction = TQt::Action.new( optionsSetDataAction = TQt::Action.new(
"Set Data", TQt::IconSet.new(TQt::Pixmap.new( "images/options_setdata.xpm" )), "Set Data", TQt::IconSet.new(TQt::Pixmap.new( "images/options_setdata.xpm" )),
"Set &Data...", TQt::KeySequence.new(CTRL+Key_D), self, "set data" ) "Set &Data...", TQt::KeySequence.new(CTRL+Key_D), self, "set data" )
connect( optionsSetDataAction, SIGNAL( 'activated()' ), connect( optionsSetDataAction, TQ_SIGNAL( 'activated()' ),
self, SLOT( 'optionsSetData()' ) ) self, TQ_SLOT( 'optionsSetData()' ) )
chartGroup = TQt::ActionGroup.new( self ) # Connected later chartGroup = TQt::ActionGroup.new( self ) # Connected later
@ -102,17 +102,17 @@ class ChartForm < TQt::MainWindow
optionsSetFontAction = TQt::Action.new( optionsSetFontAction = TQt::Action.new(
"Set Font", TQt::IconSet.new(TQt::Pixmap.new( "images/options_setfont.xpm" )), "Set Font", TQt::IconSet.new(TQt::Pixmap.new( "images/options_setfont.xpm" )),
"Set &Font...", TQt::KeySequence.new(CTRL+Key_F), self, "set font" ) "Set &Font...", TQt::KeySequence.new(CTRL+Key_F), self, "set font" )
connect( optionsSetFontAction, SIGNAL( 'activated()' ), connect( optionsSetFontAction, TQ_SIGNAL( 'activated()' ),
self, SLOT( 'optionsSetFont()' ) ) self, TQ_SLOT( 'optionsSetFont()' ) )
optionsSetOptionsAction = TQt::Action.new( optionsSetOptionsAction = TQt::Action.new(
"Set Options", TQt::IconSet.new(TQt::Pixmap.new( "images/options_setoptions.xpm" )), "Set Options", TQt::IconSet.new(TQt::Pixmap.new( "images/options_setoptions.xpm" )),
"Set &Options...", TQt::KeySequence.new(0), self, "set options" ) "Set &Options...", TQt::KeySequence.new(0), self, "set options" )
connect( optionsSetOptionsAction, SIGNAL( 'activated()' ), connect( optionsSetOptionsAction, TQ_SIGNAL( 'activated()' ),
self, SLOT( 'optionsSetOptions()' ) ) self, TQ_SLOT( 'optionsSetOptions()' ) )
fileQuitAction = TQt::Action.new( "Quit", "&Quit", TQt::KeySequence.new(CTRL+Key_Q), self, "quit" ) fileQuitAction = TQt::Action.new( "Quit", "&Quit", TQt::KeySequence.new(CTRL+Key_Q), self, "quit" )
connect( fileQuitAction, SIGNAL( 'activated()' ), self, SLOT( 'fileQuit()' ) ) connect( fileQuitAction, TQ_SIGNAL( 'activated()' ), self, TQ_SLOT( 'fileQuit()' ) )
fileTools = TQt::ToolBar.new( self, "file operations" ) fileTools = TQt::ToolBar.new( self, "file operations" )
@ -164,9 +164,9 @@ class ChartForm < TQt::MainWindow
helpMenu = TQt::PopupMenu.new( self ) helpMenu = TQt::PopupMenu.new( self )
menuBar().insertItem( "&Help", helpMenu ) menuBar().insertItem( "&Help", helpMenu )
helpMenu.insertItem( "&Help", self, SLOT('helpHelp()'), TQt::KeySequence.new(Key_F1) ) helpMenu.insertItem( "&Help", self, TQ_SLOT('helpHelp()'), TQt::KeySequence.new(Key_F1) )
helpMenu.insertItem( "&About", self, SLOT('helpAbout()') ) helpMenu.insertItem( "&About", self, TQ_SLOT('helpAbout()') )
helpMenu.insertItem( "About &Qt", self, SLOT('helpAboutQt()') ) helpMenu.insertItem( "About &Qt", self, TQ_SLOT('helpAboutQt()') )
@printer = nil @printer = nil
@ -198,8 +198,8 @@ class ChartForm < TQt::MainWindow
# Connect *after* we've set the chart type on so we don't call # Connect *after* we've set the chart type on so we don't call
# drawElements() prematurely. # drawElements() prematurely.
connect( chartGroup, SIGNAL( 'selected(TQAction*)' ), connect( chartGroup, TQ_SIGNAL( 'selected(TQAction*)' ),
self, SLOT( 'updateChartType(TQAction*)' ) ) self, TQ_SLOT( 'updateChartType(TQAction*)' ) )
resize( windowWidth, windowHeight ) resize( windowWidth, windowHeight )
if windowX != -1 || windowY != -1 if windowX != -1 || windowY != -1
@ -336,7 +336,7 @@ class ChartForm < TQt::MainWindow
end end
if i < @recentFiles.length() if i < @recentFiles.length()
@fileMenu.insertItem( "&%d %s" % [i + 1, @recentFiles[i]], @fileMenu.insertItem( "&%d %s" % [i + 1, @recentFiles[i]],
self, SLOT( 'fileOpenRecent(int)' ), self, TQ_SLOT( 'fileOpenRecent(int)' ),
TQt::KeySequence.new(0), i ) TQt::KeySequence.new(0), i )
end end
end end

@ -94,9 +94,9 @@ class OptionsForm < TQt::Dialog
@buttonsLayout.addWidget( @cancelPushButton ) @buttonsLayout.addWidget( @cancelPushButton )
@optionsFormLayout.addLayout( @buttonsLayout ) @optionsFormLayout.addLayout( @buttonsLayout )
connect( @fontPushButton, SIGNAL( 'clicked()' ), self, SLOT( 'chooseFont()' ) ) connect( @fontPushButton, TQ_SIGNAL( 'clicked()' ), self, TQ_SLOT( 'chooseFont()' ) )
connect( @okPushButton, SIGNAL( 'clicked()' ), self, SLOT( 'accept()' ) ) connect( @okPushButton, TQ_SIGNAL( 'clicked()' ), self, TQ_SLOT( 'accept()' ) )
connect( @cancelPushButton, SIGNAL( 'clicked()' ), self, SLOT( 'reject()' ) ) connect( @cancelPushButton, TQ_SIGNAL( 'clicked()' ), self, TQ_SLOT( 'reject()' ) )
@chartTypeTextLabel.setBuddy( @chartTypeComboBox ) @chartTypeTextLabel.setBuddy( @chartTypeComboBox )
@decimalPlacesTextLabel.setBuddy( @decimalPlacesSpinBox ) @decimalPlacesTextLabel.setBuddy( @decimalPlacesSpinBox )

@ -64,15 +64,15 @@ class SetDataForm < TQt::Dialog
@tableButtonBox.addLayout( @buttonBox ) @tableButtonBox.addLayout( @buttonBox )
connect( @table, SIGNAL( 'clicked(int,int,int,const TQPoint&)' ), connect( @table, TQ_SIGNAL( 'clicked(int,int,int,const TQPoint&)' ),
self, SLOT( 'setChosenColor(int,int)' ) ) self, TQ_SLOT( 'setChosenColor(int,int)' ) )
connect( @table, SIGNAL( 'currentChanged(int,int)' ), connect( @table, TQ_SIGNAL( 'currentChanged(int,int)' ),
self, SLOT( 'currentChanged(int,int)' ) ) self, TQ_SLOT( 'currentChanged(int,int)' ) )
connect( @table, SIGNAL( 'valueChanged(int,int)' ), connect( @table, TQ_SIGNAL( 'valueChanged(int,int)' ),
self, SLOT( 'valueChanged(int,int)' ) ) self, TQ_SLOT( 'valueChanged(int,int)' ) )
connect( @colorPushButton, SIGNAL( 'clicked()' ), self, SLOT( 'setColor()' ) ) connect( @colorPushButton, TQ_SIGNAL( 'clicked()' ), self, TQ_SLOT( 'setColor()' ) )
connect( okPushButton, SIGNAL( 'clicked()' ), self, SLOT( 'accept()' ) ) connect( okPushButton, TQ_SIGNAL( 'clicked()' ), self, TQ_SLOT( 'accept()' ) )
connect( cancelPushButton, SIGNAL( 'clicked()' ), self, SLOT( 'reject()' ) ) connect( cancelPushButton, TQ_SIGNAL( 'clicked()' ), self, TQ_SLOT( 'reject()' ) )
patterns = Array.new(MAX_PATTERNS) patterns = Array.new(MAX_PATTERNS)
patterns[0] = TQt::Pixmap.new( "images/pattern01.xpm" ) patterns[0] = TQt::Pixmap.new( "images/pattern01.xpm" )

@ -55,8 +55,8 @@ class CheckLists < TQt::Widget
copy1 = TQt::PushButton.new(' -> ', self) copy1 = TQt::PushButton.new(' -> ', self)
tmp.addWidget(copy1) tmp.addWidget(copy1)
copy1.setMaximumWidth(copy1.sizeHint.width) copy1.setMaximumWidth(copy1.sizeHint.width)
# connect the SIGNAL clicked() of the pushbutton with the SLOT copy1to2() # connect the TQ_SIGNAL clicked() of the pushbutton with the TQ_SLOT copy1to2()
connect(copy1, SIGNAL('clicked()'), self, SLOT('copy1to2()')) connect(copy1, TQ_SIGNAL('clicked()'), self, TQ_SLOT('copy1to2()'))
# another widget for layouting # another widget for layouting
vbox2 = TQt::VBoxLayout.new(lay) vbox2 = TQt::VBoxLayout.new(lay)
@ -79,8 +79,8 @@ class CheckLists < TQt::Widget
copy2 = TQt::PushButton.new(' -> ', self) copy2 = TQt::PushButton.new(' -> ', self)
lay.addWidget( copy2 ) lay.addWidget( copy2 )
copy2.setMaximumWidth(copy2.sizeHint.width) copy2.setMaximumWidth(copy2.sizeHint.width)
# ...and connect its clicked() SIGNAL to the copy2to3() SLOT # ...and connect its clicked() TQ_SIGNAL to the copy2to3() TQ_SLOT
connect(copy2, SIGNAL('clicked()'), self, SLOT('copy2to3()')) connect(copy2, TQ_SIGNAL('clicked()'), self, TQ_SLOT('copy2to3()'))
tmp = TQt::VBoxLayout.new(lay) tmp = TQt::VBoxLayout.new(lay)
tmp.setMargin(5) tmp.setMargin(5)
@ -90,7 +90,7 @@ class CheckLists < TQt::Widget
tmp.addWidget(@label) tmp.addWidget(@label)
end end
# SLOT copy1to2() # TQ_SLOT copy1to2()
# #
# Copies all checked ListViewItems from the first ListView to # Copies all checked ListViewItems from the first ListView to
# the second one, and inserts them as Radio-ListViewItem. # the second one, and inserts them as Radio-ListViewItem.
@ -121,7 +121,7 @@ class CheckLists < TQt::Widget
end end
# SLOT copy2to3() # TQ_SLOT copy2to3()
# #
# Copies the checked item of the second ListView into the # Copies the checked item of the second ListView into the
# Label at the right. # Label at the right.

@ -27,16 +27,16 @@ class Viewer < TQt::Widget
@defaultButton = TQt::PushButton.new('Default', self, 'pushbutton1') @defaultButton = TQt::PushButton.new('Default', self, 'pushbutton1')
@defaultButton.setFont(TQt::Font.new('times')) @defaultButton.setFont(TQt::Font.new('times'))
connect(@defaultButton, SIGNAL('clicked()'), self, SLOT('setDefault()')) connect(@defaultButton, TQ_SIGNAL('clicked()'), self, TQ_SLOT('setDefault()'))
@sansSerifButton = TQt::PushButton.new('Sans Serif', self, 'pushbutton2') @sansSerifButton = TQt::PushButton.new('Sans Serif', self, 'pushbutton2')
@sansSerifButton.setFont(TQt::Font.new('Helvetica', 12)) @sansSerifButton.setFont(TQt::Font.new('Helvetica', 12))
connect(@sansSerifButton, SIGNAL('clicked()'), self, SLOT('setSansSerif()')) connect(@sansSerifButton, TQ_SIGNAL('clicked()'), self, TQ_SLOT('setSansSerif()'))
@italicsButton = TQt::PushButton.new('Italics', self, 'pushbutton1') @italicsButton = TQt::PushButton.new('Italics', self, 'pushbutton1')
@italicsButton.setFont(TQt::Font.new('lucida', 12, TQt::Font.Bold, true)) @italicsButton.setFont(TQt::Font.new('lucida', 12, TQt::Font.Bold, true))
connect(@italicsButton, SIGNAL('clicked()'), self, SLOT('setItalics()')) connect(@italicsButton, TQ_SIGNAL('clicked()'), self, TQ_SLOT('setItalics()'))
layout layout
end end

@ -26,8 +26,8 @@ class Forever < TQt::Widget
@rectangles = 0 @rectangles = 0
startTimer( 0 ) # run continuous timer startTimer( 0 ) # run continuous timer
counter = TQt::Timer.new( self ) counter = TQt::Timer.new( self )
connect( counter, SIGNAL("timeout()"), connect( counter, TQ_SIGNAL("timeout()"),
self, SLOT("updateCaption()") ) self, TQ_SLOT("updateCaption()") )
counter.start( 1000 ) counter.start( 1000 )
end end

@ -13,7 +13,7 @@ class Hello < TQt::Widget
@text = text @text = text
@sin_tbl = [0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38] @sin_tbl = [0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38]
timer = TQt::Timer.new(self); timer = TQt::Timer.new(self);
connect(timer, SIGNAL('timeout()'), SLOT('animate()')) connect(timer, TQ_SIGNAL('timeout()'), TQ_SLOT('animate()'))
timer.start(40); timer.start(40);
resize(260, 130) resize(260, 130)

@ -14,7 +14,7 @@ end
h = Hello.new(s) h = Hello.new(s)
h.setCaption('QtRuby says hello') h.setCaption('QtRuby says hello')
h.connect(h, SIGNAL('clicked()'), a, SLOT('quit()')) h.connect(h, TQ_SIGNAL('clicked()'), a, TQ_SLOT('quit()'))
h.setFont(TQt::Font.new('times', 32, TQt::Font.Bold)) # default font h.setFont(TQt::Font.new('times', 32, TQt::Font.Bold)) # default font
h.setBackgroundColor(TQt::white) # default bg color h.setBackgroundColor(TQt::white) # default bg color
a.setMainWidget(h) a.setMainWidget(h)

@ -118,18 +118,18 @@ class CPUWaster < TQt::Widget
FIRST_DRAW_ITEM.upto(LAST_DRAW_ITEM) { FIRST_DRAW_ITEM.upto(LAST_DRAW_ITEM) {
|i| file.insertItem( "#{drawItemRects(i)} Rectangles", i) |i| file.insertItem( "#{drawItemRects(i)} Rectangles", i)
} }
connect( menubar, SIGNAL('activated(int)'), self, SLOT('doMenuItem(int)') ) connect( menubar, TQ_SIGNAL('activated(int)'), self, TQ_SLOT('doMenuItem(int)') )
@file.insertSeparator @file.insertSeparator
@file.insertItem("Quit", $qApp, SLOT('quit()')) @file.insertItem("Quit", $qApp, TQ_SLOT('quit()'))
@options = TQt::PopupMenu.new @options = TQt::PopupMenu.new
@menubar.insertItem("&Options", options) @menubar.insertItem("&Options", options)
@td_id = options.insertItem("Timer driven", self, SLOT('timerDriven()')) @td_id = options.insertItem("Timer driven", self, TQ_SLOT('timerDriven()'))
@ld_id = options.insertItem("Loop driven", self, SLOT('loopDriven()')) @ld_id = options.insertItem("Loop driven", self, TQ_SLOT('loopDriven()'))
@options.insertSeparator @options.insertSeparator
@dl_id = options.insertItem("Default label", self, SLOT('defaultLabel()')) @dl_id = options.insertItem("Default label", self, TQ_SLOT('defaultLabel()'))
@cl_id = options.insertItem("Custom label", self, SLOT('customLabel()')) @cl_id = options.insertItem("Custom label", self, TQ_SLOT('customLabel()'))
@options.insertSeparator @options.insertSeparator
@md_id = options.insertItem("No minimum duration", self, SLOT('toggleMinimumDuration()')) @md_id = options.insertItem("No minimum duration", self, TQ_SLOT('toggleMinimumDuration()'))
@options.setCheckable true @options.setCheckable true
loopDriven loopDriven
@ -239,7 +239,7 @@ class CPUWaster < TQt::Widget
@rects = n @rects = n
@pb = newProgressDialog("Drawing rectangles.\nUsing timer event.", n, false) @pb = newProgressDialog("Drawing rectangles.\nUsing timer event.", n, false)
@pb.setCaption("Please Wait") @pb.setCaption("Please Wait")
connect(@pb, SIGNAL('cancelled()'), self, SLOT('stopDrawing()')) connect(@pb, TQ_SIGNAL('cancelled()'), self, TQ_SLOT('stopDrawing()'))
enableDrawingItems(false) enableDrawingItems(false)
startTimer(0) startTimer(0)
@got_stop = false @got_stop = false

@ -48,7 +48,7 @@ class TicTacGameBoard < TQt::Widget
ttb = TicTacButton.new(self) ttb = TicTacButton.new(self)
ttb.setPalette(p) ttb.setPalette(p)
ttb.setEnabled(false) ttb.setEnabled(false)
connect(ttb, SIGNAL('clicked()'), self, SLOT('buttonClicked()')) connect(ttb, TQ_SIGNAL('clicked()'), self, TQ_SLOT('buttonClicked()'))
grid.addWidget(ttb, i % @nBoard, i / @nBoard) grid.addWidget(ttb, i % @nBoard, i / @nBoard)
@buttons[i] = ttb @buttons[i] = ttb
@btArray[i] = TicTacButton::Blank @btArray[i] = TicTacButton::Blank
@ -262,7 +262,7 @@ class TicTacToe < TQt::Widget
# Create the game board and connect the signal finished() # Create the game board and connect the signal finished()
# to this/self gameOver() slot # to this/self gameOver() slot
@board = TicTacGameBoard.new(boardSize, self) @board = TicTacGameBoard.new(boardSize, self)
connect(@board, SIGNAL('finished()'), self, SLOT('gameOver()')); connect(@board, TQ_SIGNAL('finished()'), self, TQ_SLOT('gameOver()'));
l.addWidget(@board) l.addWidget(@board)
# Create a horizontal frame line # Create a horizontal frame line
@ -279,9 +279,9 @@ class TicTacToe < TQt::Widget
# Create the push buttons and connect their signals to the right slots # Create the push buttons and connect their signals to the right slots
@newGame = TQt::PushButton.new('Play!', self) @newGame = TQt::PushButton.new('Play!', self)
connect(@newGame, SIGNAL('clicked()'), self, SLOT('newGameClicked()')) connect(@newGame, TQ_SIGNAL('clicked()'), self, TQ_SLOT('newGameClicked()'))
@quit = TQt::PushButton.new('Quit', self) @quit = TQt::PushButton.new('Quit', self)
connect(@quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(@quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
b = TQt::HBoxLayout.new b = TQt::HBoxLayout.new
l.addLayout(b) l.addLayout(b)
b.addWidget(@newGame) b.addWidget(@newGame)

@ -26,7 +26,7 @@ require 'Qt'
# create a pop-up menu # create a pop-up menu
@_popupmenu = TQt::PopupMenu.new() @_popupmenu = TQt::PopupMenu.new()
@_popupmenu.insertItem( "&Clear", self, SLOT( "slotClearArea()" ) ) @_popupmenu.insertItem( "&Clear", self, TQ_SLOT( "slotClearArea()" ) )
end end
# #
@ -159,10 +159,10 @@ class ScribbleWindow < TQt::Widget
# The next lines build the menu bar. We first create the menus # The next lines build the menu bar. We first create the menus
# one by one, then add them to the menu bar. # # one by one, then add them to the menu bar. #
@_filemenu = TQt::PopupMenu.new() # create a file menu @_filemenu = TQt::PopupMenu.new() # create a file menu
@_filemenu.insertItem( "&Load", self, SLOT( "slotLoad()" ) ) @_filemenu.insertItem( "&Load", self, TQ_SLOT( "slotLoad()" ) )
@_filemenu.insertItem( "&Save", self, SLOT( "slotSave()" ) ) @_filemenu.insertItem( "&Save", self, TQ_SLOT( "slotSave()" ) )
@_filemenu.insertSeparator() @_filemenu.insertSeparator()
@_filemenu.insertItem( "&Quit", $qApp, SLOT( "quit()" ) ) @_filemenu.insertItem( "&Quit", $qApp, TQ_SLOT( "quit()" ) )
@_colormenu = TQt::PopupMenu.new() # create a color menu @_colormenu = TQt::PopupMenu.new() # create a color menu
@_colormenu.insertItem( "B&lack", COLOR_MENU_ID_BLACK) @_colormenu.insertItem( "B&lack", COLOR_MENU_ID_BLACK)
@ -170,12 +170,12 @@ class ScribbleWindow < TQt::Widget
@_colormenu.insertItem( "&Blue", COLOR_MENU_ID_BLUE) @_colormenu.insertItem( "&Blue", COLOR_MENU_ID_BLUE)
@_colormenu.insertItem( "&Green", COLOR_MENU_ID_GREEN) @_colormenu.insertItem( "&Green", COLOR_MENU_ID_GREEN)
@_colormenu.insertItem( "&Yellow", COLOR_MENU_ID_YELLOW) @_colormenu.insertItem( "&Yellow", COLOR_MENU_ID_YELLOW)
TQt::Object.connect( @_colormenu, SIGNAL( "activated( int )" ), TQt::Object.connect( @_colormenu, TQ_SIGNAL( "activated( int )" ),
self, SLOT( "slotColorMenu( int )" ) ) self, TQ_SLOT( "slotColorMenu( int )" ) )
@_helpmenu = TQt::PopupMenu.new() # create a help menu @_helpmenu = TQt::PopupMenu.new() # create a help menu
@_helpmenu.insertItem( "&About QtScribble", self, SLOT( "slotAbout()" ) ) @_helpmenu.insertItem( "&About QtScribble", self, TQ_SLOT( "slotAbout()" ) )
@_helpmenu.insertItem( "&About Qt", self, SLOT( "slotAboutQt()" ) ) @_helpmenu.insertItem( "&About Qt", self, TQ_SLOT( "slotAboutQt()" ) )
@_menubar = TQt::MenuBar.new( self, "" ) # create a menu bar @_menubar = TQt::MenuBar.new( self, "" ) # create a menu bar
@_menubar.insertItem( "&File", @_filemenu ) @_menubar.insertItem( "&File", @_filemenu )
@ -190,12 +190,12 @@ class ScribbleWindow < TQt::Widget
@_scribblearea = ScribbleArea.new() @_scribblearea = ScribbleArea.new()
@_scribblearea.setGeometry( 0, 0, 1000, 1000 ) @_scribblearea.setGeometry( 0, 0, 1000, 1000 )
@_scrollview.addChild( @_scribblearea ) @_scrollview.addChild( @_scribblearea )
TQt::Object.connect( self, SIGNAL( "colorChanged(TQColor)" ), TQt::Object.connect( self, TQ_SIGNAL( "colorChanged(TQColor)" ),
@_scribblearea, SLOT( "setColor(TQColor)" ) ) @_scribblearea, TQ_SLOT( "setColor(TQColor)" ) )
TQt::Object.connect( self, SIGNAL( "save(const TQString&)" ), TQt::Object.connect( self, TQ_SIGNAL( "save(const TQString&)" ),
@_scribblearea, SLOT( "slotSave(const TQString&)" ) ) @_scribblearea, TQ_SLOT( "slotSave(const TQString&)" ) )
TQt::Object.connect( self, SIGNAL( "load(const TQString&)" ), TQt::Object.connect( self, TQ_SIGNAL( "load(const TQString&)" ),
@_scribblearea, SLOT( "slotLoad(const TQString&)" ) ) @_scribblearea, TQ_SLOT( "slotLoad(const TQString&)" ) )
end end
def resizeEvent( event ) def resizeEvent( event )

@ -96,14 +96,14 @@ class CameraDialog < TQt::Dialog
# The Close button # The Close button
button = TQt::PushButton.new('Close', self, 'Dialog Close') button = TQt::PushButton.new('Close', self, 'Dialog Close')
connect(button, SIGNAL('clicked()'), self, SLOT('close()')) connect(button, TQ_SIGNAL('clicked()'), self, TQ_SLOT('close()'))
button.setDefault(true) button.setDefault(true)
button.setFixedSize(button.sizeHint()) button.setFixedSize(button.sizeHint())
buttonLayout.addWidget(button) buttonLayout.addWidget(button)
# The Close button # The Close button
button = TQt::PushButton.new('Reset', self, 'Dialog Reset') button = TQt::PushButton.new('Reset', self, 'Dialog Reset')
connect(button, SIGNAL('clicked()'), self, SLOT('slotReset()')) connect(button, TQ_SIGNAL('clicked()'), self, TQ_SLOT('slotReset()'))
button.setFixedSize(button.sizeHint()) button.setFixedSize(button.sizeHint())
buttonLayout.addWidget(button) buttonLayout.addWidget(button)
@ -133,7 +133,7 @@ class CameraDialog < TQt::Dialog
layout.addWidget(slider, row, 1) layout.addWidget(slider, row, 1)
# Connection from slider signal to our slot # Connection from slider signal to our slot
connect(slider, SIGNAL('valueChanged(int)'), self, SLOT(slot)) connect(slider, TQ_SIGNAL('valueChanged(int)'), self, TQ_SLOT(slot))
# Number display # Number display
num = TQt::Label.new('XXXXX', box) num = TQt::Label.new('XXXXX', box)

@ -51,7 +51,7 @@ class World < TQt::Object
} }
@clock = TQt::Timer.new() @clock = TQt::Timer.new()
connect(@clock, SIGNAL('timeout()'), self, SLOT('slotMove()')) connect(@clock, TQ_SIGNAL('timeout()'), self, TQ_SLOT('slotMove()'))
@camera = Camera.new # Reads values from params @camera = Camera.new # Reads values from params
setupTranslation() setupTranslation()

@ -31,7 +31,7 @@ class WorldWindow < TQt::MainWindow
# Create and populate file menu # Create and populate file menu
menu = TQt::PopupMenu.new(self) menu = TQt::PopupMenu.new(self)
menu.insertItem("Exit", $qApp, SLOT("quit()"), TQt::KeySequence.new(CTRL+Key_Q)) menu.insertItem("Exit", $qApp, TQ_SLOT("quit()"), TQt::KeySequence.new(CTRL+Key_Q))
# Add file menu to menu bar # Add file menu to menu bar
menuBar.insertItem("&File", menu) menuBar.insertItem("&File", menu)
@ -42,7 +42,7 @@ class WorldWindow < TQt::MainWindow
# Add options menu to menu bar and link it to method below # Add options menu to menu bar and link it to method below
menuBar.insertItem("&Options", menu) menuBar.insertItem("&Options", menu)
connect(menu, SIGNAL("activated(int)"), self, SLOT('slotMenuActivated(int)')) connect(menu, TQ_SIGNAL("activated(int)"), self, TQ_SLOT('slotMenuActivated(int)'))
end end

@ -21,7 +21,7 @@ def bug3
@file.insertSeparator @file.insertSeparator
TQt::debug_level = TQt::DebugLevel::High TQt::debug_level = TQt::DebugLevel::High
p $qApp p $qApp
@file.insertItem("Quit", $qApp, SLOT('quit()')) @file.insertItem("Quit", $qApp, TQ_SLOT('quit()'))
@file.exec @file.exec
end end
#bug3 #bug3

@ -40,7 +40,7 @@ class MyTextEditor < TQt::TextEdit
end end
def createPopupMenu(pos) # virtual def createPopupMenu(pos) # virtual
pm = TQt::PopupMenu.new pm = TQt::PopupMenu.new
pm.insertItem("Insert Image!", self, SLOT('insert_icon()')) pm.insertItem("Insert Image!", self, TQ_SLOT('insert_icon()'))
pm pm
end end
def has_metadata def has_metadata
@ -111,18 +111,18 @@ class MyWidget < TQt::MainWindow
def initialize() def initialize()
super super
@editor = MyTextEditor.new(self) @editor = MyTextEditor.new(self)
connect(@editor, SIGNAL('textChanged()'), self, SLOT('text_changed()')) connect(@editor, TQ_SIGNAL('textChanged()'), self, TQ_SLOT('text_changed()'))
connect(@editor, SIGNAL('saved()'), self, SLOT('saved()')) connect(@editor, TQ_SIGNAL('saved()'), self, TQ_SLOT('saved()'))
fileTools = TQt::ToolBar.new(self, "file operations") fileTools = TQt::ToolBar.new(self, "file operations")
fileMenu = TQt::PopupMenu.new(self) fileMenu = TQt::PopupMenu.new(self)
actions = [ actions = [
RAction.new("&New", Icons::FILE_NEW, @editor, SLOT('new()'), [fileTools, fileMenu]), RAction.new("&New", Icons::FILE_NEW, @editor, TQ_SLOT('new()'), [fileTools, fileMenu]),
RAction.new("&Open...", Icons::FILE_OPEN, @editor, SLOT('open()'), [fileTools, fileMenu]), RAction.new("&Open...", Icons::FILE_OPEN, @editor, TQ_SLOT('open()'), [fileTools, fileMenu]),
@save = RAction.new("Save &As...", Icons::FILE_SAVE_AS, @editor, SLOT('save_as()'), [fileTools, fileMenu]), @save = RAction.new("Save &As...", Icons::FILE_SAVE_AS, @editor, TQ_SLOT('save_as()'), [fileTools, fileMenu]),
RSeperator.new([fileMenu]), RSeperator.new([fileMenu]),
RAction.new("E&xit", Icons::EXIT, $qApp, SLOT('quit()'), [fileMenu]) RAction.new("E&xit", Icons::EXIT, $qApp, TQ_SLOT('quit()'), [fileMenu])
] ]
build_actions(actions) build_actions(actions)

@ -277,13 +277,13 @@ module TQt
def inspect def inspect
str = super str = super
str.sub(/>$/, " memberName=%s, memberType=%s, object=%s>" % str.sub(/>$/, " memberName=%s, memberType=%s, object=%s>" %
[memberName.inspect, memberType == 1 ? "SLOT" : "SIGNAL", object.inspect] ) [memberName.inspect, memberType == 1 ? "TQ_SLOT" : "TQ_SIGNAL", object.inspect] )
end end
def pretty_print(pp) def pretty_print(pp)
str = to_s str = to_s
pp.text str.sub(/>$/, "\n memberName=%s,\n memberType=%s,\n object=%s>" % pp.text str.sub(/>$/, "\n memberName=%s,\n memberType=%s,\n object=%s>" %
[memberName.inspect, memberType == 1 ? "SLOT" : "SIGNAL", object.inspect] ) [memberName.inspect, memberType == 1 ? "TQ_SLOT" : "TQ_SIGNAL", object.inspect] )
end end
end end
@ -1758,7 +1758,7 @@ module TQt
return TQt::Object.connect( src, return TQt::Object.connect( src,
signal, signal,
TQt::BlockInvocation.new(target, block, signature), TQt::BlockInvocation.new(target, block, signature),
SLOT("invoke(#{signature})") ) TQ_SLOT("invoke(#{signature})") )
end end
def Internal.signal_connect(src, signal, block) def Internal.signal_connect(src, signal, block)
@ -1766,7 +1766,7 @@ module TQt
return TQt::Object.connect( src, return TQt::Object.connect( src,
signal, signal,
TQt::SignalBlockInvocation.new(src, block, signature), TQt::SignalBlockInvocation.new(src, block, signature),
SLOT("invoke(#{signature})") ) TQ_SLOT("invoke(#{signature})") )
end end
end # TQt::Internal end # TQt::Internal
@ -1878,7 +1878,7 @@ module TQt
end # Qt end # Qt
class Object class Object
def SIGNAL(signal) def TQ_SIGNAL(signal)
if signal.kind_of? Symbol if signal.kind_of? Symbol
return "2" + signal.to_s + "()" return "2" + signal.to_s + "()"
else else
@ -1886,7 +1886,7 @@ class Object
end end
end end
def SLOT(slot) def TQ_SLOT(slot)
if slot.kind_of? Symbol if slot.kind_of? Symbol
return "1" + slot.to_s + "()" return "1" + slot.to_s + "()"
else else

@ -10,8 +10,8 @@ class LCDRange < TQt::VBox
@slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider') @slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider')
@slider.setRange(0, 99) @slider.setRange(0, 99)
@slider.setValue(0) @slider.setValue(0)
connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), lcd, TQ_SLOT('display(int)'))
connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
setFocusProxy(@slider) setFocusProxy(@slider)
end end

@ -11,7 +11,7 @@ class MyWidget < TQt::Widget
quit = TQt::PushButton.new('Quit', self, 'quit') quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
angle = LCDRange.new( self, 'angle' ) angle = LCDRange.new( self, 'angle' )
angle.setRange( 5, 70 ) angle.setRange( 5, 70 )
@ -21,15 +21,15 @@ class MyWidget < TQt::Widget
cannonField = CannonField.new( self, 'cannonField' ) cannonField = CannonField.new( self, 'cannonField' )
connect( angle, SIGNAL('valueChanged(int)'), connect( angle, TQ_SIGNAL('valueChanged(int)'),
cannonField, SLOT('setAngle(int)') ) cannonField, TQ_SLOT('setAngle(int)') )
connect( cannonField, SIGNAL('angleChanged(int)'), connect( cannonField, TQ_SIGNAL('angleChanged(int)'),
angle, SLOT('setValue(int)') ) angle, TQ_SLOT('setValue(int)') )
connect( force, SIGNAL('valueChanged(int)'), connect( force, TQ_SIGNAL('valueChanged(int)'),
cannonField, SLOT('setForce(int)') ) cannonField, TQ_SLOT('setForce(int)') )
connect( cannonField, SIGNAL('forceChanged(int)'), connect( cannonField, TQ_SIGNAL('forceChanged(int)'),
force, SLOT('setValue(int)') ) force, TQ_SLOT('setValue(int)') )
grid = TQt::GridLayout.new( self, 2, 2, 10 ) grid = TQt::GridLayout.new( self, 2, 2, 10 )
grid.addWidget( quit, 0, 0 ) grid.addWidget( quit, 0, 0 )

@ -12,8 +12,8 @@ class CannonField < TQt::Widget
@f = 0 @f = 0
@timerCount = 0; @timerCount = 0;
@autoShootTimer = TQt::Timer.new( self, 'movement handler' ) @autoShootTimer = TQt::Timer.new( self, 'movement handler' )
connect( @autoShootTimer, SIGNAL('timeout()'), connect( @autoShootTimer, TQ_SIGNAL('timeout()'),
self, SLOT('moveShot()') ); self, TQ_SLOT('moveShot()') );
@shoot_ang = 0 @shoot_ang = 0
@shoot_f = 0 @shoot_f = 0
setPalette( TQt::Palette.new( TQt::Color.new( 250, 250, 200) ) ) setPalette( TQt::Palette.new( TQt::Color.new( 250, 250, 200) ) )

@ -10,8 +10,8 @@ class LCDRange < TQt::VBox
@slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider') @slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider')
@slider.setRange(0, 99) @slider.setRange(0, 99)
@slider.setValue(0) @slider.setValue(0)
connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), lcd, TQ_SLOT('display(int)'))
connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
setFocusProxy(@slider) setFocusProxy(@slider)
end end

@ -11,7 +11,7 @@ class MyWidget < TQt::Widget
quit = TQt::PushButton.new('Quit', self, 'quit') quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
angle = LCDRange.new( self, 'angle' ) angle = LCDRange.new( self, 'angle' )
angle.setRange( 5, 70 ) angle.setRange( 5, 70 )
@ -21,20 +21,20 @@ class MyWidget < TQt::Widget
cannonField = CannonField.new( self, 'cannonField' ) cannonField = CannonField.new( self, 'cannonField' )
connect( angle, SIGNAL('valueChanged(int)'), connect( angle, TQ_SIGNAL('valueChanged(int)'),
cannonField, SLOT('setAngle(int)') ) cannonField, TQ_SLOT('setAngle(int)') )
connect( cannonField, SIGNAL('angleChanged(int)'), connect( cannonField, TQ_SIGNAL('angleChanged(int)'),
angle, SLOT('setValue(int)') ) angle, TQ_SLOT('setValue(int)') )
connect( force, SIGNAL('valueChanged(int)'), connect( force, TQ_SIGNAL('valueChanged(int)'),
cannonField, SLOT('setForce(int)') ) cannonField, TQ_SLOT('setForce(int)') )
connect( cannonField, SIGNAL('forceChanged(int)'), connect( cannonField, TQ_SIGNAL('forceChanged(int)'),
force, SLOT('setValue(int)') ) force, TQ_SLOT('setValue(int)') )
shoot = TQt::PushButton.new( '&Shoot', self, 'shoot' ) shoot = TQt::PushButton.new( '&Shoot', self, 'shoot' )
shoot.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) ) shoot.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) )
connect( shoot, SIGNAL('clicked()'), cannonField, SLOT('shoot()') ) connect( shoot, TQ_SIGNAL('clicked()'), cannonField, TQ_SLOT('shoot()') )
grid = TQt::GridLayout.new( self, 2, 2, 10 ) grid = TQt::GridLayout.new( self, 2, 2, 10 )
grid.addWidget( quit, 0, 0 ) grid.addWidget( quit, 0, 0 )

@ -12,8 +12,8 @@ class CannonField < TQt::Widget
@f = 0 @f = 0
@timerCount = 0; @timerCount = 0;
@autoShootTimer = TQt::Timer.new( self, 'movement handler' ) @autoShootTimer = TQt::Timer.new( self, 'movement handler' )
connect( @autoShootTimer, SIGNAL('timeout()'), connect( @autoShootTimer, TQ_SIGNAL('timeout()'),
self, SLOT('moveShot()') ); self, TQ_SLOT('moveShot()') );
@shoot_ang = 0 @shoot_ang = 0
@shoot_f = 0 @shoot_f = 0
@target = TQt::Point.new(0, 0) @target = TQt::Point.new(0, 0)

@ -17,8 +17,8 @@ class LCDRange < TQt::VBox
@slider.setValue(0) @slider.setValue(0)
@label = TQt::Label.new( ' ', self, 'label' ) @label = TQt::Label.new( ' ', self, 'label' )
@label.setAlignment( TQt::AlignCenter ) @label.setAlignment( TQt::AlignCenter )
connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), lcd, TQ_SLOT('display(int)'))
connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
setFocusProxy(@slider) setFocusProxy(@slider)
end end

@ -12,7 +12,7 @@ class MyWidget < TQt::Widget
quit = TQt::PushButton.new('&Quit', self, 'quit') quit = TQt::PushButton.new('&Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
angle = LCDRange.new( 'ANGLE', self, 'angle' ) angle = LCDRange.new( 'ANGLE', self, 'angle' )
angle.setRange( 5, 70 ) angle.setRange( 5, 70 )
@ -22,20 +22,20 @@ class MyWidget < TQt::Widget
cannonField = CannonField.new( self, 'cannonField' ) cannonField = CannonField.new( self, 'cannonField' )
connect( angle, SIGNAL('valueChanged(int)'), connect( angle, TQ_SIGNAL('valueChanged(int)'),
cannonField, SLOT('setAngle(int)') ) cannonField, TQ_SLOT('setAngle(int)') )
connect( cannonField, SIGNAL('angleChanged(int)'), connect( cannonField, TQ_SIGNAL('angleChanged(int)'),
angle, SLOT('setValue(int)') ) angle, TQ_SLOT('setValue(int)') )
connect( force, SIGNAL('valueChanged(int)'), connect( force, TQ_SIGNAL('valueChanged(int)'),
cannonField, SLOT('setForce(int)') ) cannonField, TQ_SLOT('setForce(int)') )
connect( cannonField, SIGNAL('forceChanged(int)'), connect( cannonField, TQ_SIGNAL('forceChanged(int)'),
force, SLOT('setValue(int)') ) force, TQ_SLOT('setValue(int)') )
shoot = TQt::PushButton.new( '&Shoot', self, 'shoot' ) shoot = TQt::PushButton.new( '&Shoot', self, 'shoot' )
shoot.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) ) shoot.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) )
connect( shoot, SIGNAL('clicked()'), cannonField, SLOT('shoot()') ) connect( shoot, TQ_SIGNAL('clicked()'), cannonField, TQ_SLOT('shoot()') )
grid = TQt::GridLayout.new( self, 2, 2, 10 ) grid = TQt::GridLayout.new( self, 2, 2, 10 )
grid.addWidget( quit, 0, 0 ) grid.addWidget( quit, 0, 0 )

@ -16,8 +16,8 @@ class CannonField < TQt::Widget
@f = 0 @f = 0
@timerCount = 0; @timerCount = 0;
@autoShootTimer = TQt::Timer.new( self, "movement handler" ) @autoShootTimer = TQt::Timer.new( self, "movement handler" )
connect( @autoShootTimer, SIGNAL('timeout()'), connect( @autoShootTimer, TQ_SIGNAL('timeout()'),
self, SLOT('moveShot()') ); self, TQ_SLOT('moveShot()') );
@shoot_ang = 0 @shoot_ang = 0
@shoot_f = 0 @shoot_f = 0
@target = TQt::Point.new(0, 0) @target = TQt::Point.new(0, 0)

@ -11,7 +11,7 @@ class GameBoard < TQt::Widget
quit = TQt::PushButton.new('&Quit', self, 'quit') quit = TQt::PushButton.new('&Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
angle = LCDRange.new( 'ANGLE', self, 'angle' ) angle = LCDRange.new( 'ANGLE', self, 'angle' )
angle.setRange( 5, 70 ) angle.setRange( 5, 70 )
@ -21,32 +21,32 @@ class GameBoard < TQt::Widget
@cannonField = CannonField.new( self, 'cannonField' ) @cannonField = CannonField.new( self, 'cannonField' )
connect( angle, SIGNAL('valueChanged(int)'), connect( angle, TQ_SIGNAL('valueChanged(int)'),
@cannonField, SLOT('setAngle(int)') ) @cannonField, TQ_SLOT('setAngle(int)') )
connect( @cannonField, SIGNAL('angleChanged(int)'), connect( @cannonField, TQ_SIGNAL('angleChanged(int)'),
angle, SLOT('setValue(int)') ) angle, TQ_SLOT('setValue(int)') )
connect( force, SIGNAL('valueChanged(int)'), connect( force, TQ_SIGNAL('valueChanged(int)'),
@cannonField, SLOT('setForce(int)') ) @cannonField, TQ_SLOT('setForce(int)') )
connect( @cannonField, SIGNAL('forceChanged(int)'), connect( @cannonField, TQ_SIGNAL('forceChanged(int)'),
force, SLOT('setValue(int)') ) force, TQ_SLOT('setValue(int)') )
connect( @cannonField, SIGNAL('hit()'), connect( @cannonField, TQ_SIGNAL('hit()'),
self, SLOT('hit()') ) self, TQ_SLOT('hit()') )
connect( @cannonField, SIGNAL('missed()'), connect( @cannonField, TQ_SIGNAL('missed()'),
self, SLOT('missed()') ) self, TQ_SLOT('missed()') )
shoot = TQt::PushButton.new( '&Shoot', self, 'shoot' ) shoot = TQt::PushButton.new( '&Shoot', self, 'shoot' )
shoot.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) ) shoot.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) )
connect( shoot, SIGNAL('clicked()'), SLOT('fire()') ) connect( shoot, TQ_SIGNAL('clicked()'), TQ_SLOT('fire()') )
connect( @cannonField, SIGNAL('canShoot(bool)'), connect( @cannonField, TQ_SIGNAL('canShoot(bool)'),
shoot, SLOT('setEnabled(bool)') ) shoot, TQ_SLOT('setEnabled(bool)') )
restart = TQt::PushButton.new( '&New Game', self, 'newgame' ) restart = TQt::PushButton.new( '&New Game', self, 'newgame' )
restart.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) ) restart.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) )
connect( restart, SIGNAL('clicked()'), self, SLOT('newGame()') ) connect( restart, TQ_SIGNAL('clicked()'), self, TQ_SLOT('newGame()') )
@hits = TQt::LCDNumber.new( 2, self, 'hits' ) @hits = TQt::LCDNumber.new( 2, self, 'hits' )
@shotsLeft = TQt::LCDNumber.new( 2, self, 'shotsleft' ) @shotsLeft = TQt::LCDNumber.new( 2, self, 'shotsleft' )

@ -19,8 +19,8 @@ class LCDRange < TQt::Widget
@label = TQt::Label.new( ' ', self, 'label' ) @label = TQt::Label.new( ' ', self, 'label' )
@label.setAlignment( TQt::AlignCenter ) @label.setAlignment( TQt::AlignCenter )
connect(@slider, SIGNAL('valueChanged(int)'), @lcd, SLOT('display(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), @lcd, TQ_SLOT('display(int)'))
connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
setFocusProxy(@slider) setFocusProxy(@slider)

@ -15,8 +15,8 @@ class CannonField < TQt::Widget
@f = 0 @f = 0
@timerCount = 0; @timerCount = 0;
@autoShootTimer = TQt::Timer.new( self, 'movement handler' ) @autoShootTimer = TQt::Timer.new( self, 'movement handler' )
connect( @autoShootTimer, SIGNAL('timeout()'), connect( @autoShootTimer, TQ_SIGNAL('timeout()'),
self, SLOT('moveShot()') ) self, TQ_SLOT('moveShot()') )
@shoot_ang = 0 @shoot_ang = 0
@shoot_f = 0 @shoot_f = 0
@target = TQt::Point.new(0, 0) @target = TQt::Point.new(0, 0)

@ -10,7 +10,7 @@ class GameBoard < TQt::Widget
quit = TQt::PushButton.new('&Quit', self, 'quit') quit = TQt::PushButton.new('&Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
angle = LCDRange.new( 'ANGLE', self, 'angle' ) angle = LCDRange.new( 'ANGLE', self, 'angle' )
angle.setRange( 5, 70 ) angle.setRange( 5, 70 )
@ -22,32 +22,32 @@ class GameBoard < TQt::Widget
box.setFrameStyle( TQt::Frame::WinPanel | TQt::Frame::Sunken ) box.setFrameStyle( TQt::Frame::WinPanel | TQt::Frame::Sunken )
@cannonField = CannonField.new( box, 'cannonField' ) @cannonField = CannonField.new( box, 'cannonField' )
connect( angle, SIGNAL('valueChanged(int)'), connect( angle, TQ_SIGNAL('valueChanged(int)'),
@cannonField, SLOT('setAngle(int)') ) @cannonField, TQ_SLOT('setAngle(int)') )
connect( @cannonField, SIGNAL('angleChanged(int)'), connect( @cannonField, TQ_SIGNAL('angleChanged(int)'),
angle, SLOT('setValue(int)') ) angle, TQ_SLOT('setValue(int)') )
connect( force, SIGNAL('valueChanged(int)'), connect( force, TQ_SIGNAL('valueChanged(int)'),
@cannonField, SLOT('setForce(int)') ) @cannonField, TQ_SLOT('setForce(int)') )
connect( @cannonField, SIGNAL('forceChanged(int)'), connect( @cannonField, TQ_SIGNAL('forceChanged(int)'),
force, SLOT('setValue(int)') ) force, TQ_SLOT('setValue(int)') )
connect( @cannonField, SIGNAL('hit()'), connect( @cannonField, TQ_SIGNAL('hit()'),
self, SLOT('hit()') ) self, TQ_SLOT('hit()') )
connect( @cannonField, SIGNAL('missed()'), connect( @cannonField, TQ_SIGNAL('missed()'),
self, SLOT('missed()') ) self, TQ_SLOT('missed()') )
shoot = TQt::PushButton.new( '&Shoot', self, 'shoot' ) shoot = TQt::PushButton.new( '&Shoot', self, 'shoot' )
shoot.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) ) shoot.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) )
connect( shoot, SIGNAL('clicked()'), SLOT('fire()') ) connect( shoot, TQ_SIGNAL('clicked()'), TQ_SLOT('fire()') )
connect( @cannonField, SIGNAL('canShoot(bool)'), connect( @cannonField, TQ_SIGNAL('canShoot(bool)'),
shoot, SLOT('setEnabled(bool)') ) shoot, TQ_SLOT('setEnabled(bool)') )
restart = TQt::PushButton.new( '&New Game', self, 'newgame' ) restart = TQt::PushButton.new( '&New Game', self, 'newgame' )
restart.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) ) restart.setFont( TQt::Font.new( 'Times', 18, TQt::Font::Bold ) )
connect( restart, SIGNAL('clicked()'), self, SLOT('newGame()') ) connect( restart, TQ_SIGNAL('clicked()'), self, TQ_SLOT('newGame()') )
@hits = TQt::LCDNumber.new( 2, self, 'hits' ) @hits = TQt::LCDNumber.new( 2, self, 'hits' )
@shotsLeft = TQt::LCDNumber.new( 2, self, 'shotsleft' ) @shotsLeft = TQt::LCDNumber.new( 2, self, 'shotsleft' )
@ -56,11 +56,11 @@ class GameBoard < TQt::Widget
accel = TQt::Accel.new( self ) accel = TQt::Accel.new( self )
accel.connectItem( accel.insertItem( TQt::KeySequence.new(Key_Enter) ), accel.connectItem( accel.insertItem( TQt::KeySequence.new(Key_Enter) ),
self, SLOT('fire()') ) self, TQ_SLOT('fire()') )
accel.connectItem( accel.insertItem( TQt::KeySequence.new(Key_Return) ), accel.connectItem( accel.insertItem( TQt::KeySequence.new(Key_Return) ),
self, SLOT('fire()') ) self, TQ_SLOT('fire()') )
accel.connectItem( accel.insertItem( TQt::KeySequence.new(CTRL+Key_Q) ), accel.connectItem( accel.insertItem( TQt::KeySequence.new(CTRL+Key_Q) ),
$qApp, SLOT('quit()') ) $qApp, TQ_SLOT('quit()') )
grid = TQt::GridLayout.new( self, 2, 2, 10 ) grid = TQt::GridLayout.new( self, 2, 2, 10 )
grid.addWidget( quit, 0, 0 ) grid.addWidget( quit, 0, 0 )

@ -19,8 +19,8 @@ class LCDRange < TQt::Widget
@label = TQt::Label.new( ' ', self, 'label' ) @label = TQt::Label.new( ' ', self, 'label' )
@label.setAlignment( TQt::AlignCenter ) @label.setAlignment( TQt::AlignCenter )
connect(@slider, SIGNAL('valueChanged(int)'), @lcd, SLOT('display(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), @lcd, TQ_SLOT('display(int)'))
connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
setFocusProxy(@slider) setFocusProxy(@slider)

@ -9,7 +9,7 @@ quit = TQt::PushButton.new('Quit', nil)
quit.resize(75, 30) quit.resize(75, 30)
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
TQt::Object.connect(quit, SIGNAL('clicked()'), a, SLOT('quit()')) TQt::Object.connect(quit, TQ_SIGNAL('clicked()'), a, TQ_SLOT('quit()'))
a.setMainWidget(quit) a.setMainWidget(quit)
quit.show quit.show

@ -11,7 +11,7 @@ box.resize(200, 120)
quit = TQt::PushButton.new('Quit', box) quit = TQt::PushButton.new('Quit', box)
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
a.connect(quit, SIGNAL('clicked()'), SLOT('quit()')) a.connect(quit, TQ_SIGNAL('clicked()'), TQ_SLOT('quit()'))
a.setMainWidget(box) a.setMainWidget(box)
box.show box.show

@ -13,7 +13,7 @@ def initialize(parent = nil, name = nil)
quit = TQt::PushButton.new('Quit', self, 'quit') quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setGeometry(62, 40, 75, 30) quit.setGeometry(62, 40, 75, 30)
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
end end
end end

@ -10,7 +10,7 @@ def initialize()
quit = TQt::PushButton.new('Quit', self, 'quit') quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
lcd = TQt::LCDNumber.new(2, self, 'lcd') lcd = TQt::LCDNumber.new(2, self, 'lcd')
@ -18,7 +18,7 @@ def initialize()
slider.setRange(0, 99) slider.setRange(0, 99)
slider.setValue(0) slider.setValue(0)
connect(slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)')) connect(slider, TQ_SIGNAL('valueChanged(int)'), lcd, TQ_SLOT('display(int)'))
end end
end end

@ -13,7 +13,7 @@ def initialize(grid)
slider.setRange(0, 99) slider.setRange(0, 99)
slider.setValue(0) slider.setValue(0)
lcd.connect(slider, SIGNAL('valueChanged(int)'), SLOT('display(int)')) lcd.connect(slider, TQ_SIGNAL('valueChanged(int)'), TQ_SLOT('display(int)'))
end end
end end
@ -25,7 +25,7 @@ def initialize()
quit = TQt::PushButton.new('Quit', self, 'quit') quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
grid = TQt::Grid.new( 4, self ) grid = TQt::Grid.new( 4, self )
for c in 0..3 for c in 0..3

@ -11,8 +11,8 @@ class LCDRange < TQt::VBox
@slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider') @slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider')
@slider.setRange(0, 99) @slider.setRange(0, 99)
@slider.setValue(0) @slider.setValue(0)
connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), lcd, TQ_SLOT('display(int)'))
connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
end end
def value() def value()

@ -11,7 +11,7 @@ def initialize()
quit = TQt::PushButton.new('Quit', self, 'quit') quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
grid = TQt::Grid.new( 4, self ) grid = TQt::Grid.new( 4, self )
previous = nil previous = nil
@ -19,8 +19,8 @@ def initialize()
for r in 0..3 for r in 0..3
lr = LCDRange.new(grid) lr = LCDRange.new(grid)
if previous != nil if previous != nil
connect( lr, SIGNAL('valueChanged(int)'), connect( lr, TQ_SIGNAL('valueChanged(int)'),
previous, SLOT('setValue(int)') ) previous, TQ_SLOT('setValue(int)') )
end end
previous = lr previous = lr
end end

@ -10,8 +10,8 @@ class LCDRange < TQt::VBox
@slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider') @slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider')
@slider.setRange(0, 99) @slider.setRange(0, 99)
@slider.setValue(0) @slider.setValue(0)
connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), lcd, TQ_SLOT('display(int)'))
connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
setFocusProxy(@slider) setFocusProxy(@slider)
end end

@ -11,17 +11,17 @@ class MyWidget < TQt::Widget
quit = TQt::PushButton.new('Quit', self, 'quit') quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
angle = LCDRange.new( self, 'angle' ) angle = LCDRange.new( self, 'angle' )
angle.setRange( 5, 70 ) angle.setRange( 5, 70 )
cannonField = CannonField.new( self, 'cannonField' ) cannonField = CannonField.new( self, 'cannonField' )
connect( angle, SIGNAL('valueChanged(int)'), connect( angle, TQ_SIGNAL('valueChanged(int)'),
cannonField, SLOT('setAngle(int)') ) cannonField, TQ_SLOT('setAngle(int)') )
connect( cannonField, SIGNAL('angleChanged(int)'), connect( cannonField, TQ_SIGNAL('angleChanged(int)'),
angle, SLOT('setValue(int)') ) angle, TQ_SLOT('setValue(int)') )
grid = TQt::GridLayout.new( self, 2, 2, 10 ) grid = TQt::GridLayout.new( self, 2, 2, 10 )
# 2x2, 10 pixel border # 2x2, 10 pixel border

@ -10,8 +10,8 @@ class LCDRange < TQt::VBox
@slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider') @slider = TQt::Slider.new(TQt::VBox::Horizontal, self, 'slider')
@slider.setRange(0, 99) @slider.setRange(0, 99)
@slider.setValue(0) @slider.setValue(0)
connect(@slider, SIGNAL('valueChanged(int)'), lcd, SLOT('display(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), lcd, TQ_SLOT('display(int)'))
connect(@slider, SIGNAL('valueChanged(int)'), SIGNAL('valueChanged(int)')) connect(@slider, TQ_SIGNAL('valueChanged(int)'), TQ_SIGNAL('valueChanged(int)'))
setFocusProxy(@slider) setFocusProxy(@slider)
end end

@ -11,17 +11,17 @@ class MyWidget < TQt::Widget
quit = TQt::PushButton.new('Quit', self, 'quit') quit = TQt::PushButton.new('Quit', self, 'quit')
quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold)) quit.setFont(TQt::Font.new('Times', 18, TQt::Font::Bold))
connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()')) connect(quit, TQ_SIGNAL('clicked()'), $qApp, TQ_SLOT('quit()'))
angle = LCDRange.new( self, 'angle' ) angle = LCDRange.new( self, 'angle' )
angle.setRange( 5, 70 ) angle.setRange( 5, 70 )
cannonField = CannonField.new( self, 'cannonField' ) cannonField = CannonField.new( self, 'cannonField' )
connect( angle, SIGNAL('valueChanged(int)'), connect( angle, TQ_SIGNAL('valueChanged(int)'),
cannonField, SLOT('setAngle(int)') ) cannonField, TQ_SLOT('setAngle(int)') )
connect( cannonField, SIGNAL('angleChanged(int)'), connect( cannonField, TQ_SIGNAL('angleChanged(int)'),
angle, SLOT('setValue(int)') ) angle, TQ_SLOT('setValue(int)') )
grid = TQt::GridLayout.new( self, 2, 2, 10 ) grid = TQt::GridLayout.new( self, 2, 2, 10 )
# 2x2, 10 pixel border # 2x2, 10 pixel border

@ -162,120 +162,120 @@ namespace Qt {
switch (slotobj.Args) { switch (slotobj.Args) {
case "()": case "()":
del = Delegate.CreateDelegate (typeof (del_void), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_void), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_void (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_void (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(bool)": case "(bool)":
del = Delegate.CreateDelegate (typeof (del_bool), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_bool), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_bool (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_bool (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(short)": case "(short)":
del = Delegate.CreateDelegate (typeof (del_short), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_short), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_short (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_short (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(int)": case "(int)":
del = Delegate.CreateDelegate (typeof (del_int), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_int), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_int (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_int (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(long)": case "(long)":
del = Delegate.CreateDelegate (typeof (del_long), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_long), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_long (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_long (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(float)": case "(float)":
del = Delegate.CreateDelegate (typeof (del_float), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_float), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_float (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_float (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(double)": case "(double)":
del = Delegate.CreateDelegate (typeof (del_double), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_double), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_double (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_double (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(TQString)": case "(TQString)":
realsignal = sigobj.Name + "(const TQString&)"; realsignal = sigobj.Name + "(const TQString&)";
Console.WriteLine("Connecting signal, sigobj.Name = {0}, realsignal = {1}", Console.WriteLine("Connecting signal, sigobj.Name = {0}, realsignal = {1}",
sigobj.Name, realsignal); sigobj.Name, realsignal);
del = Delegate.CreateDelegate (typeof (del_QString), slotobj, "SlotBridge_QString"); del = Delegate.CreateDelegate (typeof (del_QString), slotobj, "SlotBridge_QString");
slotobj.WrapperPtr = csharp_connect_QString (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QString (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQDockWindow)": case "(TQDockWindow)":
realsignal = sigobj.Name + "(TQDockWindow*)"; realsignal = sigobj.Name + "(TQDockWindow*)";
del = Delegate.CreateDelegate (typeof (del_QDockWindow), slotobj, "SlotBridge_QDockWindow"); del = Delegate.CreateDelegate (typeof (del_QDockWindow), slotobj, "SlotBridge_QDockWindow");
slotobj.WrapperPtr = csharp_connect_QDockWindow (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QDockWindow (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQDropEvent)": case "(TQDropEvent)":
realsignal = sigobj.Name + "(TQDropEvent*)"; realsignal = sigobj.Name + "(TQDropEvent*)";
del = Delegate.CreateDelegate (typeof (del_QDropEvent), slotobj, "SlotBridge_QDropEvent"); del = Delegate.CreateDelegate (typeof (del_QDropEvent), slotobj, "SlotBridge_QDropEvent");
slotobj.WrapperPtr = csharp_connect_QDropEvent (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QDropEvent (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQDropEvent,TQListViewItem)": case "(TQDropEvent,TQListViewItem)":
realsignal = sigobj.Name + "(TQDropEvent*,TQListViewItem*)"; realsignal = sigobj.Name + "(TQDropEvent*,TQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QDropEventTQListViewItem), slotobj, "SlotBridge_QDropEventTQListViewItem"); del = Delegate.CreateDelegate (typeof (del_QDropEventTQListViewItem), slotobj, "SlotBridge_QDropEventTQListViewItem");
slotobj.WrapperPtr = csharp_connect_QDropEventTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QDropEventTQListViewItem (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQIconViewItem)": case "(TQIconViewItem)":
realsignal = sigobj.Name + "(TQIconViewItem*)"; realsignal = sigobj.Name + "(TQIconViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QIconViewItem), slotobj, "SlotBridge_QIconViewItem"); del = Delegate.CreateDelegate (typeof (del_QIconViewItem), slotobj, "SlotBridge_QIconViewItem");
slotobj.WrapperPtr = csharp_connect_QIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QIconViewItem (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQListBoxItem)": case "(TQListBoxItem)":
realsignal = sigobj.Name + "(TQListBoxItem*)"; realsignal = sigobj.Name + "(TQListBoxItem*)";
del = Delegate.CreateDelegate (typeof (del_QListBoxItem), slotobj, "SlotBridge_QListBoxItem"); del = Delegate.CreateDelegate (typeof (del_QListBoxItem), slotobj, "SlotBridge_QListBoxItem");
slotobj.WrapperPtr = csharp_connect_QListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QListBoxItem (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQListViewItem)": case "(TQListViewItem)":
realsignal = sigobj.Name + "(TQListViewItem*)"; realsignal = sigobj.Name + "(TQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QListViewItem), slotobj, "SlotBridge_QListViewItem"); del = Delegate.CreateDelegate (typeof (del_QListViewItem), slotobj, "SlotBridge_QListViewItem");
slotobj.WrapperPtr = csharp_connect_QListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QListViewItem (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQListViewItem,TQListViewItem)": case "(TQListViewItem,TQListViewItem)":
realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*)"; realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItem"); del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItem");
slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItem (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQListViewItem,TQListViewItem,TQListViewItem)": case "(TQListViewItem,TQListViewItem,TQListViewItem)":
realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*,TQListViewItem*)"; realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*,TQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItemTQListViewItem"); del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItemTQListViewItem");
slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItemTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItemTQListViewItem (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQNetworkOperation)": case "(TQNetworkOperation)":
realsignal = sigobj.Name + "(TQNetworkOperation*)"; realsignal = sigobj.Name + "(TQNetworkOperation*)";
del = Delegate.CreateDelegate (typeof (del_QNetworkOperation), slotobj, "SlotBridge_QNetworkOperation"); del = Delegate.CreateDelegate (typeof (del_QNetworkOperation), slotobj, "SlotBridge_QNetworkOperation");
slotobj.WrapperPtr = csharp_connect_QNetworkOperation (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QNetworkOperation (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQObject)": case "(TQObject)":
realsignal = sigobj.Name + "(TQObject*)"; realsignal = sigobj.Name + "(TQObject*)";
del = Delegate.CreateDelegate (typeof (del_QObject), slotobj, "SlotBridge_QObject"); del = Delegate.CreateDelegate (typeof (del_QObject), slotobj, "SlotBridge_QObject");
slotobj.WrapperPtr = csharp_connect_QObject (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QObject (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQToolBar)": case "(TQToolBar)":
realsignal = sigobj.Name + "(TQToolBar*)"; realsignal = sigobj.Name + "(TQToolBar*)";
del = Delegate.CreateDelegate (typeof (del_QToolBar), slotobj, "SlotBridge_QToolBar"); del = Delegate.CreateDelegate (typeof (del_QToolBar), slotobj, "SlotBridge_QToolBar");
slotobj.WrapperPtr = csharp_connect_QToolBar (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QToolBar (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(TQWidget)": case "(TQWidget)":
realsignal = sigobj.Name + "(TQWidget*)"; realsignal = sigobj.Name + "(TQWidget*)";
del = Delegate.CreateDelegate (typeof (del_QWidget), slotobj, "SlotBridge_QWidget"); del = Delegate.CreateDelegate (typeof (del_QWidget), slotobj, "SlotBridge_QWidget");
slotobj.WrapperPtr = csharp_connect_QWidget (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_QWidget (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(int,TQIconViewItem)": case "(int,TQIconViewItem)":
realsignal = sigobj.Name + "(int,TQIconViewItem*)"; realsignal = sigobj.Name + "(int,TQIconViewItem*)";
del = Delegate.CreateDelegate (typeof (del_intTQIconViewItem), slotobj, "SlotBridge_intTQIconViewItem"); del = Delegate.CreateDelegate (typeof (del_intTQIconViewItem), slotobj, "SlotBridge_intTQIconViewItem");
slotobj.WrapperPtr = csharp_connect_intTQIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_intTQIconViewItem (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(int,TQListBoxItem)": case "(int,TQListBoxItem)":
realsignal = sigobj.Name + "(int,TQListBoxItem*)"; realsignal = sigobj.Name + "(int,TQListBoxItem*)";
del = Delegate.CreateDelegate (typeof (del_intTQListBoxItem), slotobj, "SlotBridge_intTQListBoxItem"); del = Delegate.CreateDelegate (typeof (del_intTQListBoxItem), slotobj, "SlotBridge_intTQListBoxItem");
slotobj.WrapperPtr = csharp_connect_intTQListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_intTQListBoxItem (sender.RawObject, TQ_SIGNAL (realsignal), receiver.RawObject, del);
break; break;
case "(int,bool)": case "(int,bool)":
del = Delegate.CreateDelegate (typeof (del_intbool), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_intbool), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_intbool (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_intbool (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(int,int)": case "(int,int)":
del = Delegate.CreateDelegate (typeof (del_intint), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_intint), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_intint (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_intint (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
case "(int,int,int)": case "(int,int,int)":
del = Delegate.CreateDelegate (typeof (del_intintint), receiver, slotobj.Name); del = Delegate.CreateDelegate (typeof (del_intintint), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_intintint (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); slotobj.WrapperPtr = csharp_connect_intintint (sender.RawObject, TQ_SIGNAL (signal), receiver.RawObject, del);
break; break;
default: default:
throw new ArgumentException ("Unsupported method prototype for C++ signal -> C# slot connection: " + slotobj.Args); throw new ArgumentException ("Unsupported method prototype for C++ signal -> C# slot connection: " + slotobj.Args);
@ -292,7 +292,7 @@ namespace Qt {
// ...a C++ slot. C++ slots are C# methods, so we should never get here. // ...a C++ slot. C++ slots are C# methods, so we should never get here.
else { else {
throw new ArgumentException(receiver+" has no slot '"+slot+"'"); throw new ArgumentException(receiver+" has no slot '"+slot+"'");
// return qt_QObject_connect1(sender.RawObject, TQT_SIGNAL(signal), receiver.RawObject, TQT_SLOT(slot)); // return qt_QObject_connect1(sender.RawObject, TQ_SIGNAL(signal), receiver.RawObject, TQ_SLOT(slot));
} }
} }
} }
@ -330,11 +330,11 @@ namespace Qt {
string mangle = MangleArgs(args); string mangle = MangleArgs(args);
// HACK Wrap target signal in a slot and connect the slot to the sender. // HACK Wrap target signal in a slot and connect the slot to the sender.
return Connect(sender, TQT_SIGNAL(signal), targetobj, TQT_SLOT("Emit_"+mangle+args)); return Connect(sender, TQ_SIGNAL(signal), targetobj, TQ_SLOT("Emit_"+mangle+args));
} }
// ...a C++ signal // ...a C++ signal
else else
return qt_QObject_connect1(sender.RawObject, TQT_SIGNAL(signal), receiver.RawObject, TQT_SIGNAL(target)); return qt_QObject_connect1(sender.RawObject, TQ_SIGNAL(signal), receiver.RawObject, TQ_SIGNAL(target));
} }
} }
@ -410,7 +410,7 @@ namespace Qt {
// ...a C++ slot. C++ slots are C# methods, so we should never get here. // ...a C++ slot. C++ slots are C# methods, so we should never get here.
else { else {
throw new ArgumentException(receiver+" has no slot '"+slot+"'"); throw new ArgumentException(receiver+" has no slot '"+slot+"'");
// return qt_QObject_disconnect2(sender.RawObject, TQT_SIGNAL(signal), receiver.RawObject, TQT_SLOT(slot)); // return qt_QObject_disconnect2(sender.RawObject, TQ_SIGNAL(signal), receiver.RawObject, TQ_SLOT(slot));
} }
} }
} }
@ -449,11 +449,11 @@ namespace Qt {
if (receiver.CsSignalMap.Contains(target)) { if (receiver.CsSignalMap.Contains(target)) {
QtSignal targetobj = receiver.CsSignalMap[target]; QtSignal targetobj = receiver.CsSignalMap[target];
string args = "(" + target.Split(new char[] {'('})[1]; string args = "(" + target.Split(new char[] {'('})[1];
return Disconnect(sender, TQT_SIGNAL(signal), targetobj, TQT_SLOT("emit_"+args)); return Disconnect(sender, TQ_SIGNAL(signal), targetobj, TQ_SLOT("emit_"+args));
} }
// ...a C++ signal // ...a C++ signal
else { else {
return qt_QObject_disconnect2(sender.RawObject, TQT_SIGNAL(signal), receiver.RawObject, TQT_SLOT(target)); return qt_QObject_disconnect2(sender.RawObject, TQ_SIGNAL(signal), receiver.RawObject, TQ_SLOT(target));
} }
} }
} }
@ -474,7 +474,7 @@ namespace Qt {
foreach (QtSignal signal in signals) foreach (QtSignal signal in signals)
foreach (QtSlot slot in new ArrayList (signal.Slots)) foreach (QtSlot slot in new ArrayList (signal.Slots))
Disconnect (sender, TQT_SIGNAL (signal.Signal), slot.Receiver, TQT_SLOT (slot.Slot)); Disconnect (sender, TQ_SIGNAL (signal.Signal), slot.Receiver, TQ_SLOT (slot.Slot));
return true; return true;
} }
@ -495,7 +495,7 @@ namespace Qt {
foreach (QtSignal signal in signals) foreach (QtSignal signal in signals)
foreach (QtSlot slot in new ArrayList (signal.Slots)) foreach (QtSlot slot in new ArrayList (signal.Slots))
Disconnect (signal.Sender, TQT_SIGNAL (signal.Name), receiver, TQT_SLOT (slot.Name)); Disconnect (signal.Sender, TQ_SIGNAL (signal.Name), receiver, TQ_SLOT (slot.Name));
return true; return true;
} }
@ -509,7 +509,7 @@ namespace Qt {
QtSignal sig = map[signal]; QtSignal sig = map[signal];
if (sig != null) { if (sig != null) {
foreach (QtSlot slot in new ArrayList (sig.Slots)) foreach (QtSlot slot in new ArrayList (sig.Slots))
Disconnect (sender, TQT_SIGNAL(signal), slot.Receiver, TQT_SLOT(slot.Slot)); Disconnect (sender, TQ_SIGNAL(signal), slot.Receiver, TQ_SLOT(slot.Slot));
} }
} }
@ -527,7 +527,7 @@ namespace Qt {
if (sig != null) { if (sig != null) {
foreach (QtSlot slot in new ArrayList (sig.Slots)) foreach (QtSlot slot in new ArrayList (sig.Slots))
if (slot.Receiver == receiver) if (slot.Receiver == receiver)
Disconnect (sender, signal, receiver, TQT_SLOT (slot.Name)); Disconnect (sender, signal, receiver, TQ_SLOT (slot.Name));
} }
} }

@ -165,7 +165,7 @@ namespace Qt {
Console.WriteLine (format, arg); Console.WriteLine (format, arg);
} }
public static string TQT_SIGNAL (string signal) public static string TQ_SIGNAL (string signal)
{ {
return "2"+ return "2"+
Regex.Replace (signal, @"\s*\(\s*\)", "()"); Regex.Replace (signal, @"\s*\(\s*\)", "()");
@ -173,7 +173,7 @@ namespace Qt {
} }
public static string TQT_SLOT (string slot) public static string TQ_SLOT (string slot)
{ {
return "1" + return "1" +
Regex.Replace (slot, @"\s*\(\s*\)", "()"); Regex.Replace (slot, @"\s*\(\s*\)", "()");

@ -38,7 +38,7 @@ namespace Qt {
qparent.AddChild (this); qparent.AddChild (this);
RegisterObject (this); RegisterObject (this);
Connect (this, TQT_SIGNAL ("destroyed ()"), TQT_SLOT ("NativeDestroyed ()")); Connect (this, TQ_SIGNAL ("destroyed ()"), TQ_SLOT ("NativeDestroyed ()"));
} }
[DllImport("libtqtc", CharSet=CharSet.Ansi)] [DllImport("libtqtc", CharSet=CharSet.Ansi)]
@ -46,14 +46,14 @@ namespace Qt {
public TQToolButton (TQIconSet iconSet, TQString textLabel, TQString groupText, TQObject receiver, string slot, TQToolBar parent, string name) : this (TQNull.Instance) public TQToolButton (TQIconSet iconSet, TQString textLabel, TQString groupText, TQObject receiver, string slot, TQToolBar parent, string name) : this (TQNull.Instance)
{ {
rawObject = qt_new_QToolButton1 (iconSet.RawObject, textLabel.RawObject, groupText.RawObject, IntPtr.Zero, null, parent != null ? parent.RawObject : IntPtr.Zero, name); rawObject = qt_new_QToolButton1 (iconSet.RawObject, textLabel.RawObject, groupText.RawObject, IntPtr.Zero, null, parent != null ? parent.RawObject : IntPtr.Zero, name);
Connect( this, TQT_SIGNAL("clicked()"), receiver, slot ); Connect( this, TQ_SIGNAL("clicked()"), receiver, slot );
if ((qparent = parent) != null) if ((qparent = parent) != null)
qparent.AddChild (this); qparent.AddChild (this);
RegisterObject (this); RegisterObject (this);
Connect (this, TQT_SIGNAL ("destroyed ()"), TQT_SLOT ("NativeDestroyed ()")); Connect (this, TQ_SIGNAL ("destroyed ()"), TQ_SLOT ("NativeDestroyed ()"));
} }
[DllImport("libtqtc", CharSet=CharSet.Ansi)] [DllImport("libtqtc", CharSet=CharSet.Ansi)]
@ -66,7 +66,7 @@ namespace Qt {
qparent.AddChild (this); qparent.AddChild (this);
RegisterObject (this); RegisterObject (this);
Connect (this, TQT_SIGNAL ("destroyed ()"), TQT_SLOT ("NativeDestroyed ()")); Connect (this, TQ_SIGNAL ("destroyed ()"), TQ_SLOT ("NativeDestroyed ()"));
} }
public TQToolButton (TQWidget parent) : this (parent, "") {} public TQToolButton (TQWidget parent) : this (parent, "") {}

@ -26,10 +26,10 @@ namespace QtSamples {
public Display () public Display ()
{ {
filemenu = new TQPopupMenu (null, "filemenu"); filemenu = new TQPopupMenu (null, "filemenu");
filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()")); filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()"));
aboutmenu = new TQPopupMenu(null, "aboutmenu"); aboutmenu = new TQPopupMenu(null, "aboutmenu");
aboutmenu.InsertItem("&About Qt-Sharp", this, TQT_SLOT("slotAbout()")); aboutmenu.InsertItem("&About Qt-Sharp", this, TQ_SLOT("slotAbout()"));
menubar = new TQMenuBar(this, ""); menubar = new TQMenuBar(this, "");
menubar.InsertItem("&File", filemenu); menubar.InsertItem("&File", filemenu);

@ -13,8 +13,8 @@ namespace QtSamples {
{ {
TQPushButton pb = new TQPushButton ("Papa Smurf", this); TQPushButton pb = new TQPushButton ("Papa Smurf", this);
Connect (pb, TQT_SIGNAL ("clicked ()"), TQT_SLOT ("DoEmit ()")); Connect (pb, TQ_SIGNAL ("clicked ()"), TQ_SLOT ("DoEmit ()"));
Connect (this, TQT_SIGNAL ("MySignal ()"), TQT_SLOT ("PrintStuff ()")); Connect (this, TQ_SIGNAL ("MySignal ()"), TQ_SLOT ("PrintStuff ()"));
} }
public void DoEmit () public void DoEmit ()

@ -25,7 +25,7 @@ namespace QtSamples {
public HelloWorld () : base (null) public HelloWorld () : base (null)
{ {
TQPushButton pb = new TQPushButton ("Hello Qt-Sharp-0.7!", this); TQPushButton pb = new TQPushButton ("Hello Qt-Sharp-0.7!", this);
TQObject.Connect (pb, TQT_SIGNAL ("clicked()"), this, TQT_SLOT("SlotClicked()")); TQObject.Connect (pb, TQ_SIGNAL ("clicked()"), this, TQ_SLOT("SlotClicked()"));
} }
public void SlotClicked () public void SlotClicked ()

@ -213,7 +213,7 @@ public class ImageDialog : TQDialog {
pixmapLabel.SetScaledContents (true); pixmapLabel.SetScaledContents (true);
dialogLayout.AddWidget (pixmapLabel); dialogLayout.AddWidget (pixmapLabel);
TQObject.Connect (redrawButton, TQT_SIGNAL ("clicked()"), this, TQT_SLOT ("Redraw()")); TQObject.Connect (redrawButton, TQ_SIGNAL ("clicked()"), this, TQ_SLOT ("Redraw()"));
Redraw (); Redraw ();
} }

@ -272,7 +272,7 @@ public class ImageDialog : TQDialog {
//pixmapLabel.SetPixmap( new TQPixmap( image ) ); //pixmapLabel.SetPixmap( new TQPixmap( image ) );
TQObject.Connect (redrawButton, TQT_SIGNAL ("clicked()"), pixmapLabel, TQT_SLOT ("Repaint()")); TQObject.Connect (redrawButton, TQ_SIGNAL ("clicked()"), pixmapLabel, TQ_SLOT ("Repaint()"));
//Redraw (); //Redraw ();
} }

@ -15,7 +15,7 @@ public class MyWidget : TQVBox
label = new TQLabel( this, "label" ); label = new TQLabel( this, "label" );
label.SetText("Default"); label.SetText("Default");
TQObject.Connect( lineEdit, TQT_SIGNAL("textChanged(TQString)"), TQObject.Connect( lineEdit, TQ_SIGNAL("textChanged(TQString)"),
label, "SetText(TQString)" ); label, "SetText(TQString)" );
} }

@ -37,9 +37,9 @@ namespace Qf {
//Setup the filemenu //Setup the filemenu
filemenu = new TQPopupMenu (null, "filemenu"); filemenu = new TQPopupMenu (null, "filemenu");
filemenu.InsertItem ("&Screenshot", display, TQT_SLOT ("SlotScreenshot()")); filemenu.InsertItem ("&Screenshot", display, TQ_SLOT ("SlotScreenshot()"));
filemenu.InsertSeparator (); filemenu.InsertSeparator ();
filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()")); filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()"));
//Setup the shapemenu //Setup the shapemenu
shapemenu = new TQPopupMenu (null, "typemenu"); shapemenu = new TQPopupMenu (null, "typemenu");
@ -52,12 +52,12 @@ namespace Qf {
shapemenu.InsertItem( "&Icosidodecahedron", 6); shapemenu.InsertItem( "&Icosidodecahedron", 6);
//Connect the shapemenu //Connect the shapemenu
TQObject.Connect (shapemenu, TQT_SIGNAL ("activated(int)"), TQObject.Connect (shapemenu, TQ_SIGNAL ("activated(int)"),
display, TQT_SLOT("SlotShapeMenu(int)")); display, TQ_SLOT("SlotShapeMenu(int)"));
//Setup the settingsmenu //Setup the settingsmenu
settingsmenu = new TQPopupMenu (null, "settingsmenu"); settingsmenu = new TQPopupMenu (null, "settingsmenu");
settingsmenu.InsertItem ("&Alpha", display, TQT_SLOT ("SlotSetAlpha()")); settingsmenu.InsertItem ("&Alpha", display, TQ_SLOT ("SlotSetAlpha()"));
//Setup the menubar //Setup the menubar
menubar = new TQMenuBar (this, ""); menubar = new TQMenuBar (this, "");
@ -144,20 +144,20 @@ namespace Qf {
buttons.AddWidget (intense); buttons.AddWidget (intense);
//Connect the buttons and SlotQuit //Connect the buttons and SlotQuit
TQObject.Connect (start, TQT_SIGNAL ("clicked()"), TQObject.Connect (start, TQ_SIGNAL ("clicked()"),
this, TQT_SLOT ("SlotStart()")); this, TQ_SLOT ("SlotStart()"));
TQObject.Connect (stop, TQT_SIGNAL ("clicked()"), TQObject.Connect (stop, TQ_SIGNAL ("clicked()"),
this, TQT_SLOT ("SlotStop()")); this, TQ_SLOT ("SlotStop()"));
TQObject.Connect (reset, TQT_SIGNAL ("clicked()"), TQObject.Connect (reset, TQ_SIGNAL ("clicked()"),
this, TQT_SLOT ("SlotReset()")); this, TQ_SLOT ("SlotReset()"));
TQObject.Connect (gray, TQT_SIGNAL ("clicked()"), TQObject.Connect (gray, TQ_SIGNAL ("clicked()"),
this, TQT_SLOT ("SlotGray()")); this, TQ_SLOT ("SlotGray()"));
TQObject.Connect (intense, TQT_SIGNAL ("clicked()"), TQObject.Connect (intense, TQ_SIGNAL ("clicked()"),
this, TQT_SLOT ("SlotIntense()")); this, TQ_SLOT ("SlotIntense()"));
TQObject.Connect (buffer, TQT_SIGNAL ("Painted()"), TQObject.Connect (buffer, TQ_SIGNAL ("Painted()"),
this, TQT_SLOT ("SlotSetLabels()")); this, TQ_SLOT ("SlotSetLabels()"));
TQObject.Connect (tqApp, TQT_SIGNAL ("lastWindowClosed ()"), TQObject.Connect (tqApp, TQ_SIGNAL ("lastWindowClosed ()"),
this, TQT_SLOT ("SlotQuit ()")); this, TQ_SLOT ("SlotQuit ()"));
//Layout labels //Layout labels
labels = new TQVBoxLayout (layout); labels = new TQVBoxLayout (layout);

@ -36,18 +36,18 @@ namespace QtSamples {
ScribbleWindow () : base (null, null) ScribbleWindow () : base (null, null)
{ {
filemenu = new TQPopupMenu (null, "filemenu"); filemenu = new TQPopupMenu (null, "filemenu");
filemenu.InsertItem ("&Load", this, TQT_SLOT ("SlotLoad()") ); filemenu.InsertItem ("&Load", this, TQ_SLOT ("SlotLoad()") );
filemenu.InsertItem ("&Save", this, TQT_SLOT ("SlotSave()") ); filemenu.InsertItem ("&Save", this, TQ_SLOT ("SlotSave()") );
filemenu.InsertSeparator (); filemenu.InsertSeparator ();
filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()")); filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()"));
aboutmenu = new TQPopupMenu (null, "helpmenu"); aboutmenu = new TQPopupMenu (null, "helpmenu");
aboutmenu.InsertItem ("&About Qt-Sharp", this, TQT_SLOT ("SlotAboutQtSharp()")); aboutmenu.InsertItem ("&About Qt-Sharp", this, TQ_SLOT ("SlotAboutQtSharp()"));
aboutmenu.InsertItem ("&About Qt", this, TQT_SLOT ("SlotAboutQt()")); aboutmenu.InsertItem ("&About Qt", this, TQ_SLOT ("SlotAboutQt()"));
menubar = new TQMenuBar (this, ""); menubar = new TQMenuBar (this, "");
menubar.InsertItem ("&File", filemenu); menubar.InsertItem ("&File", filemenu);
menubar.InsertItem ("&Color", this, TQT_SLOT("SlotColorChooser()")); menubar.InsertItem ("&Color", this, TQ_SLOT("SlotColorChooser()"));
menubar.InsertItem ("&About", aboutmenu); menubar.InsertItem ("&About", aboutmenu);
scrollview = new TQScrollView (this); scrollview = new TQScrollView (this);
@ -58,12 +58,12 @@ namespace QtSamples {
this.SetCentralWidget (scrollview); this.SetCentralWidget (scrollview);
SetMaximumSize (Width (), Height () - menubar.Height ()); SetMaximumSize (Width (), Height () - menubar.Height ());
TQObject.Connect (this, TQT_SIGNAL ("colorChanged(TQColor)"), TQObject.Connect (this, TQ_SIGNAL ("colorChanged(TQColor)"),
scribblearea, TQT_SLOT ("SlotSetColor(TQColor)") ); scribblearea, TQ_SLOT ("SlotSetColor(TQColor)") );
TQObject.Connect (this, TQT_SIGNAL ("load(TQString)"), TQObject.Connect (this, TQ_SIGNAL ("load(TQString)"),
scribblearea, TQT_SLOT ("PerformLoad(TQString)") ); scribblearea, TQ_SLOT ("PerformLoad(TQString)") );
TQObject.Connect (this, TQT_SIGNAL ("save(TQString)"), TQObject.Connect (this, TQ_SIGNAL ("save(TQString)"),
scribblearea, TQT_SLOT ("PerformSave(TQString)") ); scribblearea, TQ_SLOT ("PerformSave(TQString)") );
} }
public void SlotLoad () public void SlotLoad ()
@ -123,7 +123,7 @@ namespace QtSamples {
SetBackgroundMode (Qt.BackgroundMode.NoBackground); SetBackgroundMode (Qt.BackgroundMode.NoBackground);
popupmenu = new TQPopupMenu(); popupmenu = new TQPopupMenu();
popupmenu.InsertItem ("&Clear", this, TQT_SLOT ("SlotClearArea()") ); popupmenu.InsertItem ("&Clear", this, TQ_SLOT ("SlotClearArea()") );
mouseMoveEvent += new MouseMoveEvent (MouseMoved); mouseMoveEvent += new MouseMoveEvent (MouseMoved);
mousePressEvent += new MousePressEvent (MousePressed); mousePressEvent += new MousePressEvent (MousePressed);

@ -18,8 +18,8 @@ public class Example {
quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold)); quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold));
// In C++, TQFont::Bold is sufficient // In C++, TQFont::Bold is sufficient
TQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") ); TQObject.Connect ( quit, QtSupport.TQ_SIGNAL ("clicked()"), a, QtSupport.TQ_SLOT ("Quit()") );
// TQT_SIGNAL and TQT_SLOT are static functions of QtSupport // TQ_SIGNAL and TQ_SLOT are static functions of QtSupport
a.SetMainWidget (quit); a.SetMainWidget (quit);
quit.Show (); quit.Show ();

@ -19,8 +19,8 @@ public class Example {
quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold)); quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold));
// In C++, TQFont::Bold is sufficient // In C++, TQFont::Bold is sufficient
TQObject.Connect ( quit, QtSupport.TQT_SIGNAL ("clicked()"), a, QtSupport.TQT_SLOT ("Quit()") ); TQObject.Connect ( quit, QtSupport.TQ_SIGNAL ("clicked()"), a, QtSupport.TQ_SLOT ("Quit()") );
// TQT_SIGNAL and TQT_SLOT are static functions of QtSupport // TQ_SIGNAL and TQ_SLOT are static functions of QtSupport
a.SetMainWidget (box); a.SetMainWidget (box);
box.Show (); box.Show ();

@ -17,7 +17,7 @@ public class MyWidget : TQWidget {
quit.SetGeometry (62, 40, 75, 30); quit.SetGeometry (62, 40, 75, 30);
quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold) ); quit.SetFont (new TQFont ("Times", 18, TQFont.Weight.Bold) );
Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") ); Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") );
// In C++, tqApp is a global variable. Here it's a property of the TQObject // In C++, tqApp is a global variable. Here it's a property of the TQObject
// class, which we inherit, giving the same effect. We also inherit the // class, which we inherit, giving the same effect. We also inherit the
// static method connect(). // static method connect().

@ -13,7 +13,7 @@ public class MyWidget : TQVBox {
TQPushButton quit = new TQPushButton ("Quit", this, "quit"); TQPushButton quit = new TQPushButton ("Quit", this, "quit");
quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
TQObject.Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") ); TQObject.Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") );
TQLCDNumber lcd = new TQLCDNumber (2, this, "lcd" ); TQLCDNumber lcd = new TQLCDNumber (2, this, "lcd" );
@ -22,7 +22,7 @@ public class MyWidget : TQVBox {
slider.SetRange (0, 99); slider.SetRange (0, 99);
slider.SetValue (0); slider.SetValue (0);
Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") ); Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") );
} }
public MyWidget (TQWidget parent) : this (parent, "") {} public MyWidget (TQWidget parent) : this (parent, "") {}

@ -15,7 +15,7 @@ public class LCDRange : TQVBox {
slider.SetRange (0, 99); slider.SetRange (0, 99);
slider.SetValue (0); slider.SetValue (0);
Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") ); Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") );
} }
public LCDRange (TQWidget parent) : this (parent, "") {} public LCDRange (TQWidget parent) : this (parent, "") {}
@ -31,7 +31,7 @@ public class MyWidget : TQVBox {
TQPushButton quit = new TQPushButton ("Quit", this, "quit"); TQPushButton quit = new TQPushButton ("Quit", this, "quit");
quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") ); Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") );
TQGrid grid = new TQGrid (4, this); TQGrid grid = new TQGrid (4, this);

@ -21,8 +21,8 @@ public class LCDRange : TQVBox {
slider.SetRange (0, 99); slider.SetRange (0, 99);
slider.SetValue (0); slider.SetValue (0);
Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), lcd, TQT_SLOT ("Display(int)") ); Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), lcd, TQ_SLOT ("Display(int)") );
Connect ( slider, TQT_SIGNAL ("valueChanged(int)"), TQT_SIGNAL ("valueChanged(int)")); Connect ( slider, TQ_SIGNAL ("valueChanged(int)"), TQ_SIGNAL ("valueChanged(int)"));
} }
public LCDRange (TQWidget parent) : this (parent, "") {} public LCDRange (TQWidget parent) : this (parent, "") {}
@ -43,7 +43,7 @@ public class MyWidget : TQVBox {
TQPushButton quit = new TQPushButton ("Quit", this, "quit"); TQPushButton quit = new TQPushButton ("Quit", this, "quit");
quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) ); quit.SetFont ( new TQFont ("Times", 18, TQFont.Weight.Bold) );
Connect ( quit, TQT_SIGNAL ("clicked()"), tqApp, TQT_SLOT ("Quit()") ); Connect ( quit, TQ_SIGNAL ("clicked()"), tqApp, TQ_SLOT ("Quit()") );
TQGrid grid = new TQGrid (4, this); TQGrid grid = new TQGrid (4, this);
@ -53,8 +53,8 @@ public class MyWidget : TQVBox {
for ( int r = 0; r < 4; r++ ) { for ( int r = 0; r < 4; r++ ) {
LCDRange lr = new LCDRange (grid); LCDRange lr = new LCDRange (grid);
if (previous != null) if (previous != null)
Connect (lr, TQT_SIGNAL ("valueChanged(int)"), Connect (lr, TQ_SIGNAL ("valueChanged(int)"),
previous, TQT_SLOT ("SetValue(int)") ); previous, TQ_SLOT ("SetValue(int)") );
previous = lr; previous = lr;
} }
} }

@ -518,7 +518,7 @@ namespace QtCSharp {
public string DefaultConnections () public string DefaultConnections ()
{ {
if (qtype.IsTQObject) if (qtype.IsTQObject)
return "\n\t\t\tConnect (this, TQT_SIGNAL (\"destroyed ()\"), TQT_SLOT (\"NativeDestroyed ()\"));"; return "\n\t\t\tConnect (this, TQ_SIGNAL (\"destroyed ()\"), TQ_SLOT (\"NativeDestroyed ()\"));";
else else
return ""; return "";
} }

@ -22,7 +22,7 @@ void qtsharp_QObject_registerEventDelegate (qtsharp_EventDelegate delegate)
TQObject *csharp_connect_void (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(void)) TQObject *csharp_connect_void (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(void))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (void)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (void)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -32,7 +32,7 @@ TQObject *csharp_connect_void (TQObject *sender, const char *signal, TQObject *r
TQObject *csharp_connect_item_void (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(void)) TQObject *csharp_connect_item_void (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(void))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! instance->connectItem (id, cs, TQT_SLOT (callback (void)))) { if (! instance->connectItem (id, cs, TQ_SLOT (callback (void)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -42,7 +42,7 @@ TQObject *csharp_connect_item_void (TQMenuData *instance, int id, TQObject *rece
TQObject *csharp_connect_bool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(bool)) TQObject *csharp_connect_bool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(bool))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (bool)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (bool)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -52,7 +52,7 @@ TQObject *csharp_connect_bool (TQObject *sender, const char *signal, TQObject *r
TQObject *csharp_connect_short (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(short)) TQObject *csharp_connect_short (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(short))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (short)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (short)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -62,7 +62,7 @@ TQObject *csharp_connect_short (TQObject *sender, const char *signal, TQObject *
TQObject *csharp_connect_int (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int)) TQObject *csharp_connect_int (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (int)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -72,7 +72,7 @@ TQObject *csharp_connect_int (TQObject *sender, const char *signal, TQObject *re
TQObject *csharp_connect_item_int (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(int)) TQObject *csharp_connect_item_int (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(int))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! instance->connectItem (id, cs, TQT_SLOT (callback (int)))) { if (! instance->connectItem (id, cs, TQ_SLOT (callback (int)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -82,7 +82,7 @@ TQObject *csharp_connect_item_int (TQMenuData *instance, int id, TQObject *recei
TQObject *csharp_connect_long (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(long)) TQObject *csharp_connect_long (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(long))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (long)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (long)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -92,7 +92,7 @@ TQObject *csharp_connect_long (TQObject *sender, const char *signal, TQObject *r
TQObject *csharp_connect_float (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(float)) TQObject *csharp_connect_float (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(float))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (float)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (float)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -102,7 +102,7 @@ TQObject *csharp_connect_float (TQObject *sender, const char *signal, TQObject *
TQObject *csharp_connect_double (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(double)) TQObject *csharp_connect_double (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(double))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (double)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (double)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -112,7 +112,7 @@ TQObject *csharp_connect_double (TQObject *sender, const char *signal, TQObject
TQObject *csharp_connect_QString (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(const TQString&)) TQObject *csharp_connect_QString (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(const TQString&))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (const TQString&)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (const TQString&)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -122,7 +122,7 @@ TQObject *csharp_connect_QString (TQObject *sender, const char *signal, TQObject
TQObject *csharp_connect_QDockWindow (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDockWindow*)) TQObject *csharp_connect_QDockWindow (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDockWindow*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDockWindow*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQDockWindow*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -132,7 +132,7 @@ TQObject *csharp_connect_QDockWindow (TQObject *sender, const char *signal, TQOb
TQObject *csharp_connect_QDropEvent (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*)) TQObject *csharp_connect_QDropEvent (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDropEvent*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQDropEvent*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -142,7 +142,7 @@ TQObject *csharp_connect_QDropEvent (TQObject *sender, const char *signal, TQObj
TQObject *csharp_connect_QDropEventTQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*,TQListViewItem*)) TQObject *csharp_connect_QDropEventTQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*,TQListViewItem*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDropEvent*,TQListViewItem*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQDropEvent*,TQListViewItem*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -152,7 +152,7 @@ TQObject *csharp_connect_QDropEventTQListViewItem (TQObject *sender, const char
TQObject *csharp_connect_QIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQIconViewItem*)) TQObject *csharp_connect_QIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQIconViewItem*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQIconViewItem*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQIconViewItem*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -162,7 +162,7 @@ TQObject *csharp_connect_QIconViewItem (TQObject *sender, const char *signal, TQ
TQObject *csharp_connect_QListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListBoxItem*)) TQObject *csharp_connect_QListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListBoxItem*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListBoxItem*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQListBoxItem*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -172,7 +172,7 @@ TQObject *csharp_connect_QListBoxItem (TQObject *sender, const char *signal, TQO
TQObject *csharp_connect_QListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*)) TQObject *csharp_connect_QListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQListViewItem*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -182,7 +182,7 @@ TQObject *csharp_connect_QListViewItem (TQObject *sender, const char *signal, TQ
TQObject *csharp_connect_QListViewItemTQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*)) TQObject *csharp_connect_QListViewItemTQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*,TQListViewItem*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQListViewItem*,TQListViewItem*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -192,7 +192,7 @@ TQObject *csharp_connect_QListViewItemTQListViewItem (TQObject *sender, const ch
TQObject *csharp_connect_QListViewItemTQListViewItemTQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*,TQListViewItem*)) TQObject *csharp_connect_QListViewItemTQListViewItemTQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*,TQListViewItem*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*,TQListViewItem*,TQListViewItem*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQListViewItem*,TQListViewItem*,TQListViewItem*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -202,7 +202,7 @@ TQObject *csharp_connect_QListViewItemTQListViewItemTQListViewItem (TQObject *se
TQObject *csharp_connect_QNetworkOperation (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQNetworkOperation*)) TQObject *csharp_connect_QNetworkOperation (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQNetworkOperation*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQNetworkOperation*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQNetworkOperation*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -212,7 +212,7 @@ TQObject *csharp_connect_QNetworkOperation (TQObject *sender, const char *signal
TQObject *csharp_connect_QObject (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQObject*)) TQObject *csharp_connect_QObject (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQObject*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQObject*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQObject*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -222,7 +222,7 @@ TQObject *csharp_connect_QObject (TQObject *sender, const char *signal, TQObject
TQObject *csharp_connect_QToolBar (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQToolBar*)) TQObject *csharp_connect_QToolBar (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQToolBar*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQToolBar*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQToolBar*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -232,7 +232,7 @@ TQObject *csharp_connect_QToolBar (TQObject *sender, const char *signal, TQObjec
TQObject *csharp_connect_QWidget (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQWidget*)) TQObject *csharp_connect_QWidget (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQWidget*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQWidget*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (TQWidget*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -242,7 +242,7 @@ TQObject *csharp_connect_QWidget (TQObject *sender, const char *signal, TQObject
TQObject *csharp_connect_intTQIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQIconViewItem*)) TQObject *csharp_connect_intTQIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQIconViewItem*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,TQIconViewItem*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (int,TQIconViewItem*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -252,7 +252,7 @@ TQObject *csharp_connect_intTQIconViewItem (TQObject *sender, const char *signal
TQObject *csharp_connect_intTQListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQListBoxItem*)) TQObject *csharp_connect_intTQListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQListBoxItem*))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,TQListBoxItem*)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (int,TQListBoxItem*)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -262,7 +262,7 @@ TQObject *csharp_connect_intTQListBoxItem (TQObject *sender, const char *signal,
TQObject *csharp_connect_intbool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,bool)) TQObject *csharp_connect_intbool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,bool))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,bool)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (int,bool)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -272,7 +272,7 @@ TQObject *csharp_connect_intbool (TQObject *sender, const char *signal, TQObject
TQObject *csharp_connect_intint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int)) TQObject *csharp_connect_intint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,int)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (int,int)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }
@ -282,7 +282,7 @@ TQObject *csharp_connect_intint (TQObject *sender, const char *signal, TQObject
TQObject *csharp_connect_intintint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int,int)) TQObject *csharp_connect_intintint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int,int))
{ {
CustomSlot *cs = new CustomSlot (ptr, receiver); CustomSlot *cs = new CustomSlot (ptr, receiver);
if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,int,int)))) { if (! TQObject::connect (sender, signal, cs, TQ_SLOT (callback (int,int,int)))) {
delete cs; delete cs;
cs = 0L; cs = 0L;
} }

@ -28,7 +28,7 @@ namespace Qt {
if (size.GetHashCode () != size2.GetHashCode ()) if (size.GetHashCode () != size2.GetHashCode ())
Console.WriteLine ("ERROR: Hash codes differ for size and size2!"); Console.WriteLine ("ERROR: Hash codes differ for size and size2!");
Connect (button, TQT_SIGNAL ("clicked()"), TQObject.qApp, TQT_SLOT ("Quit()")); Connect (button, TQ_SIGNAL ("clicked()"), TQObject.qApp, TQ_SLOT ("Quit()"));
} }
public static void Main (string[] args) public static void Main (string[] args)

@ -334,7 +334,7 @@ namespace QtSharp {
tmp=tmp.NextSibling as XmlElement; tmp=tmp.NextSibling as XmlElement;
String slot=tmp.InnerText; String slot=tmp.InnerText;
writer.WriteLine("\t\tTQObject.Connect({0},TQT_SIGNAL(\"{1}\"),{2},TQT_SLOT(\"{3}\"));", writer.WriteLine("\t\tTQObject.Connect({0},TQ_SIGNAL(\"{1}\"),{2},TQ_SLOT(\"{3}\"));",
sender,signal,receiver,slot); sender,signal,receiver,slot);
} }
break; break;

@ -31,9 +31,9 @@ public class KPenBrushDlg extends TQDialog {
TQWhatsThis.add(width_spbox,i18n("Select brush width")); TQWhatsThis.add(width_spbox,i18n("Select brush width"));
width_spbox.setValue(curr); width_spbox.setValue(curr);
connect(default_btn, SIGNAL("clicked()"), this, SLOT("slotDefault()")); connect(default_btn, TQ_SIGNAL("clicked()"), this, TQ_SLOT("slotDefault()"));
connect(ok_btn, SIGNAL("clicked()"), this, SLOT("accept()")); connect(ok_btn, TQ_SIGNAL("clicked()"), this, TQ_SLOT("accept()"));
connect(cancel_btn, SIGNAL("clicked()"), this, SLOT("reject()")); connect(cancel_btn, TQ_SIGNAL("clicked()"), this, TQ_SLOT("reject()"));
} }

@ -90,20 +90,20 @@ public class KScribbleApp extends TDEMainWindow implements Resource {
TDEAccel keyAccel = new TDEAccel(this); TDEAccel keyAccel = new TDEAccel(this);
// fileMenu accelerators // fileMenu accelerators
keyAccel.insert(TDEStdAccel.New, this, SLOT("slotFileNew()")); keyAccel.insert(TDEStdAccel.New, this, TQ_SLOT("slotFileNew()"));
keyAccel.insert(TDEStdAccel.Open, this, SLOT("slotFileOpen()")); keyAccel.insert(TDEStdAccel.Open, this, TQ_SLOT("slotFileOpen()"));
keyAccel.insert(TDEStdAccel.Save, this, SLOT("slotFileSave()")); keyAccel.insert(TDEStdAccel.Save, this, TQ_SLOT("slotFileSave()"));
keyAccel.insert(TDEStdAccel.Close, this, SLOT("slotFileClose()")); keyAccel.insert(TDEStdAccel.Close, this, TQ_SLOT("slotFileClose()"));
keyAccel.insert(TDEStdAccel.Print, this, SLOT("slotFilePrint()")); keyAccel.insert(TDEStdAccel.Print, this, TQ_SLOT("slotFilePrint()"));
keyAccel.insert(TDEStdAccel.Quit, this, SLOT("slotFileQuit()")); keyAccel.insert(TDEStdAccel.Quit, this, TQ_SLOT("slotFileQuit()"));
// editMenu accelerators // editMenu accelerators
keyAccel.insert(TDEStdAccel.Cut, this, SLOT("slotEditCut()")); keyAccel.insert(TDEStdAccel.Cut, this, TQ_SLOT("slotEditCut()"));
keyAccel.insert(TDEStdAccel.Copy, this, SLOT("slotEditCopy()")); keyAccel.insert(TDEStdAccel.Copy, this, TQ_SLOT("slotEditCopy()"));
keyAccel.insert(TDEStdAccel.Paste, this, SLOT("slotEditPaste()")); keyAccel.insert(TDEStdAccel.Paste, this, TQ_SLOT("slotEditPaste()"));
// help accelerator // help accelerator
keyAccel.insert(TDEStdAccel.Help, this, SLOT("appHelpActivated()")); keyAccel.insert(TDEStdAccel.Help, this, TQ_SLOT("appHelpActivated()"));
keyAccel.readSettings(); keyAccel.readSettings();
@ -115,7 +115,7 @@ public class KScribbleApp extends TDEMainWindow implements Resource {
// MENUBAR // MENUBAR
pRecentFileMenu = new TQPopupMenu(this); pRecentFileMenu = new TQPopupMenu(this);
connect(pRecentFileMenu, SIGNAL("activated(int)"), SLOT("slotFileOpenRecent(int)")); connect(pRecentFileMenu, TQ_SIGNAL("activated(int)"), TQ_SLOT("slotFileOpenRecent(int)"));
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
@ -185,21 +185,21 @@ public class KScribbleApp extends TDEMainWindow implements Resource {
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
// CONNECT THE MENU SLOTS WITH SIGNALS // CONNECT THE MENU SLOTS WITH SIGNALS
// for execution slots and statusbar messages // for execution slots and statusbar messages
connect(pFileMenu, SIGNAL("activated(int)"), SLOT("commandCallback(int)")); connect(pFileMenu, TQ_SIGNAL("activated(int)"), TQ_SLOT("commandCallback(int)"));
connect(pFileMenu, SIGNAL("highlighted(int)"), SLOT("statusCallback(int)")); connect(pFileMenu, TQ_SIGNAL("highlighted(int)"), TQ_SLOT("statusCallback(int)"));
connect(pEditMenu, SIGNAL("activated(int)"), SLOT("commandCallback(int)")); connect(pEditMenu, TQ_SIGNAL("activated(int)"), TQ_SLOT("commandCallback(int)"));
connect(pEditMenu, SIGNAL("highlighted(int)"), SLOT("statusCallback(int)")); connect(pEditMenu, TQ_SIGNAL("highlighted(int)"), TQ_SLOT("statusCallback(int)"));
connect(pPenMenu, SIGNAL("activated(int)"), SLOT("commandCallback(int)")); connect(pPenMenu, TQ_SIGNAL("activated(int)"), TQ_SLOT("commandCallback(int)"));
connect(pPenMenu, SIGNAL("highlighted(int)"), SLOT("statusCallback(int)")); connect(pPenMenu, TQ_SIGNAL("highlighted(int)"), TQ_SLOT("statusCallback(int)"));
connect(pViewMenu, SIGNAL("activated(int)"), SLOT("commandCallback(int)")); connect(pViewMenu, TQ_SIGNAL("activated(int)"), TQ_SLOT("commandCallback(int)"));
connect(pViewMenu, SIGNAL("highlighted(int)"), SLOT("statusCallback(int)")); connect(pViewMenu, TQ_SIGNAL("highlighted(int)"), TQ_SLOT("statusCallback(int)"));
connect(pWindowMenu, SIGNAL("aboutToShow()" ), SLOT( "windowMenuAboutToShow()" ) ); connect(pWindowMenu, TQ_SIGNAL("aboutToShow()" ), TQ_SLOT( "windowMenuAboutToShow()" ) );
connect(pWindowMenu, SIGNAL("activated(int)"), SLOT("commandCallback(int)")); connect(pWindowMenu, TQ_SIGNAL("activated(int)"), TQ_SLOT("commandCallback(int)"));
connect(pWindowMenu, SIGNAL("highlighted(int)"), SLOT("statusCallback(int)")); connect(pWindowMenu, TQ_SIGNAL("highlighted(int)"), TQ_SLOT("statusCallback(int)"));
} }
@ -221,8 +221,8 @@ public class KScribbleApp extends TDEMainWindow implements Resource {
toolBar().insertButton(KDE.BarIcon("pencolor"), ID_PEN_COLOR, true, i18n("Color"),-1 ); toolBar().insertButton(KDE.BarIcon("pencolor"), ID_PEN_COLOR, true, i18n("Color"),-1 );
toolBar().insertButton(KDE.BarIcon("penwidth"), ID_PEN_BRUSH, true, i18n("Width"),-1 ); toolBar().insertButton(KDE.BarIcon("penwidth"), ID_PEN_BRUSH, true, i18n("Width"),-1 );
toolBar().insertSeparator(); toolBar().insertSeparator();
toolBar().insertButton(KDE.BarIcon("help"), ID_HELP_CONTENTS, SIGNAL("clicked()"), toolBar().insertButton(KDE.BarIcon("help"), ID_HELP_CONTENTS, TQ_SIGNAL("clicked()"),
this, SLOT("appHelpActivated()"), true,i18n("Help"),-1); this, TQ_SLOT("appHelpActivated()"), true,i18n("Help"),-1);
TQToolButton btnwhat = TQWhatsThis.whatsThisButton(toolBar()); TQToolButton btnwhat = TQWhatsThis.whatsThisButton(toolBar());
TQToolTip.add(btnwhat, i18n("What's this...?")); TQToolTip.add(btnwhat, i18n("What's this...?"));
@ -235,9 +235,9 @@ public class KScribbleApp extends TDEMainWindow implements Resource {
/////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////
// CONNECT THE TOOLBAR SLOTS WITH SIGNALS - add new created toolbars by their according number // CONNECT THE TOOLBAR SLOTS WITH SIGNALS - add new created toolbars by their according number
// connect for invoking the slot actions // connect for invoking the slot actions
connect(toolBar(), SIGNAL("clicked(int)"), SLOT("commandCallback(int)")); connect(toolBar(), TQ_SIGNAL("clicked(int)"), TQ_SLOT("commandCallback(int)"));
// connect for the status help on holing icons pressed with the mouse button // connect for the status help on holing icons pressed with the mouse button
connect(toolBar(), SIGNAL("pressed(int)"), SLOT("statusCallback(int)")); connect(toolBar(), TQ_SIGNAL("pressed(int)"), TQ_SLOT("statusCallback(int)"));
} }
@ -261,7 +261,7 @@ public class KScribbleApp extends TDEMainWindow implements Resource {
TQVBox view_back = new TQVBox( this ); TQVBox view_back = new TQVBox( this );
view_back.setFrameStyle( TQFrame.StyledPanel | TQFrame.Sunken ); view_back.setFrameStyle( TQFrame.StyledPanel | TQFrame.Sunken );
pWorkspace = new TQWorkspace( view_back, "" ); pWorkspace = new TQWorkspace( view_back, "" );
connect(pWorkspace, SIGNAL("windowActivated(TQWidget)"), this, SLOT("setWndTitle(TQWidget)")); connect(pWorkspace, TQ_SIGNAL("windowActivated(TQWidget)"), this, TQ_SLOT("setWndTitle(TQWidget)"));
// setView(view_back); // setView(view_back);
setCentralWidget(view_back); setCentralWidget(view_back);
} }
@ -355,9 +355,9 @@ public class KScribbleApp extends TDEMainWindow implements Resource {
pWindowMenu.insertItem(i18n("&New Window"), ID_WINDOW_NEW_WINDOW); pWindowMenu.insertItem(i18n("&New Window"), ID_WINDOW_NEW_WINDOW);
pWindowMenu.insertItem(i18n("&Cascade"), pWindowMenu.insertItem(i18n("&Cascade"),
pWorkspace, SLOT("cascade()" ),new TQKeySequence(0) , ID_WINDOW_CASCADE ); pWorkspace, TQ_SLOT("cascade()" ),new TQKeySequence(0) , ID_WINDOW_CASCADE );
pWindowMenu.insertItem(i18n("&Tile"), pWindowMenu.insertItem(i18n("&Tile"),
pWorkspace, SLOT("tile()" ),new TQKeySequence(0) , ID_WINDOW_TILE ); pWorkspace, TQ_SLOT("tile()" ),new TQKeySequence(0) , ID_WINDOW_TILE );
if ( pWorkspace.windowList().isEmpty() ) { if ( pWorkspace.windowList().isEmpty() ) {
@ -372,7 +372,7 @@ public class KScribbleApp extends TDEMainWindow implements Resource {
for ( int i = 0; i < windows.size(); ++i ) { for ( int i = 0; i < windows.size(); ++i ) {
int id = pWindowMenu.insertItem((i+1)+ ((TQWidget)windows.get(i)).caption(), int id = pWindowMenu.insertItem((i+1)+ ((TQWidget)windows.get(i)).caption(),
this, SLOT( "windowMenuActivated( int )" ) ); this, TQ_SLOT( "windowMenuActivated( int )" ) );
pWindowMenu.setItemParameter( id, i ); pWindowMenu.setItemParameter( id, i );
pWindowMenu.setItemChecked( id, pWorkspace.activeWindow() == (TQWidget)windows.get(i) ); pWindowMenu.setItemChecked( id, pWorkspace.activeWindow() == (TQWidget)windows.get(i) );
} }

@ -182,8 +182,8 @@ class SimpleMailFrm extends TDEMainWindow {
} }
void setEventHandlers() { void setEventHandlers() {
connect( btCancel, SIGNAL("clicked()"), parentApp, SLOT("quit()")); connect( btCancel, TQ_SIGNAL("clicked()"), parentApp, TQ_SLOT("quit()"));
connect( btSend,SIGNAL("clicked()"),this,SLOT("sendMail()")); connect( btSend,TQ_SIGNAL("clicked()"),this,TQ_SLOT("sendMail()"));
} }

@ -220,7 +220,7 @@ public class BrowserExtension extends TQObject {
public native void pasteRequest(); public native void pasteRequest();
/** /**
Returns a map containing the action names as keys and corresponding Returns a map containing the action names as keys and corresponding
SLOT()'ified method names as data entries. TQ_SLOT()'ified method names as data entries.
This is very useful for This is very useful for
the host component, when connecting the own signals with the the host component, when connecting the own signals with the
extension's slots. extension's slots.
@ -235,11 +235,11 @@ public class BrowserExtension extends TQObject {
iterating over the action slot map, returned by this method) iterating over the action slot map, returned by this method)
Connecting to the slot can be done like this: Connecting to the slot can be done like this:
<pre> <pre>
connect( yourObject, SIGNAL("yourSignal()"), connect( yourObject, TQ_SIGNAL("yourSignal()"),
extension, mapIterator.data() ) extension, mapIterator.data() )
</pre> </pre>
(where "mapIterator" is your TQMap<String,String> iterator) (where "mapIterator" is your TQMap<String,String> iterator)
@short Returns a map containing the action names as keys and corresponding SLOT()'ified method names as data entries. @short Returns a map containing the action names as keys and corresponding TQ_SLOT()'ified method names as data entries.
*/ */
// KParts::BrowserExtension::ActionSlotMap actionSlotMap(); >>>> NOT CONVERTED // KParts::BrowserExtension::ActionSlotMap actionSlotMap(); >>>> NOT CONVERTED
/** /**

@ -14,8 +14,8 @@ import org.trinitydesktop.qt.TQObject;
For all jobs created in an application, the code looks like For all jobs created in an application, the code looks like
<pre> <pre>
TDEIO.Job job = TDEIO.someoperation( some parameters ); TDEIO.Job job = TDEIO.someoperation( some parameters );
connect( job, SIGNAL("result( TDEIO.Job )"), connect( job, TQ_SIGNAL("result( TDEIO.Job )"),
this, SLOT("slotResult( TDEIO.Job )") ); this, TQ_SLOT("slotResult( TDEIO.Job )") );
</pre> </pre>
(other connects, specific to the job) (other connects, specific to the job)
And slotResult is usually at least: And slotResult is usually at least:

@ -23,7 +23,7 @@ import org.trinitydesktop.qt.TQObject;
If you want to use signals & slots, you can do something like: If you want to use signals & slots, you can do something like:
<pre> <pre>
KAudioPlayer player("/var/share/foo.wav"); KAudioPlayer player("/var/share/foo.wav");
connect(&button, SIGNAL("clicked()"), &player, SLOT("play()")); connect(&button, TQ_SIGNAL("clicked()"), &player, TQ_SLOT("play()"));
</pre> </pre>
@short This class provides one-shot-and-forget audio playing. @short This class provides one-shot-and-forget audio playing.

@ -72,7 +72,7 @@ import org.trinitydesktop.qt.TQComboBox;
KComboBox combo = new KComboBox( true, this, "mywidget" ); KComboBox combo = new KComboBox( true, this, "mywidget" );
TDECompletion comp = combo.completionObject(); TDECompletion comp = combo.completionObject();
// Connect to the return pressed signal - optional // Connect to the return pressed signal - optional
connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)")); connect(combo,TQ_SIGNAL("returnPressed(String)"),comp,TQ_SLOT("addItem(String)"));
// Provide the to be completed strings. Note that those are separate from the combo's // Provide the to be completed strings. Note that those are separate from the combo's
// contents. // contents.
comp.insertItems( someArrayList ); comp.insertItems( someArrayList );
@ -83,7 +83,7 @@ import org.trinitydesktop.qt.TQComboBox;
KURLCompletion comp = new KURLCompletion(); KURLCompletion comp = new KURLCompletion();
combo.setCompletionObject( comp ); combo.setCompletionObject( comp );
// Connect to the return pressed signal - optional // Connect to the return pressed signal - optional
connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)")); connect(combo,TQ_SIGNAL("returnPressed(String)"),comp,TQ_SLOT("addItem(String)"));
</pre> </pre>
Note that you have to either delete the allocated completion object Note that you have to either delete the allocated completion object
when you don't need it anymore, or call when you don't need it anymore, or call

@ -34,14 +34,14 @@ import org.trinitydesktop.qt.TQWidget;
<pre> <pre>
KDirOperator op = new KDirOperator( KURL( "file:/home/gis" ), this ); KDirOperator op = new KDirOperator( KURL( "file:/home/gis" ), this );
// some signals you might be interested in // some signals you might be interested in
connect(op, SIGNAL("urlEntered(KURL)"), connect(op, TQ_SIGNAL("urlEntered(KURL)"),
SLOT("urlEntered(KURL)")); TQ_SLOT("urlEntered(KURL)"));
connect(op, SIGNAL("fileHighlighted(const KFileItem )"), connect(op, TQ_SIGNAL("fileHighlighted(const KFileItem )"),
SLOT("fileHighlighted(const KFileItem )")); TQ_SLOT("fileHighlighted(const KFileItem )"));
connect(op, SIGNAL("fileSelected(const KFileItem )"), connect(op, TQ_SIGNAL("fileSelected(const KFileItem )"),
SLOT("fileSelected(const KFileItem )")); TQ_SLOT("fileSelected(const KFileItem )"));
connect(op, SIGNAL("finishedLoading()"), connect(op, TQ_SIGNAL("finishedLoading()"),
SLOT("slotLoadingFinished()")); TQ_SLOT("slotLoadingFinished()"));
op.readConfig( TDEGlobal.config(), "Your KDiroperator ConfigGroup" ); op.readConfig( TDEGlobal.config(), "Your KDiroperator ConfigGroup" );
op.setView(KFile.Default); op.setView(KFile.Default);
</pre> </pre>

@ -31,7 +31,7 @@ import org.trinitydesktop.qt.TQWidget;
{ {
saveMainWindowSettings( TDEGlobal.config(), "MainWindow" ); saveMainWindowSettings( TDEGlobal.config(), "MainWindow" );
KEditToolbar dlg(actionCollection()); KEditToolbar dlg(actionCollection());
connect(&dlg,SIGNAL("newToolbarConfig()"),this,SLOT("slotNewToolbarConfig()")); connect(&dlg,TQ_SIGNAL("newToolbarConfig()"),this,TQ_SLOT("slotNewToolbarConfig()"));
dlg.exec(); dlg.exec();
} }
void MyClass.slotNewToolbarConfig() // This is called when OK, Apply or Defaults is clicked void MyClass.slotNewToolbarConfig() // This is called when OK, Apply or Defaults is clicked
@ -52,7 +52,7 @@ import org.trinitydesktop.qt.TQWidget;
<pre> <pre>
saveMainWindowSettings( TDEGlobal.config(), "MainWindow" ); saveMainWindowSettings( TDEGlobal.config(), "MainWindow" );
KEditToolbar dlg(factory()); KEditToolbar dlg(factory());
connect(&dlg,SIGNAL("newToolbarConfig()"),this,SLOT("slotNewToolbarConfig()")); connect(&dlg,TQ_SIGNAL("newToolbarConfig()"),this,TQ_SLOT("slotNewToolbarConfig()"));
dlg.exec(); dlg.exec();
void MyClass.slotNewToolbarConfig() // This is called when OK, Apply or Defaults is clicked void MyClass.slotNewToolbarConfig() // This is called when OK, Apply or Defaults is clicked
{ {

@ -324,7 +324,7 @@ public class KFileDialog extends KDialogBase {
items into it, e.g.: items into it, e.g.:
<pre> <pre>
yourAction = new TDEAction( i18n("Your Action"), 0, yourAction = new TDEAction( i18n("Your Action"), 0,
this, SLOT("yourSlot()"), this, TQ_SLOT("yourSlot()"),
this, "action name" ); this, "action name" );
yourAction.plug( tdefileDialog.toolBar() ); yourAction.plug( tdefileDialog.toolBar() );
</pre> </pre>

@ -23,11 +23,11 @@ import org.trinitydesktop.qt.TQObject;
m_find = new KFind(pattern, options, this); m_find = new KFind(pattern, options, this);
// Connect highlight signal to code which handles highlighting // Connect highlight signal to code which handles highlighting
// of found text. // of found text.
connect( m_find, SIGNAL("highlight( String, int, int )"), connect( m_find, TQ_SIGNAL("highlight( String, int, int )"),
this, SLOT("slotHighlight( String, int, int )") ); this, TQ_SLOT("slotHighlight( String, int, int )") );
// Connect findNext signal - called when pressing the button in the dialog // Connect findNext signal - called when pressing the button in the dialog
connect( m_find, SIGNAL("findNext()"), connect( m_find, TQ_SIGNAL("findNext()"),
this, SLOT("slotFindNext()") ); this, TQ_SLOT("slotFindNext()") );
</pre> </pre>
If you are using a non-modal find dialog (the recommended new way If you are using a non-modal find dialog (the recommended new way
in KDE-3.2), you should call right away m_find.closeFindNextDialog(). in KDE-3.2), you should call right away m_find.closeFindNextDialog().

@ -30,7 +30,7 @@ import org.trinitydesktop.qt.TQWidget;
else else
{ {
m_findDia = new KFindDialog(false,...); m_findDia = new KFindDialog(false,...);
connect( m_findDia, SIGNAL("okClicked()"), this, SLOT("findTextNext()") ); connect( m_findDia, TQ_SIGNAL("okClicked()"), this, TQ_SLOT("findTextNext()") );
} }
</pre> </pre>
Don't forget to delete and reset m_findDia when closed. Don't forget to delete and reset m_findDia when closed.

@ -23,7 +23,7 @@ import org.trinitydesktop.qt.TQObject;
or if you just want to open a dialog box: or if you just want to open a dialog box:
<pre> <pre>
mHelpMenu = new KHelpMenu( this, <someText> ); mHelpMenu = new KHelpMenu( this, <someText> );
connect( this, SIGNAL("someSignal()"), mHelpMenu,SLOT("mHelpMenu.aboutKDE()")); connect( this, TQ_SIGNAL("someSignal()"), mHelpMenu,TQ_SLOT("mHelpMenu.aboutKDE()"));
</pre> </pre>
IMPORTANT: IMPORTANT:
The first time you use KHelpMenu.menu(), a TDEPopupMenu object is The first time you use KHelpMenu.menu(), a TDEPopupMenu object is
@ -52,8 +52,8 @@ import org.trinitydesktop.qt.TQObject;
{ {
.. ..
KHelpMenu helpMenu = new KHelpMenu( this ); KHelpMenu helpMenu = new KHelpMenu( this );
connect( helpMenu, SIGNAL("showAboutApplication()"), connect( helpMenu, TQ_SIGNAL("showAboutApplication()"),
this, SLOT("myDialogSlot()")); this, TQ_SLOT("myDialogSlot()"));
.. ..
} }
void MyClass.myDialogSlot() void MyClass.myDialogSlot()
@ -67,7 +67,7 @@ import org.trinitydesktop.qt.TQObject;
{ {
KHelpMenu helpMenu = new KHelpMenu( this ); KHelpMenu helpMenu = new KHelpMenu( this );
TDEPopupMenu help = mHelpMenu.menu(); TDEPopupMenu help = mHelpMenu.menu();
help.connectItem( KHelpMenu.menuAboutApp, this, SLOT("myDialogSlot()") ); help.connectItem( KHelpMenu.menuAboutApp, this, TQ_SLOT("myDialogSlot()") );
} }
void MyClass.myDialogSlot() void MyClass.myDialogSlot()
{ {

@ -39,8 +39,8 @@ public class KHistoryCombo extends KComboBox {
yourself via the slot addToHistory. If you want every item added, yourself via the slot addToHistory. If you want every item added,
use use
<pre> <pre>
connect( combo, SIGNAL("activated( String )"), connect( combo, TQ_SIGNAL("activated( String )"),
combo, SLOT("addToHistory( String )")); combo, TQ_SLOT("addToHistory( String )"));
</pre> </pre>
Use TQComboBox.setMaxCount() to limit the history. Use TQComboBox.setMaxCount() to limit the history.
<code>parent</code> the parent object of this widget. <code>parent</code> the parent object of this widget.

@ -68,7 +68,7 @@ import org.trinitydesktop.qt.TQLineEdit;
KLineEdit edit = new KLineEdit( this, "mywidget" ); KLineEdit edit = new KLineEdit( this, "mywidget" );
TDECompletion comp = edit.completionObject(); TDECompletion comp = edit.completionObject();
// Connect to the return pressed signal - optional // Connect to the return pressed signal - optional
connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)")); connect(edit,TQ_SIGNAL("returnPressed(String)"),comp,TQ_SLOT("addItem(String)"));
</pre> </pre>
To use a customized completion objects or your To use a customized completion objects or your
own completion object : own completion object :
@ -77,7 +77,7 @@ import org.trinitydesktop.qt.TQLineEdit;
KURLCompletion comp = new KURLCompletion(); KURLCompletion comp = new KURLCompletion();
edit.setCompletionObject( comp ); edit.setCompletionObject( comp );
// Connect to the return pressed signal - optional // Connect to the return pressed signal - optional
connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)")); connect(edit,TQ_SIGNAL("returnPressed(String)"),comp,TQ_SLOT("addItem(String)"));
</pre> </pre>
Note if you specify your own completion object you have to either delete Note if you specify your own completion object you have to either delete
it when you don't need it anymore, or you can tell KLineEdit to delete it it when you don't need it anymore, or you can tell KLineEdit to delete it

@ -60,7 +60,7 @@ import org.trinitydesktop.qt.TQWidget;
flags = KMdi.Hide; flags = KMdi.Hide;
} }
// set the accelerators for Toplevel MDI mode (each toplevel window needs its own accels // set the accelerators for Toplevel MDI mode (each toplevel window needs its own accels
connect( m_pParent, SIGNAL("childViewIsDetachedNow(TQWidget)"), this, SLOT("initKeyAccel(TQWidget)") ); connect( m_pParent, TQ_SIGNAL("childViewIsDetachedNow(TQWidget)"), this, TQ_SLOT("initKeyAccel(TQWidget)") );
m_pParent.addWindow( pMDICover, flags); m_pParent.addWindow( pMDICover, flags);
// correct the default settings of KMdi ('cause we haven't a tab order for subwidget focuses) // correct the default settings of KMdi ('cause we haven't a tab order for subwidget focuses)
pMDICover.setFirstFocusableChildWidget(null); pMDICover.setFirstFocusableChildWidget(null);

@ -33,7 +33,7 @@ import org.trinitydesktop.qt.QtSupport;
</pre> </pre>
Note: signals and slots must be connected to the editorDialog object, not to the editor object: Note: signals and slots must be connected to the editorDialog object, not to the editor object:
<pre> <pre>
connect( editorDialog, SIGNAL("canUndo( boolean )"), undoBut, SLOT("setEnabled( boolean )") ); connect( editorDialog, TQ_SIGNAL("canUndo( boolean )"), undoBut, TQ_SLOT("setEnabled( boolean )") );
</pre> </pre>
If you want to create an instance of the editor widget, i.e. not the If you want to create an instance of the editor widget, i.e. not the
dialog, then you must do it in the following way: dialog, then you must do it in the following way:

@ -22,14 +22,14 @@ import org.trinitydesktop.qt.TQWidget;
m_replace = new KReplace(pattern, replacement, options, this); m_replace = new KReplace(pattern, replacement, options, this);
// Connect signals to code which handles highlighting // Connect signals to code which handles highlighting
// of found text, and on-the-fly replacement. // of found text, and on-the-fly replacement.
connect( m_replace, SIGNAL("highlight( String, int, int )"), connect( m_replace, TQ_SIGNAL("highlight( String, int, int )"),
this, SLOT("slotHighlight( String, int, int )") ); this, TQ_SLOT("slotHighlight( String, int, int )") );
// Connect findNext signal - called when pressing the button in the dialog // Connect findNext signal - called when pressing the button in the dialog
connect( m_replace, SIGNAL("findNext()"), connect( m_replace, TQ_SIGNAL("findNext()"),
this, SLOT("slotReplaceNext()") ); this, TQ_SLOT("slotReplaceNext()") );
// Connect replace signal - called when doing a replacement // Connect replace signal - called when doing a replacement
connect( m_replace, SIGNAL("replace(String, int, int, int)"), connect( m_replace, TQ_SIGNAL("replace(String, int, int, int)"),
this, SLOT("slotReplace(String, int, int, int)") ); this, TQ_SLOT("slotReplace(String, int, int, int)") );
</pre> </pre>
Then initialize the variables determining the "current position" Then initialize the variables determining the "current position"
(to the cursor, if the option FromCursor is set, (to the cursor, if the option FromCursor is set,

@ -21,8 +21,8 @@ import org.trinitydesktop.qt.TQWidget;
m_scanDialog = KScanDialog.getScanDialog( this, "scandialog" ); m_scanDialog = KScanDialog.getScanDialog( this, "scandialog" );
if ( !m_scanDialog ) // no scanning support installed? if ( !m_scanDialog ) // no scanning support installed?
return; return;
connect( m_scanDialog, SIGNAL("finalImage( TQImage, int )"), connect( m_scanDialog, TQ_SIGNAL("finalImage( TQImage, int )"),
SLOT("slotScanned( TQImage, int )")); TQ_SLOT("slotScanned( TQImage, int )"));
} }
if ( m_scanDialog.setup() ) // only if scanner configured/available if ( m_scanDialog.setup() ) // only if scanner configured/available
m_scanDialog.show(); m_scanDialog.show();

@ -22,11 +22,11 @@ import org.trinitydesktop.qt.TQWidget;
<pre> <pre>
TDEAction newAct = new TDEAction(i18n("&New"), TQIconSet(BarIcon("filenew")), TDEAction newAct = new TDEAction(i18n("&New"), TQIconSet(BarIcon("filenew")),
TDEStdAccel.shortcut(TDEStdAccel.New), this, TDEStdAccel.shortcut(TDEStdAccel.New), this,
SLOT("fileNew()"), actionCollection()); TQ_SLOT("fileNew()"), actionCollection());
</pre> </pre>
You could drop that and replace it with: You could drop that and replace it with:
<pre> <pre>
TDEAction newAct = KStdAction.openNew(this, SLOT("fileNew()"), TDEAction newAct = KStdAction.openNew(this, TQ_SLOT("fileNew()"),
actionCollection()); actionCollection());
</pre> </pre>
<li><b>Non-standard Usages</b></li> <li><b>Non-standard Usages</b></li>
@ -47,7 +47,7 @@ import org.trinitydesktop.qt.TQWidget;
However, you can change the internal name. In this example, just However, you can change the internal name. In this example, just
do something like: do something like:
<pre> <pre>
KStdAction.cut(this, SLOT("editCut()"), actionCollection(), "my_cut"); KStdAction.cut(this, TQ_SLOT("editCut()"), actionCollection(), "my_cut");
</pre> </pre>
Now, in your local XML resource file (e.g., yourappui.rc), simply Now, in your local XML resource file (e.g., yourappui.rc), simply
put 'my_cut' where you want it to go. put 'my_cut' where you want it to go.
@ -61,13 +61,13 @@ import org.trinitydesktop.qt.TQWidget;
</pre> </pre>
Another non-standard usage concerns instantiating the action in the Another non-standard usage concerns instantiating the action in the
first place. Usually, you would use the member functions as first place. Usually, you would use the member functions as
shown above (e.g., KStdAction.cut(this, SLOT, parent)). You shown above (e.g., KStdAction.cut(this, TQ_SLOT, parent)). You
may, however, do this using the enums provided. This author can't may, however, do this using the enums provided. This author can't
think of a reason why you would want to, but, hey, if you do, think of a reason why you would want to, but, hey, if you do,
here's how: here's how:
<pre> <pre>
KStdAction.action(KStdAction.New, this, SLOT("fileNew()"), actionCollection()); KStdAction.action(KStdAction.New, this, TQ_SLOT("fileNew()"), actionCollection());
KStdAction.action(KStdAction.Cut, this, SLOT("editCut()"), actionCollection()); KStdAction.action(KStdAction.Cut, this, TQ_SLOT("editCut()"), actionCollection());
</pre> </pre>
@author Kurt Granroth <granroth@kde.org> @author Kurt Granroth <granroth@kde.org>
@ -179,7 +179,7 @@ public class KStdAction {
Open a recently used document. The signature of the slot being called Open a recently used document. The signature of the slot being called
is of the form slotURLSelected( KURL ). is of the form slotURLSelected( KURL ).
@param recvr object to receive slot @param recvr object to receive slot
@param slot The SLOT to invoke when a URL is selected. The slot's @param slot The slot to invoke when a URL is selected. The slot's
signature is slotURLSelected( KURL ). signature is slotURLSelected( KURL ).
@param parent parent widget @param parent parent widget
@param name name of widget @param name name of widget
@ -476,7 +476,7 @@ public class KStdAction {
/** /**
Display the configure key bindings dialog. Display the configure key bindings dialog.
Note that you might be able to use the pre-built KXMLGUIFactory's fuction: Note that you might be able to use the pre-built KXMLGUIFactory's fuction:
KStdAction.keyBindings(guiFactory(), SLOT("configureShortcuts()"), actionCollection()); KStdAction.keyBindings(guiFactory(), TQ_SLOT("configureShortcuts()"), actionCollection());
@short Display the configure key bindings dialog. @short Display the configure key bindings dialog.
*/ */
public static native TDEAction keyBindings(TQObject recvr, String slot, TDEActionCollection parent, String name); public static native TDEAction keyBindings(TQObject recvr, String slot, TDEActionCollection parent, String name);

@ -27,8 +27,8 @@ import org.trinitydesktop.qt.TQLabel;
KURLLabel address = new KURLLabel(this); KURLLabel address = new KURLLabel(this);
address.setText("My homepage"); address.setText("My homepage");
address.setURL("http://www.home.com/~me"); address.setURL("http://www.home.com/~me");
connect(address, SIGNAL("leftClickedURL(String)"), connect(address, TQ_SIGNAL("leftClickedURL(String)"),
SLOT("processMyURL(String)")); TQ_SLOT("processMyURL(String)"));
</pre> </pre>
In this example, the text "My homepage" would be displayed In this example, the text "My homepage" would be displayed
as blue, underlined text. When the mouse passed over it, as blue, underlined text. When the mouse passed over it,

@ -127,7 +127,7 @@ public class KXMLGUIFactory extends TQObject {
This slot can be connected dirrectly to the action to configure shortcuts. This is very simple to This slot can be connected dirrectly to the action to configure shortcuts. This is very simple to
do that by adding a single line do that by adding a single line
<pre> <pre>
KStdAction.keyBindings( guiFactory(), SLOT("configureShortcuts()"), actionCollection() ); KStdAction.keyBindings( guiFactory(), TQ_SLOT("configureShortcuts()"), actionCollection() );
</pre> </pre>
@param bAllowLetterShortcuts Set to false if unmodified alphanumeric @param bAllowLetterShortcuts Set to false if unmodified alphanumeric
keys ('A', '1', etc.) are not permissible shortcuts. keys ('A', '1', etc.) are not permissible shortcuts.

@ -42,9 +42,9 @@ import org.trinitydesktop.qt.TQAccel;
// Insert an action "Scroll Up" which is associated with the "Up" key: // Insert an action "Scroll Up" which is associated with the "Up" key:
pAccel.insert( "Scroll Up", i18n("Scroll up"), pAccel.insert( "Scroll Up", i18n("Scroll up"),
i18n("Scroll up the current document by one line."), i18n("Scroll up the current document by one line."),
Qt.Key_Up, this, SLOT("slotScrollUp()") ); Qt.Key_Up, this, TQ_SLOT("slotScrollUp()") );
// Insert an standard acclerator action. // Insert an standard acclerator action.
pAccel.insert( TDEStdAccel.Print, this, SLOT("slotPrint()") ); pAccel.insert( TDEStdAccel.Print, this, TQ_SLOT("slotPrint()") );
// Update the shortcuts by read any user-defined settings from the // Update the shortcuts by read any user-defined settings from the
// application's config file. // application's config file.
pAccel.readSettings(); pAccel.readSettings();
@ -134,7 +134,7 @@ public class TDEAccel extends TQAccel {
insert( "Do Something", i18n("Do Something"), insert( "Do Something", i18n("Do Something"),
i18n("This action allows you to do something really great with this program to " i18n("This action allows you to do something really great with this program to "
"the currently open document."), "the currently open document."),
ALT+Key_D, this, SLOT("slotDoSomething()") ); ALT+Key_D, this, TQ_SLOT("slotDoSomething()") );
</pre> </pre>
@param sAction The internal name of the action. @param sAction The internal name of the action.
@param sLabel An i18n'ized short description of the action displayed when @param sLabel An i18n'ized short description of the action displayed when
@ -164,7 +164,7 @@ public class TDEAccel extends TQAccel {
of the action as for the user-visible label. of the action as for the user-visible label.
Usage: Usage:
<pre> <pre>
insert( i18n("Do Something"), ALT+Key_D, this, SLOT("slotDoSomething()") ); insert( i18n("Do Something"), ALT+Key_D, this, TQ_SLOT("slotDoSomething()") );
</pre> </pre>
@param psAction The name AND label of the action. @param psAction The name AND label of the action.
@param cutDef The default shortcut for this action. @param cutDef The default shortcut for this action.

@ -56,11 +56,11 @@ import org.trinitydesktop.qt.TQObject;
TQSignalMapper . A tiny example: TQSignalMapper . A tiny example:
<pre> <pre>
TQSignalMapper desktopNumberMapper = new TQSignalMapper( this ); TQSignalMapper desktopNumberMapper = new TQSignalMapper( this );
connect( desktopNumberMapper, SIGNAL("mapped( int )"), connect( desktopNumberMapper, TQ_SIGNAL("mapped( int )"),
this, SLOT("moveWindowToDesktop( int )") ); this, TQ_SLOT("moveWindowToDesktop( int )") );
for ( uint i = 0; i < numberOfDesktops; ++i ) { for ( uint i = 0; i < numberOfDesktops; ++i ) {
TDEAction desktopAction = new TDEAction( i18n( "Move Window to Desktop %i" ).arg( i ), ... ); TDEAction desktopAction = new TDEAction( i18n( "Move Window to Desktop %i" ).arg( i ), ... );
connect( desktopAction, SIGNAL("activated()"), desktopNumberMapper, SLOT("map()") ); connect( desktopAction, TQ_SIGNAL("activated()"), desktopNumberMapper, TQ_SLOT("map()") );
desktopNumberMapper.setMapping( desktopAction, i ); desktopNumberMapper.setMapping( desktopAction, i );
} }
</pre> </pre>
@ -85,7 +85,7 @@ import org.trinitydesktop.qt.TQObject;
<pre> <pre>
TDEAction newAct = new TDEAction(i18n("&New"), "filenew", TDEAction newAct = new TDEAction(i18n("&New"), "filenew",
TDEStdAccel.shortcut(TDEStdAccel.New), TDEStdAccel.shortcut(TDEStdAccel.New),
this, SLOT("fileNew()"), this, TQ_SLOT("fileNew()"),
actionCollection(), "new"); actionCollection(), "new");
</pre> </pre>
This line creates our action. It says that wherever this action is This line creates our action. It says that wherever this action is
@ -157,7 +157,7 @@ public class TDEAction extends TQObject {
public native String className(); public native String className();
/** /**
Constructs an action with text, potential keyboard Constructs an action with text, potential keyboard
shortcut, and a SLOT to call when this action is invoked by shortcut, and a slot to call when this action is invoked by
the user. the user.
If you do not want or have a keyboard shortcut, If you do not want or have a keyboard shortcut,
set the <code>cut</code> param to 0. set the <code>cut</code> param to 0.
@ -167,11 +167,11 @@ public class TDEAction extends TQObject {
plugged in a toolbar...). plugged in a toolbar...).
@param text The text that will be displayed. @param text The text that will be displayed.
@param cut The corresponding keyboard shortcut. @param cut The corresponding keyboard shortcut.
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short Constructs an action with text, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user. @short Constructs an action with text, potential keyboard shortcut, and a slot to call when this action is invoked by the user.
*/ */
public TDEAction(String text, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) { public TDEAction(String text, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) {
super((Class) null); super((Class) null);
@ -180,7 +180,7 @@ public class TDEAction extends TQObject {
private native void newTDEAction(String text, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name); private native void newTDEAction(String text, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name);
/** /**
Constructs an action with text, icon, potential keyboard Constructs an action with text, icon, potential keyboard
shortcut, and a SLOT to call when this action is invoked by shortcut, and a slot to call when this action is invoked by
the user. the user.
If you do not want or have a keyboard shortcut, set the If you do not want or have a keyboard shortcut, set the
<code>cut</code> param to 0. <code>cut</code> param to 0.
@ -189,11 +189,11 @@ public class TDEAction extends TQObject {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The icon to display. @param pix The icon to display.
@param cut The corresponding keyboard shortcut. @param cut The corresponding keyboard shortcut.
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user. @short Constructs an action with text, icon, potential keyboard shortcut, and a slot to call when this action is invoked by the user.
*/ */
public TDEAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) { public TDEAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) {
super((Class) null); super((Class) null);
@ -202,7 +202,7 @@ public class TDEAction extends TQObject {
private native void newTDEAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name); private native void newTDEAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name);
/** /**
Constructs an action with text, icon, potential keyboard Constructs an action with text, icon, potential keyboard
shortcut, and a SLOT to call when this action is invoked by shortcut, and a slot to call when this action is invoked by
the user. The icon is loaded on demand later based on where it the user. The icon is loaded on demand later based on where it
is plugged in. is plugged in.
If you do not want or have a keyboard shortcut, set the If you do not want or have a keyboard shortcut, set the
@ -212,11 +212,11 @@ public class TDEAction extends TQObject {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The icon to display. @param pix The icon to display.
@param cut The corresponding keyboard shortcut (shortcut). @param cut The corresponding keyboard shortcut (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user. @short Constructs an action with text, icon, potential keyboard shortcut, and a slot to call when this action is invoked by the user.
*/ */
public TDEAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) { public TDEAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) {
super((Class) null); super((Class) null);
@ -228,8 +228,8 @@ public class TDEAction extends TQObject {
the text and icon. the text and icon.
@param item The KGuiItem with the label and (optional) icon. @param item The KGuiItem with the label and (optional) icon.
@param cut The corresponding keyboard shortcut (shortcut). @param cut The corresponding keyboard shortcut (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short The same as the above constructor, but with a KGuiItem providing the text and icon. @short The same as the above constructor, but with a KGuiItem providing the text and icon.

@ -19,10 +19,10 @@ import org.trinitydesktop.qt.TQObject;
a statusbar, do: a statusbar, do:
<pre> <pre>
actionCollection().setHighlightingEnabled(true); actionCollection().setHighlightingEnabled(true);
connect(actionCollection(), SIGNAL("actionStatusText( String )"), connect(actionCollection(), TQ_SIGNAL("actionStatusText( String )"),
statusBar(), SLOT("message( String )") ); statusBar(), TQ_SLOT("message( String )") );
connect(actionCollection(), SIGNAL("clearStatusText()"), connect(actionCollection(), TQ_SIGNAL("clearStatusText()"),
statusBar(), SLOT("clear()") ); statusBar(), TQ_SLOT("clear()") );
</pre> </pre>
See {@link TDEActionCollectionSignals} for signals emitted by TDEActionCollection See {@link TDEActionCollectionSignals} for signals emitted by TDEActionCollection
@short A managed set of TDEAction objects. @short A managed set of TDEAction objects.

@ -602,7 +602,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac
If the widget with focus provides a cut() slot, call that slot. Thus for a If the widget with focus provides a cut() slot, call that slot. Thus for a
simple application cut can be implemented as: simple application cut can be implemented as:
<pre> <pre>
KStdAction.cut( kapp, SLOT("cut()"), actionCollection() ); KStdAction.cut( kapp, TQ_SLOT("cut()"), actionCollection() );
</pre> </pre>
@short If the widget with focus provides a cut() slot, call that slot. @short If the widget with focus provides a cut() slot, call that slot.
*/ */
@ -611,7 +611,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac
If the widget with focus provides a copy() slot, call that slot. Thus for a If the widget with focus provides a copy() slot, call that slot. Thus for a
simple application copy can be implemented as: simple application copy can be implemented as:
<pre> <pre>
KStdAction.copy( kapp, SLOT("copy()"), actionCollection() ); KStdAction.copy( kapp, TQ_SLOT("copy()"), actionCollection() );
</pre> </pre>
@short If the widget with focus provides a copy() slot, call that slot. @short If the widget with focus provides a copy() slot, call that slot.
*/ */
@ -620,7 +620,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac
If the widget with focus provides a paste() slot, call that slot. Thus for a If the widget with focus provides a paste() slot, call that slot. Thus for a
simple application copy can be implemented as: simple application copy can be implemented as:
<pre> <pre>
KStdAction.paste( kapp, SLOT("paste()"), actionCollection() ); KStdAction.paste( kapp, TQ_SLOT("paste()"), actionCollection() );
</pre> </pre>
@short If the widget with focus provides a paste() slot, call that slot. @short If the widget with focus provides a paste() slot, call that slot.
*/ */
@ -629,7 +629,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac
If the widget with focus provides a clear() slot, call that slot. Thus for a If the widget with focus provides a clear() slot, call that slot. Thus for a
simple application clear() can be implemented as: simple application clear() can be implemented as:
<pre> <pre>
new TDEAction( i18n( "Clear" ), "editclear", 0, kapp, SLOT("clear()"), actionCollection(), "clear" ); new TDEAction( i18n( "Clear" ), "editclear", 0, kapp, TQ_SLOT("clear()"), actionCollection(), "clear" );
</pre> </pre>
Note that for some widgets, this may not provide the intended bahavior. For Note that for some widgets, this may not provide the intended bahavior. For
example if you make use of the code above and a TDEListView has the focus, clear() example if you make use of the code above and a TDEListView has the focus, clear()
@ -651,7 +651,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac
If the widget with focus provides a selectAll() slot, call that slot. Thus for a If the widget with focus provides a selectAll() slot, call that slot. Thus for a
simple application select all can be implemented as: simple application select all can be implemented as:
<pre> <pre>
KStdAction.selectAll( kapp, SLOT("selectAll()"), actionCollection() ); KStdAction.selectAll( kapp, TQ_SLOT("selectAll()"), actionCollection() );
</pre> </pre>
@short If the widget with focus provides a selectAll() slot, call that slot. @short If the widget with focus provides a selectAll() slot, call that slot.
*/ */
@ -988,19 +988,19 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac
/** /**
This method is used internally to determine which edit slots are implemented This method is used internally to determine which edit slots are implemented
by the widget that has the focus, and to invoke those slots if available. by the widget that has the focus, and to invoke those slots if available.
@param slot is the slot as returned using the SLOT() macro, for example SLOT("cut()") @param slot is the slot as returned using the TQ_SLOT() macro, for example TQ_SLOT("cut()")
This method can be used in TDEApplication subclasses to implement application wide This method can be used in TDEApplication subclasses to implement application wide
edit actions not supported by the TDEApplication class. For example (in your subclass): edit actions not supported by the TDEApplication class. For example (in your subclass):
<pre> <pre>
void MyApplication.deselect() void MyApplication.deselect()
{ {
invokeEditSlot( SLOT("deselect()") ); invokeEditSlot( TQ_SLOT("deselect()") );
} }
</pre> </pre>
Now in your application calls to MyApplication.deselect() will call this slot on the Now in your application calls to MyApplication.deselect() will call this slot on the
focused widget if it provides this slot. You can combine this with TDEAction with: focused widget if it provides this slot. You can combine this with TDEAction with:
<pre> <pre>
KStdAction.deselect( (MyApplication)( kapp ), SLOT("cut()"), actionCollection() ); KStdAction.deselect( (MyApplication)( kapp ), TQ_SLOT("cut()"), actionCollection() );
</pre> </pre>
@short This method is used internally to determine which edit slots are implemented by the widget that has the focus, and to invoke those slots if available. @short This method is used internally to determine which edit slots are implemented by the widget that has the focus, and to invoke those slots if available.
@see #cut @see #cut

@ -54,7 +54,7 @@ public class TDEGlobalAccel extends TQObject {
insert( "Do Something", i18n("Do Something"), insert( "Do Something", i18n("Do Something"),
i18n("This action allows you to do something really great with this program to " i18n("This action allows you to do something really great with this program to "
"the currently open document."), "the currently open document."),
ALT+CTRL+Key_Q, KKey.QtWIN+CTRL+Key_Q, this, SLOT("slotDoSomething()") ); ALT+CTRL+Key_Q, KKey.QtWIN+CTRL+Key_Q, this, TQ_SLOT("slotDoSomething()") );
</pre> </pre>
@param sAction The internal name of the action. @param sAction The internal name of the action.
@param sLabel An i18n'ized short description of the action displayed when @param sLabel An i18n'ized short description of the action displayed when

@ -49,8 +49,8 @@ public class TDEListAction extends TDESelectAction {
/** /**
@param text The text that will be displayed. @param text The text that will be displayed.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short
@ -125,8 +125,8 @@ public class TDEListAction extends TDESelectAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The icons that go with this action. @param pix The icons that go with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short
@ -145,8 +145,8 @@ public class TDEListAction extends TDESelectAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The dynamically loaded icon that goes with this action. @param pix The dynamically loaded icon that goes with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short

@ -405,8 +405,8 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa
this function) a connection needs to be made to let TDEMainWindow this function) a connection needs to be made to let TDEMainWindow
know when that status (hidden/shown) of the statusbar has changed. know when that status (hidden/shown) of the statusbar has changed.
For example: For example:
connect(action, SIGNAL("activated()"), connect(action, TQ_SIGNAL("activated()"),
tdemainwindow, SLOT("setSettingsDirty()")); tdemainwindow, TQ_SLOT("setSettingsDirty()"));
Otherwise the status (hidden/show) of the statusbar might not be saved Otherwise the status (hidden/show) of the statusbar might not be saved
by TDEMainWindow. by TDEMainWindow.
@short Sets whether TDEMainWindow should provide a menu that allows showing/hiding of the statusbar ( using TDEToggleStatusBarAction ). @short Sets whether TDEMainWindow should provide a menu that allows showing/hiding of the statusbar ( using TDEToggleStatusBarAction ).
@ -470,7 +470,7 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa
This slot can be connected dirrectly to the action to configure shortcuts. This slot can be connected dirrectly to the action to configure shortcuts.
This is very simple to do that by adding a single line This is very simple to do that by adding a single line
<pre> <pre>
KStdAction.configureToolbars( guiFactory(), SLOT("configureToolbars()"), KStdAction.configureToolbars( guiFactory(), TQ_SLOT("configureToolbars()"),
actionCollection() ); actionCollection() );
</pre> </pre>
@short Show a standard configure toolbar dialog. @short Show a standard configure toolbar dialog.
@ -513,8 +513,8 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa
<pre> <pre>
TDEIconLoader &loader = TDEGlobal.iconLoader(); TDEIconLoader &loader = TDEGlobal.iconLoader();
TQPixmap pixmap = loader.loadIcon( "help" ); TQPixmap pixmap = loader.loadIcon( "help" );
toolBar(0).insertButton( pixmap, 0, SIGNAL("clicked()"), toolBar(0).insertButton( pixmap, 0, TQ_SIGNAL("clicked()"),
this, SLOT("appHelpActivated()"), true, i18n("Help") ); this, TQ_SLOT("appHelpActivated()"), true, i18n("Help") );
</pre> </pre>
@short Open the help page for the application. @short Open the help page for the application.
*/ */

@ -30,8 +30,8 @@ public class TDEPasteTextAction extends TDEAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param icon The icon to display. @param icon The icon to display.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's owner. @param receiver The slot's owner.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short Create a TDEPasteTextAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name. @short Create a TDEPasteTextAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name.

@ -61,8 +61,8 @@ import org.trinitydesktop.qt.TQObject;
TDEProcess proc = new TDEProcess; TDEProcess proc = new TDEProcess;
proc << "my_executable"; proc << "my_executable";
proc << "These" << "are" << "the" << "command" << "line" << "args"; proc << "These" << "are" << "the" << "command" << "line" << "args";
TQApplication.connect(proc, SIGNAL("processExited(TDEProcess )"), TQApplication.connect(proc, TQ_SIGNAL("processExited(TDEProcess )"),
pointer_to_my_object, SLOT("my_objects_slot(TDEProcess )")); pointer_to_my_object, TQ_SLOT("my_objects_slot(TDEProcess )"));
proc.start(); proc.start();
</pre> </pre>
This will start "my_executable" with the commandline arguments "These"... This will start "my_executable" with the commandline arguments "These"...

@ -51,8 +51,8 @@ public class TDERadioAction extends TDEToggleAction {
/** /**
@param text The text that will be displayed. @param text The text that will be displayed.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short
@ -127,8 +127,8 @@ public class TDERadioAction extends TDEToggleAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The icons that go with this action. @param pix The icons that go with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short
@ -147,8 +147,8 @@ public class TDERadioAction extends TDEToggleAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The dynamically loaded icon that goes with this action. @param pix The dynamically loaded icon that goes with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short

@ -50,8 +50,8 @@ public class TDERecentFilesAction extends TDEListAction {
/** /**
@param text The text that will be displayed. @param text The text that will be displayed.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke when a URL is selected. @param slot The slot to invoke when a URL is selected.
Its signature is of the form slotURLSelected( KURL ). Its signature is of the form slotURLSelected( KURL ).
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@ -125,8 +125,8 @@ public class TDERecentFilesAction extends TDEListAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The icons that go with this action. @param pix The icons that go with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke when a URL is selected. @param slot The slot to invoke when a URL is selected.
Its signature is of the form slotURLSelected( KURL ). Its signature is of the form slotURLSelected( KURL ).
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@ -152,8 +152,8 @@ public class TDERecentFilesAction extends TDEListAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The dynamically loaded icon that goes with this action. @param pix The dynamically loaded icon that goes with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke when a URL is selected. @param slot The slot to invoke when a URL is selected.
Its signature is of the form slotURLSelected( KURL ). Its signature is of the form slotURLSelected( KURL ).
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.

@ -59,8 +59,8 @@ public class TDESelectAction extends TDEAction {
/** /**
@param text The text that will be displayed. @param text The text that will be displayed.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short
@ -135,8 +135,8 @@ public class TDESelectAction extends TDEAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The icons that go with this action. @param pix The icons that go with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short
@ -155,8 +155,8 @@ public class TDESelectAction extends TDEAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The dynamically loaded icon that goes with this action. @param pix The dynamically loaded icon that goes with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short

@ -15,7 +15,7 @@ import org.trinitydesktop.qt.QtSupport;
This can be used to add additional accelerators to a TDEAction. For example, This can be used to add additional accelerators to a TDEAction. For example,
the below code binds the escape key to the close action. the below code binds the escape key to the close action.
<pre> <pre>
TDEAction closeAction = KStdAction.close( this, SLOT("close()"), actionCollection() ); TDEAction closeAction = KStdAction.close( this, TQ_SLOT("close()"), actionCollection() );
TDEShortcut closeShortcut = closeAction.shortcut(); TDEShortcut closeShortcut = closeAction.shortcut();
closeShortcut.append( KKey(Key_Escape)); closeShortcut.append( KKey(Key_Escape));
closeAction.setShortcut(closeShortcut); closeAction.setShortcut(closeShortcut);

@ -53,8 +53,8 @@ public class TDEToggleAction extends TDEAction {
/** /**
@param text The text that will be displayed. @param text The text that will be displayed.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short
@ -129,8 +129,8 @@ public class TDEToggleAction extends TDEAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The icons that go with this action. @param pix The icons that go with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short
@ -149,8 +149,8 @@ public class TDEToggleAction extends TDEAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param pix The dynamically loaded icon that goes with this action. @param pix The dynamically loaded icon that goes with this action.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short @short

@ -29,8 +29,8 @@ public class TDEToggleFullScreenAction extends TDEToggleAction {
/** /**
Create a TDEToggleFullScreenAction Create a TDEToggleFullScreenAction
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's parent. @param receiver The slot's parent.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param window the window that will switch to/from full screen mode @param window the window that will switch to/from full screen mode
@param name An internal name for this action. @param name An internal name for this action.

@ -449,8 +449,8 @@ public class TDEToolBar extends TQToolBar {
You will insert a normal button with connection (or use signals from You will insert a normal button with connection (or use signals from
toolbar): toolbar):
<pre> <pre>
bar.insertButton(icon, id, SIGNAL("clicked ()"), this, bar.insertButton(icon, id, TQ_SIGNAL("clicked ()"), this,
SLOT (slotClick()), true, "click or wait for popup"); TQ_SLOT (slotClick()), true, "click or wait for popup");
</pre> </pre>
And then add a delayed popup: And then add a delayed popup:
<pre> <pre>

@ -59,8 +59,8 @@ public class TDEToolBarPopupAction extends TDEAction {
@param text The text that will be displayed. @param text The text that will be displayed.
@param icon The icon to display. @param icon The icon to display.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's owner. @param receiver The slot's owner.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short Create a TDEToolBarPopupAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name. @short Create a TDEToolBarPopupAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name.
@ -83,8 +83,8 @@ public class TDEToolBarPopupAction extends TDEAction {
<code>cut</code> param to 0. <code>cut</code> param to 0.
@param item The text and icon that will be displayed. @param item The text and icon that will be displayed.
@param cut The corresponding keyboard accelerator (shortcut). @param cut The corresponding keyboard accelerator (shortcut).
@param receiver The SLOT's owner. @param receiver The slot's owner.
@param slot The SLOT to invoke to execute this action. @param slot The slot to invoke to execute this action.
@param parent This action's parent. @param parent This action's parent.
@param name An internal name for this action. @param name An internal name for this action.
@short Create a TDEToolBarPopupAction, with a KGuiItem, an accelerator, a slot connected to the action, parent and name. @short Create a TDEToolBarPopupAction, with a KGuiItem, an accelerator, a slot connected to the action, parent and name.

@ -84,22 +84,22 @@ public KBase()
/** initializes the TDEActions of the application */ /** initializes the TDEActions of the application */
protected void initActions() protected void initActions()
{ {
fileNewWindow = new TDEAction(tr("New &Window"), "", new TDEShortcut(), this, SLOT("slotFileNewWindow()"), actionCollection(),"file_new_window"); fileNewWindow = new TDEAction(tr("New &Window"), "", new TDEShortcut(), this, TQ_SLOT("slotFileNewWindow()"), actionCollection(),"file_new_window");
fileNew = KStdAction.openNew(this, SLOT("slotFileNew()"), actionCollection()); fileNew = KStdAction.openNew(this, TQ_SLOT("slotFileNew()"), actionCollection());
fileOpen = KStdAction.open(this, SLOT("slotFileOpen()"), actionCollection()); fileOpen = KStdAction.open(this, TQ_SLOT("slotFileOpen()"), actionCollection());
fileOpenRecent = (TDERecentFilesAction) KStdAction.openRecent(this, SLOT("slotFileOpenRecent(KURL)"), actionCollection()); fileOpenRecent = (TDERecentFilesAction) KStdAction.openRecent(this, TQ_SLOT("slotFileOpenRecent(KURL)"), actionCollection());
fileSave = KStdAction.save(this, SLOT("slotFileSave()"), actionCollection()); fileSave = KStdAction.save(this, TQ_SLOT("slotFileSave()"), actionCollection());
fileSaveAs = KStdAction.saveAs(this, SLOT("slotFileSaveAs()"), actionCollection()); fileSaveAs = KStdAction.saveAs(this, TQ_SLOT("slotFileSaveAs()"), actionCollection());
// this one crashes for me... // this one crashes for me...
// fileClose = KStdAction.close(this, SLOT(slotFileClose()), actionCollection()); // fileClose = KStdAction.close(this, TQ_SLOT(slotFileClose()), actionCollection());
filePrint = KStdAction.print(this, SLOT("slotFilePrint()"), actionCollection()); filePrint = KStdAction.print(this, TQ_SLOT("slotFilePrint()"), actionCollection());
fileQuit = KStdAction.quit(this, SLOT("slotFileQuit()"), actionCollection()); fileQuit = KStdAction.quit(this, TQ_SLOT("slotFileQuit()"), actionCollection());
editCut = KStdAction.cut(this, SLOT("slotEditCut()"), actionCollection()); editCut = KStdAction.cut(this, TQ_SLOT("slotEditCut()"), actionCollection());
editCopy = KStdAction.copy(this, SLOT("slotEditCopy()"), actionCollection()); editCopy = KStdAction.copy(this, TQ_SLOT("slotEditCopy()"), actionCollection());
editPaste = KStdAction.paste(this, SLOT("slotEditPaste()"), actionCollection()); editPaste = KStdAction.paste(this, TQ_SLOT("slotEditPaste()"), actionCollection());
createStandardStatusBarAction(); createStandardStatusBarAction();
// viewToolBar = KStdAction.showToolbar(this, SLOT("slotViewToolBar()"), actionCollection()); // viewToolBar = KStdAction.showToolbar(this, TQ_SLOT("slotViewToolBar()"), actionCollection());
viewStatusBar = KStdAction.showStatusbar(this, SLOT("slotViewStatusBar()"), actionCollection()); viewStatusBar = KStdAction.showStatusbar(this, TQ_SLOT("slotViewStatusBar()"), actionCollection());
fileNewWindow.setToolTip(tr("Opens a new application window")); fileNewWindow.setToolTip(tr("Opens a new application window"));
fileNew.setToolTip(tr("Creates a new document")); fileNew.setToolTip(tr("Creates a new document"));

@ -93,7 +93,7 @@ import java.util.*;
// Create an exit button // Create an exit button
TQPushButton push = new TQPushButton( "E&xit", w ); TQPushButton push = new TQPushButton( "E&xit", w );
TQObject.connect( push, Qt.SIGNAL("clicked()"), app, Qt.SLOT("closeAllWindows()" ) ); TQObject.connect( push, Qt.TQ_SIGNAL("clicked()"), app, Qt.TQ_SLOT("closeAllWindows()" ) );
// Insert the widgets into the layout manager. // Insert the widgets into the layout manager.
vbox.addWidget( lblrw ); vbox.addWidget( lblrw );

@ -41,9 +41,9 @@ public class KHelpers extends TDEMainWindow {
idfilenew = file.insertItem("&New"); idfilenew = file.insertItem("&New");
idfileopen = file.insertItem("&Open..."); idfileopen = file.insertItem("&Open...");
idfilesave = file.insertItem("&Save"); idfilesave = file.insertItem("&Save");
idfilequit = file.insertItem("&Quit", kapp, SLOT("closeAllWindows()")); idfilequit = file.insertItem("&Quit", kapp, TQ_SLOT("closeAllWindows()"));
connect ( file, SIGNAL( "highlighted(int)"), this, SLOT( "slotMenuEntryHelp (int)")); connect ( file, TQ_SIGNAL( "highlighted(int)"), this, TQ_SLOT( "slotMenuEntryHelp (int)"));
menuBar().insertItem("&File",file); menuBar().insertItem("&File",file);
@ -53,7 +53,7 @@ public class KHelpers extends TDEMainWindow {
"that your application can provide help to a user"); "that your application can provide help to a user");
help.insertSeparator(); help.insertSeparator();
help.insertItem("Help on a special topic", this, SLOT("slotSpecialHelp()")); help.insertItem("Help on a special topic", this, TQ_SLOT("slotSpecialHelp()"));
menuBar().insertItem("&Help",help); menuBar().insertItem("&Help",help);

@ -57,9 +57,9 @@ public class KdeMenuSample extends TDEMainWindow {
*/ */
private TQPopupMenu createFileMenu() { private TQPopupMenu createFileMenu() {
TQPopupMenu fileMenu = new TQPopupMenu(this); TQPopupMenu fileMenu = new TQPopupMenu(this);
fileMenu.insertItem("&Open",this,this.SLOT("fileOpen()")); fileMenu.insertItem("&Open",this,this.TQ_SLOT("fileOpen()"));
fileMenu.insertItem("&Save",this,this.SLOT("fileSave()")); fileMenu.insertItem("&Save",this,this.TQ_SLOT("fileSave()"));
fileMenu.insertItem("&Quit",kApp,kApp.SLOT("quit()")); fileMenu.insertItem("&Quit",kApp,kApp.TQ_SLOT("quit()"));
return fileMenu; return fileMenu;
} }

@ -29,8 +29,8 @@ public class KSimpleBrowser extends TDEMainWindow {
super(null,name,0); super(null,name,0);
toolBar().insertLined( "", URLLined, SIGNAL("returnPressed()"), toolBar().insertLined( "", URLLined, TQ_SIGNAL("returnPressed()"),
this, SLOT ("slotNewURL()")); this, TQ_SLOT ("slotNewURL()"));
toolBar().setItemAutoSized(URLLined); toolBar().setItemAutoSized(URLLined);

@ -125,7 +125,7 @@ KioslaveTest( String src, String dest, int op, int pr )
// Operation groupbox & buttons // Operation groupbox & buttons
opButtons = new TQButtonGroup( "Operation", main_widget ); opButtons = new TQButtonGroup( "Operation", main_widget );
topLayout.addWidget( opButtons, 10 ); topLayout.addWidget( opButtons, 10 );
connect( opButtons, SIGNAL("clicked(int)"), SLOT("changeOperation(int)") ); connect( opButtons, TQ_SIGNAL("clicked(int)"), TQ_SLOT("changeOperation(int)") );
TQBoxLayout hbLayout = new TQHBoxLayout( opButtons, 15 ); TQBoxLayout hbLayout = new TQHBoxLayout( opButtons, 15 );
@ -179,7 +179,7 @@ KioslaveTest( String src, String dest, int op, int pr )
// Progress groupbox & buttons // Progress groupbox & buttons
progressButtons = new TQButtonGroup( "Progress dialog mode", main_widget ); progressButtons = new TQButtonGroup( "Progress dialog mode", main_widget );
topLayout.addWidget( progressButtons, 10 ); topLayout.addWidget( progressButtons, 10 );
connect( progressButtons, SIGNAL("clicked(int)"), SLOT("changeProgressMode(int)") ); connect( progressButtons, TQ_SIGNAL("clicked(int)"), TQ_SLOT("changeProgressMode(int)") );
hbLayout = new TQHBoxLayout( progressButtons, 15 ); hbLayout = new TQHBoxLayout( progressButtons, 15 );
@ -207,19 +207,19 @@ KioslaveTest( String src, String dest, int op, int pr )
pbStart = new TQPushButton( "&Start", main_widget ); pbStart = new TQPushButton( "&Start", main_widget );
pbStart.setFixedSize( pbStart.sizeHint() ); pbStart.setFixedSize( pbStart.sizeHint() );
connect( pbStart, SIGNAL("clicked()"), SLOT("startJob()") ); connect( pbStart, TQ_SIGNAL("clicked()"), TQ_SLOT("startJob()") );
hbLayout.addWidget( pbStart, 5 ); hbLayout.addWidget( pbStart, 5 );
pbStop = new TQPushButton( "Sto&p", main_widget ); pbStop = new TQPushButton( "Sto&p", main_widget );
pbStop.setFixedSize( pbStop.sizeHint() ); pbStop.setFixedSize( pbStop.sizeHint() );
pbStop.setEnabled( false ); pbStop.setEnabled( false );
connect( pbStop, SIGNAL("clicked()"), SLOT("stopJob()") ); connect( pbStop, TQ_SIGNAL("clicked()"), TQ_SLOT("stopJob()") );
hbLayout.addWidget( pbStop, 5 ); hbLayout.addWidget( pbStop, 5 );
// close button // close button
close = new TQPushButton( "&Close", main_widget ); close = new TQPushButton( "&Close", main_widget );
close.setFixedSize( close.sizeHint() ); close.setFixedSize( close.sizeHint() );
connect(close, SIGNAL("clicked()"), this, SLOT("slotQuit()")); connect(close, TQ_SIGNAL("clicked()"), this, TQ_SLOT("slotQuit()"));
topLayout.addWidget( close, 5 ); topLayout.addWidget( close, 5 );
@ -228,10 +228,10 @@ KioslaveTest( String src, String dest, int op, int pr )
slave = null; slave = null;
// slave = Scheduler.getConnectedSlave(new KURL("ftp://ftp.kde.org")); // slave = Scheduler.getConnectedSlave(new KURL("ftp://ftp.kde.org"));
Scheduler.connect(SIGNAL("slaveConnected(Slave)"), Scheduler.connect(TQ_SIGNAL("slaveConnected(Slave)"),
this, SLOT("slotSlaveConnected()")); this, TQ_SLOT("slotSlaveConnected()"));
Scheduler.connect(SIGNAL("slaveError(Slave,int,String)"), Scheduler.connect(TQ_SIGNAL("slaveError(Slave,int,String)"),
this, SLOT("slotSlaveError()")); this, TQ_SLOT("slotSlaveError()"));
} }
@ -304,14 +304,14 @@ void startJob() {
switch ( selectedOperation ) { switch ( selectedOperation ) {
case List: case List:
myJob = TDEIO.listDir( src ); myJob = TDEIO.listDir( src );
// connect(myJob, SIGNAL(" entries( Job, const TDEIO.UDSEntryList&)"), // connect(myJob, TQ_SIGNAL(" entries( Job, const TDEIO.UDSEntryList&)"),
// SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)")); // TQ_SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)"));
break; break;
case ListRecursive: case ListRecursive:
myJob = TDEIO.listRecursive( src ); myJob = TDEIO.listRecursive( src );
// connect(myJob, SIGNAL(" entries( TDEIO.Job, const TDEIO.UDSEntryList&)"), // connect(myJob, TQ_SIGNAL(" entries( TDEIO.Job, const TDEIO.UDSEntryList&)"),
// SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)")); // TQ_SLOT(" slotEntries( TDEIO.Job, const TDEIO.UDSEntryList&)"));
break; break;
case Stat: case Stat:
@ -320,15 +320,15 @@ void startJob() {
case Get: case Get:
myJob = TDEIO.get( src, true ); myJob = TDEIO.get( src, true );
connect(myJob, SIGNAL("data( Job, byte[])"), connect(myJob, TQ_SIGNAL("data( Job, byte[])"),
SLOT("slotData( Job, byte[])")); TQ_SLOT("slotData( Job, byte[])"));
break; break;
case Put: case Put:
putBuffer = 0; putBuffer = 0;
myJob = TDEIO.put( src, -1, true, false); myJob = TDEIO.put( src, -1, true, false);
connect(myJob, SIGNAL("dataReq( Job, ByteArrayOutputStream)"), connect(myJob, TQ_SIGNAL("dataReq( Job, ByteArrayOutputStream)"),
SLOT("slotDataReq( Job, ByteArrayOutputStream)")); TQ_SLOT("slotDataReq( Job, ByteArrayOutputStream)"));
break; break;
case Copy: case Copy:
@ -362,11 +362,11 @@ void startJob() {
job = myJob; job = myJob;
} }
connect( job, SIGNAL(" result( Job )"), connect( job, TQ_SIGNAL(" result( Job )"),
SLOT(" slotResult( Job )") ); TQ_SLOT(" slotResult( Job )") );
connect( job, SIGNAL(" canceled( Job )"), connect( job, TQ_SIGNAL(" canceled( Job )"),
SLOT(" slotResult( Job )") ); TQ_SLOT(" slotResult( Job )") );
if (progressMode == ProgressStatus) { if (progressMode == ProgressStatus) {
statusProgress.setJob( job ); statusProgress.setJob( job );

@ -22,7 +22,7 @@ public:
setCentralWidget( m_host->widget() ); setCentralWidget( m_host->widget() );
connect(m_host, TQT_SIGNAL( actionsInitialized() ), this, TQT_SLOT( mergeGUI() ) ); connect(m_host, TQ_SIGNAL( actionsInitialized() ), this, TQ_SLOT( mergeGUI() ) );
#if 1 #if 1
m_partProcess = new TDEProcess; m_partProcess = new TDEProcess;
@ -31,10 +31,10 @@ public:
m_partProcess->start(); m_partProcess->start();
#endif #endif
KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() ); KStdAction::quit( this, TQ_SLOT( close() ), actionCollection() );
TDESelectAction *s = new TDESelectAction( "http://www.kde.org" , 0, TDESelectAction *s = new TDESelectAction( "http://www.kde.org" , 0,
actionCollection(), "location" ); actionCollection(), "location" );
connect( s, TQT_SIGNAL(activated( const TQString& ) ), this, TQT_SLOT( slotOpenUrl( const TQString & ) ) ); connect( s, TQ_SIGNAL(activated( const TQString& ) ), this, TQ_SLOT( slotOpenUrl( const TQString & ) ) );
s->setEditable(true); s->setEditable(true);
} }
virtual ~ShellWindow() virtual ~ShellWindow()

@ -77,9 +77,9 @@ void XPartHost_KPart::createActions( const TQCString &xmlActions )
TQString type = e.attribute("type"); TQString type = e.attribute("type");
if(type.isEmpty()) if(type.isEmpty())
new TDEAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() ); new TDEAction( name, 0, this, TQ_SLOT( actionActivated() ), actionCollection(), name.latin1() );
else if( type == "toggle" ) else if( type == "toggle" )
new TDEToggleAction( name, 0, this, TQT_SLOT( actionActivated() ), actionCollection(), name.latin1() ); new TDEToggleAction( name, 0, this, TQ_SLOT( actionActivated() ), actionCollection(), name.latin1() );
kdDebug() << "action=" << name << " type=" << type << endl; kdDebug() << "action=" << name << " type=" << type << endl;
} else if ( e.tagName() == "XMLFile" ) { } else if ( e.tagName() == "XMLFile" ) {
TQString location = e.attribute("location"); TQString location = e.attribute("location");

@ -19,7 +19,7 @@ ShellWindow::ShellWindow()
setCentralWidget( m_host->widget() ); setCentralWidget( m_host->widget() );
connect(m_host, TQT_SIGNAL( actionsInitialized() ), this, TQT_SLOT( mergeGUI() ) ); connect(m_host, TQ_SIGNAL( actionsInitialized() ), this, TQ_SLOT( mergeGUI() ) );
// Launch our XPart child. // Launch our XPart child.
m_partProcess = new TDEProcess; m_partProcess = new TDEProcess;
@ -28,11 +28,11 @@ ShellWindow::ShellWindow()
m_partProcess->start(); m_partProcess->start();
// Init our Gui // Init our Gui
(void) new TDEAction( "Hop", 0, this, TQT_SLOT(hop()), actionCollection(), "hop" ); (void) new TDEAction( "Hop", 0, this, TQ_SLOT(hop()), actionCollection(), "hop" );
KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() ); KStdAction::quit( this, TQ_SLOT( close() ), actionCollection() );
TDESelectAction *s = new TDESelectAction( "http://www.kde.org" , 0, TDESelectAction *s = new TDESelectAction( "http://www.kde.org" , 0,
actionCollection(), "location" ); actionCollection(), "location" );
connect( s, TQT_SIGNAL(activated( const TQString& ) ), this, TQT_SLOT( slotOpenUrl( const TQString & ) ) ); connect( s, TQ_SIGNAL(activated( const TQString& ) ), this, TQ_SLOT( slotOpenUrl( const TQString & ) ) );
s->setEditable(true); s->setEditable(true);
kdDebug() << "KShell window created" << endl; kdDebug() << "KShell window created" << endl;

Loading…
Cancel
Save