summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-02 11:36:54 +0900
committerMichele Calgaro <[email protected]>2024-01-02 11:36:54 +0900
commit1ca6231ff7a251916340814041990bef8e282308 (patch)
tree70032d1b548c828ee397996ac1e6ef12b998698b /src/app
parent6208d03e3d27f1516519199132a8dc8d61e222f1 (diff)
downloadcodeine-1ca6231ff7a251916340814041990bef8e282308.tar.gz
codeine-1ca6231ff7a251916340814041990bef8e282308.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/adjustSizeButton.cpp8
-rw-r--r--src/app/analyzer.cpp2
-rw-r--r--src/app/captureFrame.cpp4
-rw-r--r--src/app/mainWindow.cpp44
-rw-r--r--src/app/playDialog.cpp14
-rw-r--r--src/app/videoSettings.cpp2
-rw-r--r--src/app/videoWindow.cpp2
-rw-r--r--src/app/volumeAction.cpp8
-rw-r--r--src/app/xineConfig.cpp10
-rw-r--r--src/app/xineEngine.cpp2
10 files changed, 48 insertions, 48 deletions
diff --git a/src/app/adjustSizeButton.cpp b/src/app/adjustSizeButton.cpp
index e1bf5b1..fa691d9 100644
--- a/src/app/adjustSizeButton.cpp
+++ b/src/app/adjustSizeButton.cpp
@@ -29,12 +29,12 @@ namespace Codeine
setFrameStyle( TQFrame::Plain | TQFrame::Box );
m_preferred = new KPushButton( KGuiItem( i18n("Preferred Scale"), "viewmag" ), this );
- connect( m_preferred, SIGNAL(clicked()), tqApp->mainWidget(), SLOT(adjustSize()) );
- connect( m_preferred, SIGNAL(clicked()), SLOT(deleteLater()) );
+ connect( m_preferred, TQ_SIGNAL(clicked()), tqApp->mainWidget(), TQ_SLOT(adjustSize()) );
+ connect( m_preferred, TQ_SIGNAL(clicked()), TQ_SLOT(deleteLater()) );
m_oneToOne = new KPushButton( KGuiItem( i18n("Scale 100%"), "viewmag1" ), this );
- connect( m_oneToOne, SIGNAL(clicked()), (TQObject*)videoWindow(), SLOT(resetZoom()) );
- connect( m_oneToOne, SIGNAL(clicked()), SLOT(deleteLater()) );
+ connect( m_oneToOne, TQ_SIGNAL(clicked()), (TQObject*)videoWindow(), TQ_SLOT(resetZoom()) );
+ connect( m_oneToOne, TQ_SIGNAL(clicked()), TQ_SLOT(deleteLater()) );
TQBoxLayout *hbox = new TQHBoxLayout( this, 8, 6 );
TQBoxLayout *vbox = new TQVBoxLayout( hbox );
diff --git a/src/app/analyzer.cpp b/src/app/analyzer.cpp
index 9d3da06..e0f82ec 100644
--- a/src/app/analyzer.cpp
+++ b/src/app/analyzer.cpp
@@ -40,7 +40,7 @@ Analyzer::Base2D::Base2D( TQWidget *parent, uint timeout )
: Base<TQWidget>( parent, timeout )
{
setWFlags( TQt::WNoAutoErase ); //no flicker
- connect( &m_timer, SIGNAL(timeout()), SLOT(draw()) );
+ connect( &m_timer, TQ_SIGNAL(timeout()), TQ_SLOT(draw()) );
}
void
diff --git a/src/app/captureFrame.cpp b/src/app/captureFrame.cpp
index 827a292..0b7e8c8 100644
--- a/src/app/captureFrame.cpp
+++ b/src/app/captureFrame.cpp
@@ -73,11 +73,11 @@ public:
TQHBox *box = new TQHBox( this );
KPushButton *o = new KPushButton( KStdGuiItem::save(), box );
- connect( o, SIGNAL(clicked()), SLOT(accept()) );
+ connect( o, TQ_SIGNAL(clicked()), TQ_SLOT(accept()) );
o = new KPushButton( KStdGuiItem::cancel(), box );
o->setText( i18n("Discard") );
- connect( o, SIGNAL(clicked()), SLOT(reject()) );
+ connect( o, TQ_SIGNAL(clicked()), TQ_SLOT(reject()) );
setCaption( i18n("Capture - %1").arg( time ) );
setFixedSize( sizeHint() );
diff --git a/src/app/mainWindow.cpp b/src/app/mainWindow.cpp
index b94a2e9..1eb27f5 100644
--- a/src/app/mainWindow.cpp
+++ b/src/app/mainWindow.cpp
@@ -122,8 +122,8 @@ MainWindow::MainWindow()
#define make_menu( name, text ) \
menu = new TQPopupMenu( this, name ); \
menu->setCheckable( true ); \
- connect( menu, SIGNAL(activated( int )), engine(), SLOT(setStreamParameter( int )) ); \
- connect( menu, SIGNAL(aboutToShow()), SLOT(aboutToShowMenu()) ); \
+ connect( menu, TQ_SIGNAL(activated( int )), engine(), TQ_SLOT(setStreamParameter( int )) ); \
+ connect( menu, TQ_SIGNAL(aboutToShow()), TQ_SLOT(aboutToShowMenu()) ); \
settings->insertItem( text, menu, id, index ); \
settings->setItemEnabled( id, false ); \
id++, index++;
@@ -159,7 +159,7 @@ MainWindow::MainWindow()
else {
//"faster" startup
//TODO if we have a size stored for this video, do the "faster" route
- TQTimer::singleShot( 0, this, SLOT(init()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(init()) );
TQApplication::setOverrideCursor( KCursor::waitCursor() ); }
}
@@ -168,11 +168,11 @@ MainWindow::init()
{
DEBUG_BLOCK
- connect( engine(), SIGNAL(statusMessage( const TQString& )), this, SLOT(engineMessage( const TQString& )) );
- connect( engine(), SIGNAL(stateChanged( Engine::State )), this, SLOT(engineStateChanged( Engine::State )) );
- connect( engine(), SIGNAL(channelsChanged( const TQStringList& )), this, SLOT(setChannels( const TQStringList& )) );
- connect( engine(), SIGNAL(titleChanged( const TQString& )), m_titleLabel, SLOT(setText( const TQString& )) );
- connect( m_positionSlider, SIGNAL(valueChanged( int )), this, SLOT(showTime( int )) );
+ connect( engine(), TQ_SIGNAL(statusMessage( const TQString& )), this, TQ_SLOT(engineMessage( const TQString& )) );
+ connect( engine(), TQ_SIGNAL(stateChanged( Engine::State )), this, TQ_SLOT(engineStateChanged( Engine::State )) );
+ connect( engine(), TQ_SIGNAL(channelsChanged( const TQStringList& )), this, TQ_SLOT(setChannels( const TQStringList& )) );
+ connect( engine(), TQ_SIGNAL(titleChanged( const TQString& )), m_titleLabel, TQ_SLOT(setText( const TQString& )) );
+ connect( m_positionSlider, TQ_SIGNAL(valueChanged( int )), this, TQ_SLOT(showTime( int )) );
if( !engine()->init() ) {
KMessageBox::error( this, i18n(
@@ -183,8 +183,8 @@ MainWindow::init()
//would be dangerous for these to65535 happen before the videoWindow() is initialised
setAcceptDrops( true );
- connect( m_positionSlider, SIGNAL(sliderReleased( uint )), engine(), SLOT(seek( uint )) );
- connect( statusBar(), SIGNAL(messageChanged( const TQString& )), engine(), SLOT(showOSD( const TQString& )) );
+ connect( m_positionSlider, TQ_SIGNAL(sliderReleased( uint )), engine(), TQ_SLOT(seek( uint )) );
+ connect( statusBar(), TQ_SIGNAL(messageChanged( const TQString& )), engine(), TQ_SLOT(showOSD( const TQString& )) );
TQApplication::restoreOverrideCursor();
@@ -246,22 +246,22 @@ MainWindow::setupActions()
TDEActionCollection * const ac = actionCollection();
- KStdAction::quit( kapp, SLOT(quit()), ac );
- KStdAction::open( this, SLOT(playMedia()), ac, "play_media" )->setText( i18n("Play &Media...") );
- connect( new FullScreenAction( this, ac ), SIGNAL(toggled( bool )), SLOT(fullScreenToggled( bool )) );
+ KStdAction::quit( kapp, TQ_SLOT(quit()), ac );
+ KStdAction::open( this, TQ_SLOT(playMedia()), ac, "play_media" )->setText( i18n("Play &Media...") );
+ connect( new FullScreenAction( this, ac ), TQ_SIGNAL(toggled( bool )), TQ_SLOT(fullScreenToggled( bool )) );
- new PlayAction( this, SLOT(play()), ac );
- new TDEAction( i18n("Stop"), "media-playback-stop", Key_S, engine(), SLOT(stop()), ac, "stop" );
+ new PlayAction( this, TQ_SLOT(play()), ac );
+ new TDEAction( i18n("Stop"), "media-playback-stop", Key_S, engine(), TQ_SLOT(stop()), ac, "stop" );
- new TDEToggleAction( i18n("Record"), "player_record", CTRL + Key_R, engine(), SLOT(record()), ac, "record" );
+ new TDEToggleAction( i18n("Record"), "player_record", CTRL + Key_R, engine(), TQ_SLOT(record()), ac, "record" );
- new TDEAction( i18n("Reset Video Scale"), "viewmag1", Key_Equal, videoWindow(), SLOT(resetZoom()), ac, "reset_zoom" );
- new TDEAction( i18n("Media Information"), "messagebox_info", Key_I, this, SLOT(streamInformation()), ac, "information" );
- new TDEAction( i18n("Menu Toggle"), "media-optical-dvd-unmounted", Key_R, engine(), SLOT(toggleDVDMenu()), ac, "media-optical-dvd-unmounted" );
- new TDEAction( i18n("&Capture Frame"), "frame_image", Key_C, this, SLOT(captureFrame()), ac, "capture_frame" );
+ new TDEAction( i18n("Reset Video Scale"), "viewmag1", Key_Equal, videoWindow(), TQ_SLOT(resetZoom()), ac, "reset_zoom" );
+ new TDEAction( i18n("Media Information"), "messagebox_info", Key_I, this, TQ_SLOT(streamInformation()), ac, "information" );
+ new TDEAction( i18n("Menu Toggle"), "media-optical-dvd-unmounted", Key_R, engine(), TQ_SLOT(toggleDVDMenu()), ac, "media-optical-dvd-unmounted" );
+ new TDEAction( i18n("&Capture Frame"), "frame_image", Key_C, this, TQ_SLOT(captureFrame()), ac, "capture_frame" );
- new TDEAction( i18n("Video Settings..."), "configure", Key_V, this, SLOT(configure()), ac, "video_settings" );
- new TDEAction( i18n("Configure xine..."), "configure", 0, this, SLOT(configure()), ac, "xine_settings" );
+ new TDEAction( i18n("Video Settings..."), "configure", Key_V, this, TQ_SLOT(configure()), ac, "video_settings" );
+ new TDEAction( i18n("Configure xine..."), "configure", 0, this, TQ_SLOT(configure()), ac, "xine_settings" );
(new KWidgetAction( m_positionSlider, i18n("Position Slider"), 0, 0, 0, ac, "position_slider" ))->setAutoSized( true );
diff --git a/src/app/playDialog.cpp b/src/app/playDialog.cpp
index b889876..60ab979 100644
--- a/src/app/playDialog.cpp
+++ b/src/app/playDialog.cpp
@@ -37,19 +37,19 @@ PlayDialog::PlayDialog( TQWidget *parent, bool be_welcome_dialog )
//TODO use the kguiItems from the actions
mapper->setMapping( o = new KPushButton( KGuiItem( i18n("Play File..."), "folder" ), this ), FILE );
- connect( o, SIGNAL(clicked()), mapper, SLOT(map()) );
+ connect( o, TQ_SIGNAL(clicked()), mapper, TQ_SLOT(map()) );
grid->TQLayout::add( o );
mapper->setMapping( o = new KPushButton( KGuiItem( i18n("Play VCD"), "media-optical-cdaudio-unmounted" ), this ), VCD );
- connect( o, SIGNAL(clicked()), mapper, SLOT(map()) );
+ connect( o, TQ_SIGNAL(clicked()), mapper, TQ_SLOT(map()) );
grid->TQLayout::add( o );
mapper->setMapping( o = new KPushButton( KGuiItem( i18n("Play DVD"), "media-optical-dvd-unmounted" ), this ), DVD );
- connect( o, SIGNAL(clicked()), mapper, SLOT(map()) );
+ connect( o, TQ_SIGNAL(clicked()), mapper, TQ_SLOT(map()) );
grid->TQLayout::add( o );
mapper->setMapping( closeButton, TQDialog::Rejected );
- connect( closeButton, SIGNAL(clicked()), mapper, SLOT(map()) );
+ connect( closeButton, TQ_SIGNAL(clicked()), mapper, TQ_SLOT(map()) );
createRecentFileWidget( vbox );
@@ -59,12 +59,12 @@ PlayDialog::PlayDialog( TQWidget *parent, bool be_welcome_dialog )
if( be_welcome_dialog ) {
TQWidget *w = new KPushButton( KStdGuiItem::quit(), this );
hbox->addWidget( w );
- connect( w, SIGNAL(clicked()), kapp, SLOT(quit()) );
+ connect( w, TQ_SIGNAL(clicked()), kapp, TQ_SLOT(quit()) );
}
hbox->addWidget( closeButton );
- connect( mapper, SIGNAL(mapped( int )), SLOT(done( int )) );
+ connect( mapper, TQ_SIGNAL(mapped( int )), TQ_SLOT(done( int )) );
}
void
@@ -98,7 +98,7 @@ PlayDialog::createRecentFileWidget( TQBoxLayout *layout )
if( lv->childCount() ) {
layout->addWidget( lv, 1 );
- connect( lv, SIGNAL(executed( TQListViewItem* )), SLOT(done( TQListViewItem* )) );
+ connect( lv, TQ_SIGNAL(executed( TQListViewItem* )), TQ_SLOT(done( TQListViewItem* )) );
}
else
delete lv;
diff --git a/src/app/videoSettings.cpp b/src/app/videoSettings.cpp
index 3a45c5a..14e272e 100644
--- a/src/app/videoSettings.cpp
+++ b/src/app/videoSettings.cpp
@@ -37,7 +37,7 @@ public:
setTickmarks( TQSlider::Below );
setTickInterval( 65536 / 4 );
setMinimumWidth( fontMetrics().width( name ) * 3 );
- connect( this, SIGNAL(valueChanged( int )), Codeine::engine(), SLOT(setStreamParameter( int )) );
+ connect( this, TQ_SIGNAL(valueChanged( int )), Codeine::engine(), TQ_SLOT(setStreamParameter( int )) );
}
virtual void mousePressEvent( TQMouseEvent *e )
diff --git a/src/app/videoWindow.cpp b/src/app/videoWindow.cpp
index 0f2d540..e9230ce 100644
--- a/src/app/videoWindow.cpp
+++ b/src/app/videoWindow.cpp
@@ -54,7 +54,7 @@ VideoWindow::initVideo()
m_displayRatio = w / h;
}
- connect( &m_timer, SIGNAL(timeout()), SLOT(hideCursor()) );
+ connect( &m_timer, TQ_SIGNAL(timeout()), TQ_SLOT(hideCursor()) );
XUnlockDisplay( X::d );
}
diff --git a/src/app/volumeAction.cpp b/src/app/volumeAction.cpp
index 0d8a181..e48dc27 100644
--- a/src/app/volumeAction.cpp
+++ b/src/app/volumeAction.cpp
@@ -53,10 +53,10 @@ VolumeAction::VolumeAction( TDEToolBar *bar, TDEActionCollection *ac )
{
m_widget = new VolumeSlider( bar->topLevelWidget() );
- connect( this, SIGNAL(toggled( bool )), SLOT(toggled( bool )) );
- connect( m_widget->slider, SIGNAL(sliderMoved( int )), SLOT(sliderMoved( int )) );
- connect( m_widget->slider, SIGNAL(sliderMoved( int )), Codeine::engine(), SLOT(setStreamParameter( int )) );
- connect( m_widget->slider, SIGNAL(sliderReleased()), SLOT(sliderReleased()) );
+ connect( this, TQ_SIGNAL(toggled( bool )), TQ_SLOT(toggled( bool )) );
+ connect( m_widget->slider, TQ_SIGNAL(sliderMoved( int )), TQ_SLOT(sliderMoved( int )) );
+ connect( m_widget->slider, TQ_SIGNAL(sliderMoved( int )), Codeine::engine(), TQ_SLOT(setStreamParameter( int )) );
+ connect( m_widget->slider, TQ_SIGNAL(sliderReleased()), TQ_SLOT(sliderReleased()) );
}
int
diff --git a/src/app/xineConfig.cpp b/src/app/xineConfig.cpp
index 9ad6b56..7ed26b9 100644
--- a/src/app/xineConfig.cpp
+++ b/src/app/xineConfig.cpp
@@ -218,7 +218,7 @@ XineConfigEntry::XineConfigEntry( TQWidget *parent, TQGridLayout *grid, xine_cfg
{
case XINE_CONFIG_TYPE_STRING: {
w = new KLineEdit( m_string, parent );
- signal = SIGNAL(textChanged( const TQString& ));
+ signal = TQ_SIGNAL(textChanged( const TQString& ));
break;
}
case XINE_CONFIG_TYPE_ENUM: {
@@ -226,7 +226,7 @@ XineConfigEntry::XineConfigEntry( TQWidget *parent, TQGridLayout *grid, xine_cfg
for( int i = 0; entry->enum_values[i]; ++i )
((KComboBox*)w)->insertItem( TQString::fromUtf8( entry->enum_values[i] ) );
((KComboBox*)w)->setCurrentItem( m_number );
- signal = SIGNAL(activated( int ));
+ signal = TQ_SIGNAL(activated( int ));
break;
}
case XINE_CONFIG_TYPE_RANGE:
@@ -236,14 +236,14 @@ XineConfigEntry::XineConfigEntry( TQWidget *parent, TQGridLayout *grid, xine_cfg
TQMAX( m_number, entry->range_max ), // are both 0 even though this is bullshit
1, parent );
((TQSpinBox*)w)->setValue( m_number );
- signal = SIGNAL(valueChanged( int ));
+ signal = TQ_SIGNAL(valueChanged( int ));
break;
}
case XINE_CONFIG_TYPE_BOOL: {
w = new TQCheckBox( description_text, parent );
((TQCheckBox*)w)->setChecked( m_number );
- connect( w, SIGNAL(toggled( bool )), XineConfigDialog::instance(), SLOT(slotHelp()) );
+ connect( w, TQ_SIGNAL(toggled( bool )), XineConfigDialog::instance(), TQ_SLOT(slotHelp()) );
TQToolTip::add( w, "<qt>" + TQString::fromUtf8( entry->help ) );
grid->addMultiCellWidget( w, row, row, 0, 1 );
return; //no need for a description label
@@ -252,7 +252,7 @@ XineConfigEntry::XineConfigEntry( TQWidget *parent, TQGridLayout *grid, xine_cfg
;
}
- connect( w, signal, XineConfigDialog::instance(), SLOT(slotHelp()) );
+ connect( w, signal, XineConfigDialog::instance(), TQ_SLOT(slotHelp()) );
TQLabel *description = new TQLabel( description_text + ':', parent );
description->setAlignment( TQLabel::WordBreak | TQLabel::AlignVCenter );
diff --git a/src/app/xineEngine.cpp b/src/app/xineEngine.cpp
index 3a05862..04be1cf 100644
--- a/src/app/xineEngine.cpp
+++ b/src/app/xineEngine.cpp
@@ -762,7 +762,7 @@ VideoWindow::xineEventListener( void *p, const xine_event_t* xineEvent )
//FIXME this is not the right way, it will have bugs
debug() << "XINE_EVENT_MRL_REFERENCE\n";
engine->m_url = TQString::fromUtf8( ((xine_mrl_reference_data_ext_t*)xineEvent->data)->mrl );
- TQTimer::singleShot( 0, engine, SLOT(play()) );
+ TQTimer::singleShot( 0, engine, TQ_SLOT(play()) );
break;
}
case XINE_EVENT_DROPPED_FRAMES: debug() << "XINE_EVENT_DROPPED_FRAMES\n"; break;