Change copyright and format the code using clang-format
This commit is contained in:
1 parent
a69c32bfbf
commit
8a60bb2766
122 files changed
+12950
-12139
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/* This file is a part of plaYUVer project
|
||||
* Copyright (C) 2014-2016 by Luis Lucas (luisfrlucas@gmail.com)
|
||||
* Copyright (C) 2014-2017 by Luis Lucas (luisfrlucas@gmail.com)
|
||||
* Joao Carreira (jfmcarreira@gmail.com)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -28,15 +28,17 @@
|
||||
#include "DialogSubWindowSelector.h"
|
||||
#include "VideoSubWindow.h"
|
||||
|
||||
DialogSubWindowSelector::DialogSubWindowSelector( QWidget *parent, PlaYUVerSubWindowHandle *windowManager, UInt uiCategory, Int minWindowsSelected,
|
||||
Int maxWindowsSelected ) :
|
||||
QDialog( parent ),
|
||||
m_uiCategory( uiCategory ),
|
||||
m_iMinSelectedWindows( minWindowsSelected ),
|
||||
m_iMaxSlectedWindows( maxWindowsSelected ),
|
||||
m_pcMainWindowManager( windowManager )
|
||||
DialogSubWindowSelector::DialogSubWindowSelector( QWidget* parent,
|
||||
PlaYUVerSubWindowHandle* windowManager,
|
||||
UInt uiCategory,
|
||||
Int minWindowsSelected,
|
||||
Int maxWindowsSelected )
|
||||
: QDialog( parent ),
|
||||
m_uiCategory( uiCategory ),
|
||||
m_iMinSelectedWindows( minWindowsSelected ),
|
||||
m_iMaxSlectedWindows( maxWindowsSelected ),
|
||||
m_pcMainWindowManager( windowManager )
|
||||
{
|
||||
|
||||
QSize windowSize( 350, 80 );
|
||||
resize( windowSize );
|
||||
setWindowTitle( "Select desired Sub-Windows" );
|
||||
@@ -79,9 +81,9 @@ DialogSubWindowSelector::DialogSubWindowSelector( QWidget *parent, PlaYUVerSubWi
|
||||
connect( m_pushButtonRemoveAll, SIGNAL( clicked() ), this, SLOT( removeAllSubWindow() ) );
|
||||
|
||||
m_mapperWindowsList = new QSignalMapper( this );
|
||||
connect( m_mapperWindowsList, SIGNAL( mapped(int) ), this, SLOT( toggleSubWindow(int) ) );
|
||||
connect( m_mapperWindowsList, SIGNAL( mapped( int ) ), this, SLOT( toggleSubWindow( int ) ) );
|
||||
|
||||
SubWindowAbstract *subWindow;
|
||||
SubWindowAbstract* subWindow;
|
||||
QString currSubWindowName;
|
||||
QCheckBox* windowCheckBox;
|
||||
m_apcSubWindowList = m_pcMainWindowManager->findSubWindow( m_uiCategory );
|
||||
@@ -90,7 +92,7 @@ DialogSubWindowSelector::DialogSubWindowSelector( QWidget *parent, PlaYUVerSubWi
|
||||
subWindow = m_apcSubWindowList.at( i );
|
||||
currSubWindowName = subWindow->getWindowName();
|
||||
windowCheckBox = new QCheckBox( currSubWindowName, this );
|
||||
connect( windowCheckBox, SIGNAL( stateChanged(int) ), m_mapperWindowsList, SLOT( map() ) );
|
||||
connect( windowCheckBox, SIGNAL( stateChanged( int ) ), m_mapperWindowsList, SLOT( map() ) );
|
||||
m_mapperWindowsList->setMapping( windowCheckBox, i );
|
||||
m_apcWindowsListCheckBox.append( windowCheckBox );
|
||||
}
|
||||
@@ -98,7 +100,6 @@ DialogSubWindowSelector::DialogSubWindowSelector( QWidget *parent, PlaYUVerSubWi
|
||||
update();
|
||||
|
||||
setFixedSize( mainLayout->sizeHint() );
|
||||
|
||||
}
|
||||
|
||||
Void DialogSubWindowSelector::updateSubWindowList()
|
||||
@@ -137,7 +138,7 @@ Void DialogSubWindowSelector::updateSubWindowList()
|
||||
}
|
||||
}
|
||||
|
||||
Void DialogSubWindowSelector::selectSubWindow( SubWindowAbstract * subWindow )
|
||||
Void DialogSubWindowSelector::selectSubWindow( SubWindowAbstract* subWindow )
|
||||
{
|
||||
Int iIdx = m_apcSubWindowList.indexOf( subWindow );
|
||||
if( iIdx >= 0 )
|
||||
|
||||
Reference in new issue
Block a user