get rid of "Llcon"

This commit is contained in:
Volker Fischer 2013-03-24 15:42:23 +00:00
parent 28defb82cb
commit ddbc1d3d8d
12 changed files with 107 additions and 107 deletions

View file

@ -26,14 +26,14 @@
/* Implementation *************************************************************/ /* Implementation *************************************************************/
CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, CClientDlg::CClientDlg ( CClient* pNCliP,
CSettings* pNSetP, CSettings* pNSetP,
const bool bNewConnectOnStartup, const bool bNewConnectOnStartup,
const bool bNewDisalbeLEDs, const bool bNewDisalbeLEDs,
const bool bNewShowComplRegConnList, const bool bNewShowComplRegConnList,
const bool bShowAnalyzerConsole, const bool bShowAnalyzerConsole,
QWidget* parent, QWidget* parent,
Qt::WindowFlags f ) : Qt::WindowFlags f ) :
QDialog ( parent, f ), QDialog ( parent, f ),
pClient ( pNCliP ), pClient ( pNCliP ),
pSettings ( pNSetP ), pSettings ( pNSetP ),
@ -339,7 +339,7 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
pMenu = new QMenuBar ( this ); pMenu = new QMenuBar ( this );
pMenu->addMenu ( pViewMenu ); pMenu->addMenu ( pViewMenu );
pMenu->addMenu ( new CLlconHelpMenu ( this ) ); pMenu->addMenu ( new CHelpMenu ( this ) );
// Now tell the layout about the menu // Now tell the layout about the menu
layout()->setMenuBar ( pMenu ); layout()->setMenuBar ( pMenu );
@ -473,7 +473,7 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
TimerStatus.start ( LED_BAR_UPDATE_TIME_MS ); TimerStatus.start ( LED_BAR_UPDATE_TIME_MS );
} }
void CLlconClientDlg::closeEvent ( QCloseEvent* Event ) void CClientDlg::closeEvent ( QCloseEvent* Event )
{ {
// if settings/connect dialog or chat dialog is open, close it // if settings/connect dialog or chat dialog is open, close it
ClientSettingsDlg.close(); ClientSettingsDlg.close();
@ -501,7 +501,7 @@ void CLlconClientDlg::closeEvent ( QCloseEvent* Event )
Event->accept(); Event->accept();
} }
void CLlconClientDlg::UpdateAudioFaderSlider() void CClientDlg::UpdateAudioFaderSlider()
{ {
// update slider and label of audio fader // update slider and label of audio fader
const int iCurAudInFader = pClient->GetAudioInFader(); const int iCurAudInFader = pClient->GetAudioInFader();
@ -530,7 +530,7 @@ void CLlconClientDlg::UpdateAudioFaderSlider()
} }
} }
void CLlconClientDlg::UpdateRevSelection() void CClientDlg::UpdateRevSelection()
{ {
if ( pClient->GetUseStereo() ) if ( pClient->GetUseStereo() )
{ {
@ -557,20 +557,20 @@ void CLlconClientDlg::UpdateRevSelection()
} }
} }
void CLlconClientDlg::OnAudioPanValueChanged ( int value ) void CClientDlg::OnAudioPanValueChanged ( int value )
{ {
pClient->SetAudioInFader ( value ); pClient->SetAudioInFader ( value );
UpdateAudioFaderSlider(); UpdateAudioFaderSlider();
} }
void CLlconClientDlg::OnConnectDisconBut() void CClientDlg::OnConnectDisconBut()
{ {
// the connect/disconnect button implements a toggle functionality // the connect/disconnect button implements a toggle functionality
// -> apply inverted running state // -> apply inverted running state
ConnectDisconnect ( !pClient->IsRunning() ); ConnectDisconnect ( !pClient->IsRunning() );
} }
void CLlconClientDlg::OnInstPictureBut() void CClientDlg::OnInstPictureBut()
{ {
// open a menu which shows all available instrument pictures which // open a menu which shows all available instrument pictures which
// always appears at the same position relative to the instrument // always appears at the same position relative to the instrument
@ -578,7 +578,7 @@ void CLlconClientDlg::OnInstPictureBut()
pInstrPictPopupMenu->exec ( this->mapToGlobal ( butInstPicture->pos() ) ); pInstrPictPopupMenu->exec ( this->mapToGlobal ( butInstPicture->pos() ) );
} }
void CLlconClientDlg::OnInstPicturesMenuTriggered ( QAction* SelAction ) void CClientDlg::OnInstPicturesMenuTriggered ( QAction* SelAction )
{ {
// get selected instrument // get selected instrument
const int iSelInstrument = SelAction->data().toInt(); const int iSelInstrument = SelAction->data().toInt();
@ -594,7 +594,7 @@ void CLlconClientDlg::OnInstPicturesMenuTriggered ( QAction* SelAction )
CInstPictures::GetResourceReference ( iSelInstrument ) ) ); CInstPictures::GetResourceReference ( iSelInstrument ) ) );
} }
void CLlconClientDlg::OnChatTextReceived ( QString strChatText ) void CClientDlg::OnChatTextReceived ( QString strChatText )
{ {
// init flag (will maybe overwritten later in this function) // init flag (will maybe overwritten later in this function)
bUnreadChatMessage = false; bUnreadChatMessage = false;
@ -617,7 +617,7 @@ void CLlconClientDlg::OnChatTextReceived ( QString strChatText )
UpdateDisplay(); UpdateDisplay();
} }
void CLlconClientDlg::OnDisconnected() void CClientDlg::OnDisconnected()
{ {
// channel is now disconnected, clear mixer board (remove all faders) // channel is now disconnected, clear mixer board (remove all faders)
MainMixerBoard->HideAll(); MainMixerBoard->HideAll();
@ -625,19 +625,19 @@ void CLlconClientDlg::OnDisconnected()
UpdateDisplay(); UpdateDisplay();
} }
void CLlconClientDlg::OnConClientListMesReceived ( CVector<CChannelInfo> vecChanInfo ) void CClientDlg::OnConClientListMesReceived ( CVector<CChannelInfo> vecChanInfo )
{ {
// update mixer board with the additional client infos // update mixer board with the additional client infos
MainMixerBoard->ApplyNewConClientList ( vecChanInfo ); MainMixerBoard->ApplyNewConClientList ( vecChanInfo );
} }
void CLlconClientDlg::OnNumClientsChanged ( int iNewNumClients ) void CClientDlg::OnNumClientsChanged ( int iNewNumClients )
{ {
// update window title // update window title
SetMyWindowTitle ( iNewNumClients ); SetMyWindowTitle ( iNewNumClients );
} }
void CLlconClientDlg::SetMyWindowTitle ( const int iNumClients ) void CClientDlg::SetMyWindowTitle ( const int iNumClients )
{ {
// show number of connected clients in window title (and therefore also in // show number of connected clients in window title (and therefore also in
// the task bar of the OS) // the task bar of the OS)
@ -660,7 +660,7 @@ void CLlconClientDlg::SetMyWindowTitle ( const int iNumClients )
} }
} }
void CLlconClientDlg::ShowGeneralSettings() void CClientDlg::ShowGeneralSettings()
{ {
// open general settings dialog // open general settings dialog
ClientSettingsDlg.show(); ClientSettingsDlg.show();
@ -670,7 +670,7 @@ void CLlconClientDlg::ShowGeneralSettings()
ClientSettingsDlg.activateWindow(); ClientSettingsDlg.activateWindow();
} }
void CLlconClientDlg::ShowChatWindow() void CClientDlg::ShowChatWindow()
{ {
// open chat dialog // open chat dialog
ChatDlg.show(); ChatDlg.show();
@ -685,7 +685,7 @@ void CLlconClientDlg::ShowChatWindow()
UpdateDisplay(); UpdateDisplay();
} }
void CLlconClientDlg::ShowAnalyzerConsole() void CClientDlg::ShowAnalyzerConsole()
{ {
// open analyzer console dialog // open analyzer console dialog
AnalyzerConsole.show(); AnalyzerConsole.show();
@ -695,7 +695,7 @@ void CLlconClientDlg::ShowAnalyzerConsole()
AnalyzerConsole.activateWindow(); AnalyzerConsole.activateWindow();
} }
void CLlconClientDlg::OnSettingsStateChanged ( int value ) void CClientDlg::OnSettingsStateChanged ( int value )
{ {
if ( value == Qt::Checked ) if ( value == Qt::Checked )
{ {
@ -707,7 +707,7 @@ void CLlconClientDlg::OnSettingsStateChanged ( int value )
} }
} }
void CLlconClientDlg::OnChatStateChanged ( int value ) void CClientDlg::OnChatStateChanged ( int value )
{ {
if ( value == Qt::Checked ) if ( value == Qt::Checked )
{ {
@ -719,7 +719,7 @@ void CLlconClientDlg::OnChatStateChanged ( int value )
} }
} }
void CLlconClientDlg::OnFaderTagTextChanged ( const QString& strNewName ) void CClientDlg::OnFaderTagTextChanged ( const QString& strNewName )
{ {
// check length // check length
if ( strNewName.length() <= MAX_LEN_FADER_TAG ) if ( strNewName.length() <= MAX_LEN_FADER_TAG )
@ -737,7 +737,7 @@ void CLlconClientDlg::OnFaderTagTextChanged ( const QString& strNewName )
} }
} }
void CLlconClientDlg::OnTimerSigMet() void CClientDlg::OnTimerSigMet()
{ {
// get current input levels // get current input levels
double dCurSigLevelL = pClient->MicLevelL(); double dCurSigLevelL = pClient->MicLevelL();
@ -770,13 +770,13 @@ void CLlconClientDlg::OnTimerSigMet()
lbrInputLevelR->setValue ( (int) ceil ( dCurSigLevelR ) ); lbrInputLevelR->setValue ( (int) ceil ( dCurSigLevelR ) );
} }
void CLlconClientDlg::OnTimerPing() void CClientDlg::OnTimerPing()
{ {
// send ping message to the server // send ping message to the server
pClient->CreateCLPingMes(); pClient->CreateCLPingMes();
} }
void CLlconClientDlg::OnPingTimeResult ( int iPingTime ) void CClientDlg::OnPingTimeResult ( int iPingTime )
{ {
// calculate overall delay // calculate overall delay
const int iOverallDelayMs = pClient->EstimatedOverallDelay ( iPingTime ); const int iOverallDelayMs = pClient->EstimatedOverallDelay ( iPingTime );
@ -813,9 +813,9 @@ void CLlconClientDlg::OnPingTimeResult ( int iPingTime )
ledDelay->SetLight ( iOverallDelayLEDColor ); ledDelay->SetLight ( iOverallDelayLEDColor );
} }
void CLlconClientDlg::OnCLPingTimeWithNumClientsReceived ( CHostAddress InetAddr, void CClientDlg::OnCLPingTimeWithNumClientsReceived ( CHostAddress InetAddr,
int iPingTime, int iPingTime,
int iNumClients ) int iNumClients )
{ {
// color definition: <= 25 ms green, <= 50 ms yellow, otherwise red // color definition: <= 25 ms green, <= 50 ms yellow, otherwise red
int iPingTimeLEDColor; int iPingTimeLEDColor;
@ -842,8 +842,8 @@ void CLlconClientDlg::OnCLPingTimeWithNumClientsReceived ( CHostAddress InetAddr
iNumClients ); iNumClients );
} }
void CLlconClientDlg::ConnectDisconnect ( const bool bDoStart, void CClientDlg::ConnectDisconnect ( const bool bDoStart,
const bool bConnectOnStartup ) const bool bConnectOnStartup )
{ {
// start/stop client, set button text // start/stop client, set button text
if ( bDoStart ) if ( bDoStart )
@ -995,7 +995,7 @@ ledChat->Reset();
} }
} }
void CLlconClientDlg::UpdateDisplay() void CClientDlg::UpdateDisplay()
{ {
// update status LEDs // update status LEDs
if ( pClient->IsRunning() ) if ( pClient->IsRunning() )
@ -1050,7 +1050,7 @@ void CLlconClientDlg::UpdateDisplay()
} }
} }
void CLlconClientDlg::SetGUIDesign ( const EGUIDesign eNewDesign ) void CClientDlg::SetGUIDesign ( const EGUIDesign eNewDesign )
{ {
// apply GUI design to current window // apply GUI design to current window
switch ( eNewDesign ) switch ( eNewDesign )
@ -1108,12 +1108,12 @@ rbtReverbSelR->setStyleSheet ( "" );
MainMixerBoard->SetGUIDesign ( eNewDesign ); MainMixerBoard->SetGUIDesign ( eNewDesign );
} }
void CLlconClientDlg::customEvent ( QEvent* Event ) void CClientDlg::customEvent ( QEvent* Event )
{ {
if ( Event->type() == QEvent::User + 11 ) if ( Event->type() == QEvent::User + 11 )
{ {
const int iMessType = ( (CLlconEvent*) Event )->iMessType; const int iMessType = ( (CCustomEvent*) Event )->iMessType;
const int iStatus = ( (CLlconEvent*) Event )->iStatus; const int iStatus = ( (CCustomEvent*) Event )->iStatus;
switch ( iMessType ) switch ( iMessType )
{ {

View file

@ -63,19 +63,19 @@
/* Classes ********************************************************************/ /* Classes ********************************************************************/
class CLlconClientDlg : public QDialog, private Ui_CLlconClientDlgBase class CClientDlg : public QDialog, private Ui_CClientDlgBase
{ {
Q_OBJECT Q_OBJECT
public: public:
CLlconClientDlg ( CClient* pNCliP, CClientDlg ( CClient* pNCliP,
CSettings* pNSetP, CSettings* pNSetP,
const bool bNewConnectOnStartup, const bool bNewConnectOnStartup,
const bool bNewDisalbeLEDs, const bool bNewDisalbeLEDs,
const bool bNewShowComplRegConnList, const bool bNewShowComplRegConnList,
const bool bShowAnalyzerConsole, const bool bShowAnalyzerConsole,
QWidget* parent = 0, QWidget* parent = 0,
Qt::WindowFlags f = 0 ); Qt::WindowFlags f = 0 );
protected: protected:
void SetGUIDesign ( const EGUIDesign eNewDesign ); void SetGUIDesign ( const EGUIDesign eNewDesign );

View file

@ -1,6 +1,6 @@
<ui version="4.0" > <ui version="4.0" >
<class>CLlconClientDlgBase</class> <class>CClientDlgBase</class>
<widget class="QDialog" name="CLlconClientDlgBase" > <widget class="QDialog" name="CClientDlgBase" >
<property name="geometry" > <property name="geometry" >
<rect> <rect>
<x>0</x> <x>0</x>

View file

@ -3,7 +3,7 @@
* \author Volker Fischer * \author Volker Fischer
* *
\mainpage Llcon source code documentation \mainpage Jamulus source code documentation
\section intro_sec Introduction \section intro_sec Introduction
@ -285,10 +285,10 @@ protected:
QString strErrorType; QString strErrorType;
}; };
class CLlconEvent : public QEvent class CCustomEvent : public QEvent
{ {
public: public:
CLlconEvent ( int iNewMeTy, int iNewSt, int iNewChN = 0 ) : CCustomEvent ( int iNewMeTy, int iNewSt, int iNewChN = 0 ) :
QEvent ( QEvent::Type ( QEvent::User + 11 ) ), iMessType ( iNewMeTy ), iStatus ( iNewSt ), QEvent ( QEvent::Type ( QEvent::User + 11 ) ), iMessType ( iNewMeTy ), iStatus ( iNewSt ),
iChanNum ( iNewChN ) {} iChanNum ( iNewChN ) {}

View file

@ -403,14 +403,14 @@ int main ( int argc, char** argv )
Settings.Load(); Settings.Load();
// GUI object // GUI object
CLlconClientDlg ClientDlg ( &Client, CClientDlg ClientDlg ( &Client,
&Settings, &Settings,
bConnectOnStartup, bConnectOnStartup,
bDisalbeLEDs, bDisalbeLEDs,
bShowComplRegConnList, bShowComplRegConnList,
bShowAnalyzerConsole, bShowAnalyzerConsole,
0, 0,
Qt::Window ); Qt::Window );
// set main window // set main window
pMainWindow = &ClientDlg; pMainWindow = &ClientDlg;
@ -451,11 +451,11 @@ int main ( int argc, char** argv )
Server.UpdateServerList(); Server.UpdateServerList();
// GUI object for the server // GUI object for the server
CLlconServerDlg ServerDlg ( &Server, CServerDlg ServerDlg ( &Server,
&Settings, &Settings,
bStartMinimized, bStartMinimized,
0, 0,
Qt::Window ); Qt::Window );
// set main window // set main window
pMainWindow = &ServerDlg; pMainWindow = &ServerDlg;
@ -643,10 +643,10 @@ void PostWinMessage ( const _MESSAGE_IDENT MessID,
// first check if application is initialized // first check if application is initialized
if ( pApp != NULL ) if ( pApp != NULL )
{ {
CLlconEvent* LlconEv = CCustomEvent* CustomEvent =
new CLlconEvent ( MessID, iMessageParam, iChanNum ); new CCustomEvent ( MessID, iMessageParam, iChanNum );
// Qt will delete the event object when done // Qt will delete the event object when done
QCoreApplication::postEvent ( pMainWindow, LlconEv ); QCoreApplication::postEvent ( pMainWindow, CustomEvent );
} }
} }

View file

@ -1410,7 +1410,7 @@ void CServer::customEvent ( QEvent* pEvent )
{ {
if ( pEvent->type() == QEvent::User + 11 ) if ( pEvent->type() == QEvent::User + 11 )
{ {
const int iMessType = ( (CLlconEvent*) pEvent )->iMessType; const int iMessType = ( (CCustomEvent*) pEvent )->iMessType;
switch ( iMessType ) switch ( iMessType )
{ {

View file

@ -26,11 +26,11 @@
/* Implementation *************************************************************/ /* Implementation *************************************************************/
CLlconServerDlg::CLlconServerDlg ( CServer* pNServP, CServerDlg::CServerDlg ( CServer* pNServP,
CSettings* pNSetP, CSettings* pNSetP,
const bool bStartMinimized, const bool bStartMinimized,
QWidget* parent, QWidget* parent,
Qt::WindowFlags f ) Qt::WindowFlags f )
: QDialog ( parent, f ), : QDialog ( parent, f ),
pServer ( pNServP ), pServer ( pNServP ),
pSettings ( pNSetP ), pSettings ( pNSetP ),
@ -268,7 +268,7 @@ lvwClients->setMinimumHeight ( 140 );
pMenu = new QMenuBar ( this ); pMenu = new QMenuBar ( this );
pMenu->addMenu ( pViewMenu ); pMenu->addMenu ( pViewMenu );
pMenu->addMenu ( new CLlconHelpMenu ( this ) ); pMenu->addMenu ( new CHelpMenu ( this ) );
// Now tell the layout about the menu // Now tell the layout about the menu
layout()->setMenuBar ( pMenu ); layout()->setMenuBar ( pMenu );
@ -322,7 +322,7 @@ lvwClients->setMinimumHeight ( 140 );
Timer.start ( GUI_CONTRL_UPDATE_TIME ); Timer.start ( GUI_CONTRL_UPDATE_TIME );
} }
void CLlconServerDlg::closeEvent ( QCloseEvent* Event ) void CServerDlg::closeEvent ( QCloseEvent* Event )
{ {
// if server was registered at the central server, unregister on shutdown // if server was registered at the central server, unregister on shutdown
if ( pServer->GetServerListEnabled() ) if ( pServer->GetServerListEnabled() )
@ -334,7 +334,7 @@ void CLlconServerDlg::closeEvent ( QCloseEvent* Event )
Event->accept(); Event->accept();
} }
void CLlconServerDlg::OnStartOnOSStartStateChanged ( int value ) void CServerDlg::OnStartOnOSStartStateChanged ( int value )
{ {
const bool bCurAutoStartMinState = ( value == Qt::Checked ); const bool bCurAutoStartMinState = ( value == Qt::Checked );
@ -343,7 +343,7 @@ void CLlconServerDlg::OnStartOnOSStartStateChanged ( int value )
ModifyAutoStartEntry ( bCurAutoStartMinState ); ModifyAutoStartEntry ( bCurAutoStartMinState );
} }
void CLlconServerDlg::OnDefaultCentralServerStateChanged ( int value ) void CServerDlg::OnDefaultCentralServerStateChanged ( int value )
{ {
// apply new setting to the server and update it // apply new setting to the server and update it
pServer->SetUseDefaultCentralServerAddress ( value == Qt::Checked ); pServer->SetUseDefaultCentralServerAddress ( value == Qt::Checked );
@ -353,7 +353,7 @@ void CLlconServerDlg::OnDefaultCentralServerStateChanged ( int value )
UpdateGUIDependencies(); UpdateGUIDependencies();
} }
void CLlconServerDlg::OnRegisterServerStateChanged ( int value ) void CServerDlg::OnRegisterServerStateChanged ( int value )
{ {
const bool bRegState = ( value == Qt::Checked ); const bool bRegState = ( value == Qt::Checked );
@ -372,7 +372,7 @@ void CLlconServerDlg::OnRegisterServerStateChanged ( int value )
UpdateGUIDependencies(); UpdateGUIDependencies();
} }
void CLlconServerDlg::OnCentralServerAddressEditingFinished() void CServerDlg::OnCentralServerAddressEditingFinished()
{ {
// apply new setting to the server and update it // apply new setting to the server and update it
pServer->SetServerListCentralServerAddress ( pServer->SetServerListCentralServerAddress (
@ -381,7 +381,7 @@ void CLlconServerDlg::OnCentralServerAddressEditingFinished()
pServer->UpdateServerList(); pServer->UpdateServerList();
} }
void CLlconServerDlg::OnServerNameTextChanged ( const QString& strNewName ) void CServerDlg::OnServerNameTextChanged ( const QString& strNewName )
{ {
// check length // check length
if ( strNewName.length() <= MAX_LEN_SERVER_NAME ) if ( strNewName.length() <= MAX_LEN_SERVER_NAME )
@ -397,7 +397,7 @@ void CLlconServerDlg::OnServerNameTextChanged ( const QString& strNewName )
} }
} }
void CLlconServerDlg::OnLocationCityTextChanged ( const QString& strNewCity ) void CServerDlg::OnLocationCityTextChanged ( const QString& strNewCity )
{ {
// check length // check length
if ( strNewCity.length() <= MAX_LEN_SERVER_CITY ) if ( strNewCity.length() <= MAX_LEN_SERVER_CITY )
@ -413,7 +413,7 @@ void CLlconServerDlg::OnLocationCityTextChanged ( const QString& strNewCity )
} }
} }
void CLlconServerDlg::OnLocationCountryActivated ( int iCntryListItem ) void CServerDlg::OnLocationCountryActivated ( int iCntryListItem )
{ {
// apply new setting to the server and update it // apply new setting to the server and update it
pServer->SetServerCountry ( static_cast<QLocale::Country> ( pServer->SetServerCountry ( static_cast<QLocale::Country> (
@ -422,7 +422,7 @@ void CLlconServerDlg::OnLocationCountryActivated ( int iCntryListItem )
pServer->UpdateServerList(); pServer->UpdateServerList();
} }
void CLlconServerDlg::OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason ) void CServerDlg::OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason )
{ {
// on double click on the icon, show window in fore ground // on double click on the icon, show window in fore ground
if ( ActReason == QSystemTrayIcon::DoubleClick ) if ( ActReason == QSystemTrayIcon::DoubleClick )
@ -431,7 +431,7 @@ void CLlconServerDlg::OnSysTrayActivated ( QSystemTrayIcon::ActivationReason Act
} }
} }
void CLlconServerDlg::OnTimer() void CServerDlg::OnTimer()
{ {
CVector<CHostAddress> vecHostAddresses; CVector<CHostAddress> vecHostAddresses;
CVector<QString> vecsName; CVector<QString> vecsName;
@ -481,7 +481,7 @@ void CLlconServerDlg::OnTimer()
ListViewMutex.unlock(); ListViewMutex.unlock();
} }
void CLlconServerDlg::UpdateGUIDependencies() void CServerDlg::UpdateGUIDependencies()
{ {
// get the states which define the GUI dependencies from the server // get the states which define the GUI dependencies from the server
const bool bCurSerListEnabled = pServer->GetServerListEnabled(); const bool bCurSerListEnabled = pServer->GetServerListEnabled();
@ -511,7 +511,7 @@ void CLlconServerDlg::UpdateGUIDependencies()
!bCurUseDefCentServAddr && bCurSerListEnabled ); !bCurUseDefCentServAddr && bCurSerListEnabled );
} }
void CLlconServerDlg::UpdateSystemTrayIcon ( const bool bIsActive ) void CServerDlg::UpdateSystemTrayIcon ( const bool bIsActive )
{ {
if ( bSystemTrayIconAvaialbe ) if ( bSystemTrayIconAvaialbe )
{ {
@ -526,7 +526,7 @@ void CLlconServerDlg::UpdateSystemTrayIcon ( const bool bIsActive )
} }
} }
void CLlconServerDlg::ModifyAutoStartEntry ( const bool bDoAutoStart ) void CServerDlg::ModifyAutoStartEntry ( const bool bDoAutoStart )
{ {
// auto start is currently only supported for Windows // auto start is currently only supported for Windows
#ifdef _WIN32 #ifdef _WIN32
@ -567,7 +567,7 @@ void CLlconServerDlg::ModifyAutoStartEntry ( const bool bDoAutoStart )
} }
} }
void CLlconServerDlg::changeEvent ( QEvent* pEvent ) void CServerDlg::changeEvent ( QEvent* pEvent )
{ {
// if we have a system tray icon, we make the window invisible if it is // if we have a system tray icon, we make the window invisible if it is
// minimized // minimized
@ -583,15 +583,15 @@ void CLlconServerDlg::changeEvent ( QEvent* pEvent )
} }
} }
void CLlconServerDlg::customEvent ( QEvent* pEvent ) void CServerDlg::customEvent ( QEvent* pEvent )
{ {
if ( pEvent->type() == QEvent::User + 11 ) if ( pEvent->type() == QEvent::User + 11 )
{ {
ListViewMutex.lock(); ListViewMutex.lock();
{ {
const int iMessType = ( (CLlconEvent*) pEvent )->iMessType; const int iMessType = ( (CCustomEvent*) pEvent )->iMessType;
const int iStatus = ( (CLlconEvent*) pEvent )->iStatus; const int iStatus = ( (CCustomEvent*) pEvent )->iStatus;
const int iChanNum = ( (CLlconEvent*) pEvent )->iChanNum; const int iChanNum = ( (CCustomEvent*) pEvent )->iChanNum;
switch(iMessType) switch(iMessType)
{ {

View file

@ -46,16 +46,16 @@
/* Classes ********************************************************************/ /* Classes ********************************************************************/
class CLlconServerDlg : public QDialog, private Ui_CLlconServerDlgBase class CServerDlg : public QDialog, private Ui_CServerDlgBase
{ {
Q_OBJECT Q_OBJECT
public: public:
CLlconServerDlg ( CServer* pNServP, CServerDlg ( CServer* pNServP,
CSettings* pNSetP, CSettings* pNSetP,
const bool bStartMinimized, const bool bStartMinimized,
QWidget* parent = 0, QWidget* parent = 0,
Qt::WindowFlags f = 0 ); Qt::WindowFlags f = 0 );
protected: protected:
virtual void customEvent ( QEvent* pEvent ); virtual void customEvent ( QEvent* pEvent );

View file

@ -1,6 +1,6 @@
<ui version="4.0" > <ui version="4.0" >
<class>CLlconServerDlgBase</class> <class>CServerDlgBase</class>
<widget class="QDialog" name="CLlconServerDlgBase" > <widget class="QDialog" name="CServerDlgBase" >
<property name="geometry" > <property name="geometry" >
<rect> <rect>
<x>0</x> <x>0</x>

View file

@ -174,7 +174,7 @@ void CSocket::OnDataReceived()
// tell the server object to wake up if it // tell the server object to wake up if it
// is in sleep mode (Qt will delete the event object when done) // is in sleep mode (Qt will delete the event object when done)
QCoreApplication::postEvent ( pServer, QCoreApplication::postEvent ( pServer,
new CLlconEvent ( MS_PACKET_RECEIVED, 0, 0 ) ); new CCustomEvent ( MS_PACKET_RECEIVED, 0, 0 ) );
} }
} }
} }

View file

@ -402,7 +402,7 @@ QString CAboutDlg::GetVersionAndNameStr ( const bool bWithHtml )
// Help menu ------------------------------------------------------------------- // Help menu -------------------------------------------------------------------
CLlconHelpMenu::CLlconHelpMenu ( QWidget* parent ) : QMenu ( "&?", parent ) CHelpMenu::CHelpMenu ( QWidget* parent ) : QMenu ( "&?", parent )
{ {
// standard help menu consists of about and what's this help // standard help menu consists of about and what's this help
addAction ( tr ( "What's &This" ), this, addAction ( tr ( "What's &This" ), this,

View file

@ -418,12 +418,12 @@ public:
// Help menu ------------------------------------------------------------------- // Help menu -------------------------------------------------------------------
class CLlconHelpMenu : public QMenu class CHelpMenu : public QMenu
{ {
Q_OBJECT Q_OBJECT
public: public:
CLlconHelpMenu ( QWidget* parent = 0 ); CHelpMenu ( QWidget* parent = 0 );
protected: protected:
CAboutDlg AboutDlg; CAboutDlg AboutDlg;