Add a global update signal
This commit is contained in:
1 parent
4420d28bb7
commit
1f9affe499
7 files changed
+31
-15
No files matched your search
@@ -223,6 +223,7 @@ Void ModulesHandle::activateModule()
|
||||
pcVideoSubWindow->disableModule();
|
||||
}
|
||||
}
|
||||
emit changed();
|
||||
}
|
||||
|
||||
Void ModulesHandle::enableModuleIf( PlaYUVerAppModuleIf *pcCurrModuleIf )
|
||||
|
||||
@@ -105,6 +105,9 @@ private:
|
||||
|
||||
Void customEvent( QEvent *event );
|
||||
|
||||
Q_SIGNALS:
|
||||
void changed();
|
||||
|
||||
private Q_SLOTS:
|
||||
void activateModule();
|
||||
void processOpt( int index );
|
||||
|
||||
@@ -74,6 +74,9 @@ private:
|
||||
QDockWidget* m_pcQualityHandleDock;
|
||||
QualityMeasurementSidebar* m_pcQualityHandleSideBar;
|
||||
|
||||
Q_SIGNALS:
|
||||
void changed();
|
||||
|
||||
private Q_SLOTS:
|
||||
void slotQualityMetricChanged( int );
|
||||
void slotSelectReference();
|
||||
|
||||
+10
-5
@@ -373,7 +373,8 @@ Void VideoHandle::play()
|
||||
}
|
||||
}
|
||||
setTimerStatus();
|
||||
update();
|
||||
emit changed();
|
||||
//update();
|
||||
}
|
||||
|
||||
Void VideoHandle::stop()
|
||||
@@ -394,7 +395,8 @@ Void VideoHandle::stop()
|
||||
m_pcCurrentVideoSubWindow->stop();
|
||||
}
|
||||
}
|
||||
update();
|
||||
emit changed();
|
||||
//update();
|
||||
m_arrayActions[VIDEO_LOCK_ACT]->setVisible( false );
|
||||
}
|
||||
|
||||
@@ -422,7 +424,8 @@ Void VideoHandle::playEvent()
|
||||
stop();
|
||||
m_pcCurrentVideoSubWindow->close();
|
||||
}
|
||||
update();
|
||||
emit changed();
|
||||
//update();
|
||||
}
|
||||
|
||||
Void VideoHandle::seekEvent( Int direction )
|
||||
@@ -443,7 +446,8 @@ Void VideoHandle::seekEvent( Int direction )
|
||||
{
|
||||
m_pcCurrentVideoSubWindow->seekRelativeEvent( direction > 0 ? true : false );
|
||||
}
|
||||
update();
|
||||
emit changed();
|
||||
//update();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -462,7 +466,8 @@ Void VideoHandle::seekSliderEvent( Int new_frame_num )
|
||||
{
|
||||
m_pcCurrentVideoSubWindow->seekAbsoluteEvent( ( UInt )new_frame_num );
|
||||
}
|
||||
update();
|
||||
emit changed();
|
||||
//update();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -102,6 +102,9 @@ private:
|
||||
UInt64 getMaxFrameNumber();
|
||||
Void setTimerStatus();
|
||||
|
||||
Q_SIGNALS:
|
||||
void changed();
|
||||
|
||||
private Q_SLOTS:
|
||||
void update();
|
||||
void play();
|
||||
|
||||
+8
-5
@@ -50,8 +50,6 @@ plaYUVerApp::plaYUVerApp()
|
||||
setCentralWidget( mdiArea );
|
||||
mdiArea->setActivationOrder( QMdiArea::ActivationHistoryOrder );
|
||||
|
||||
connect( mdiArea, SIGNAL( subWindowActivated(QMdiSubWindow*) ), this, SLOT( chageSubWindowSelection() ) );
|
||||
|
||||
mapperWindow = new QSignalMapper( this );
|
||||
connect( mapperWindow, SIGNAL( mapped(QWidget*) ), this, SLOT( setActiveSubWindow(QWidget*) ) );
|
||||
|
||||
@@ -75,6 +73,11 @@ plaYUVerApp::plaYUVerApp()
|
||||
setAcceptDrops( true );
|
||||
mdiArea->setAcceptDrops( true );
|
||||
|
||||
connect( mdiArea, SIGNAL( subWindowActivated(QMdiSubWindow*) ), this, SLOT( update() ) );
|
||||
connect( m_appModuleVideo, SIGNAL( changed() ), this, SLOT( update() ) );
|
||||
connect( m_appModuleQuality, SIGNAL( changed() ), this, SLOT( update() ) );
|
||||
connect( m_appModuleExtensions, SIGNAL( changed() ), this, SLOT( update() ) );
|
||||
|
||||
m_pcAboutDialog = NULL;
|
||||
m_pcCurrentSubWindow = NULL;
|
||||
m_pcCurrentVideoSubWindow = NULL;
|
||||
@@ -321,7 +324,7 @@ Void plaYUVerApp::format()
|
||||
m_pcCurrentSubWindow->close();
|
||||
}
|
||||
m_pcCurrentSubWindow = NULL;
|
||||
chageSubWindowSelection();
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,7 +335,7 @@ Void plaYUVerApp::reload()
|
||||
VideoSubWindow* pcVideoSubWindow = qobject_cast<VideoSubWindow*>( m_pcCurrentVideoSubWindow );
|
||||
pcVideoSubWindow->reloadFile();
|
||||
m_pcCurrentSubWindow = NULL;
|
||||
chageSubWindowSelection();
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -506,7 +509,7 @@ Void plaYUVerApp::updateZoomFactorSBox()
|
||||
}
|
||||
}
|
||||
|
||||
Void plaYUVerApp::chageSubWindowSelection()
|
||||
Void plaYUVerApp::update()
|
||||
{
|
||||
SubWindowHandle *new_window = activeSubWindow();
|
||||
if( activeSubWindow() != m_pcCurrentSubWindow )
|
||||
|
||||
+3
-5
@@ -88,9 +88,11 @@ private Q_SLOTS:
|
||||
void normalSize();
|
||||
void zoomToFit();
|
||||
|
||||
void chageSubWindowSelection();
|
||||
void update();
|
||||
void updateWindowMenu();
|
||||
void updateZoomFactorSBox();
|
||||
void updateStatusBar( const QString& );
|
||||
void updatePropertiesSelectedArea( QRect area );
|
||||
|
||||
void about();
|
||||
|
||||
@@ -99,10 +101,6 @@ private Q_SLOTS:
|
||||
|
||||
void setActiveSubWindow( QWidget *window );
|
||||
|
||||
void updateStatusBar( const QString& );
|
||||
|
||||
void updatePropertiesSelectedArea( QRect area );
|
||||
|
||||
void setAllSubWindowTool();
|
||||
void setTool( int idxTool );
|
||||
|
||||
|
||||
Reference in new issue
Block a user