Skip to content

Commit 059d9ef

Browse files
committed
new settings classes for client and server, derived from a common base class
1 parent a192aca commit 059d9ef

7 files changed

Lines changed: 704 additions & 674 deletions

File tree

src/clientdlg.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626

2727

2828
/* Implementation *************************************************************/
29-
CClientDlg::CClientDlg ( CClient* pNCliP,
30-
CSettings* pNSetP,
31-
const QString& strConnOnStartupAddress,
32-
const int iCtrlMIDIChannel,
33-
const bool bNewShowComplRegConnList,
34-
const bool bShowAnalyzerConsole,
35-
QWidget* parent,
36-
Qt::WindowFlags f ) :
29+
CClientDlg::CClientDlg ( CClient* pNCliP,
30+
CClientSettings* pNSetP,
31+
const QString& strConnOnStartupAddress,
32+
const int iCtrlMIDIChannel,
33+
const bool bNewShowComplRegConnList,
34+
const bool bShowAnalyzerConsole,
35+
QWidget* parent,
36+
Qt::WindowFlags f ) :
3737
QDialog ( parent, f ),
3838
pClient ( pNCliP ),
3939
pSettings ( pNSetP ),

src/clientdlg.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ class CClientDlg : public QDialog, private Ui_CClientDlgBase
7272
Q_OBJECT
7373

7474
public:
75-
CClientDlg ( CClient* pNCliP,
76-
CSettings* pNSetP,
77-
const QString& strConnOnStartupAddress,
78-
const int iCtrlMIDIChannel,
79-
const bool bNewShowComplRegConnList,
80-
const bool bShowAnalyzerConsole,
81-
QWidget* parent = nullptr,
82-
Qt::WindowFlags f = nullptr );
75+
CClientDlg ( CClient* pNCliP,
76+
CClientSettings* pNSetP,
77+
const QString& strConnOnStartupAddress,
78+
const int iCtrlMIDIChannel,
79+
const bool bNewShowComplRegConnList,
80+
const bool bShowAnalyzerConsole,
81+
QWidget* parent = nullptr,
82+
Qt::WindowFlags f = nullptr );
8383

8484
protected:
8585
void SetGUIDesign ( const EGUIDesign eNewDesign );
@@ -96,7 +96,7 @@ class CClientDlg : public QDialog, private Ui_CClientDlgBase
9696
void Disconnect();
9797

9898
CClient* pClient;
99-
CSettings* pSettings;
99+
CClientSettings* pSettings;
100100

101101
bool bConnected;
102102
bool bConnectDlgWasShown;

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ int main ( int argc, char** argv )
617617
strClientName );
618618

619619
// load settings from init-file
620-
CSettings Settings ( &Client, strIniFileName );
620+
CClientSettings Settings ( &Client, strIniFileName );
621621
Settings.Load();
622622

623623
#ifndef HEADLESS
@@ -670,7 +670,7 @@ int main ( int argc, char** argv )
670670
if ( bUseGUI )
671671
{
672672
// load settings from init-file
673-
CSettings Settings ( &Server, strIniFileName );
673+
CServerSettings Settings ( &Server, strIniFileName );
674674
Settings.Load();
675675

676676
// update server list AFTER restoring the settings from the

src/serverdlg.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626

2727

2828
/* Implementation *************************************************************/
29-
CServerDlg::CServerDlg ( CServer* pNServP,
30-
CSettings* pNSetP,
31-
const bool bStartMinimized,
32-
QWidget* parent,
33-
Qt::WindowFlags f )
29+
CServerDlg::CServerDlg ( CServer* pNServP,
30+
CServerSettings* pNSetP,
31+
const bool bStartMinimized,
32+
QWidget* parent,
33+
Qt::WindowFlags f )
3434
: QDialog ( parent, f ),
3535
pServer ( pNServP ),
3636
pSettings ( pNSetP ),

src/serverdlg.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ class CServerDlg : public QDialog, private Ui_CServerDlgBase
5252
Q_OBJECT
5353

5454
public:
55-
CServerDlg ( CServer* pNServP,
56-
CSettings* pNSetP,
57-
const bool bStartMinimized,
58-
QWidget* parent = nullptr,
59-
Qt::WindowFlags f = nullptr );
55+
CServerDlg ( CServer* pNServP,
56+
CServerSettings* pNSetP,
57+
const bool bStartMinimized,
58+
QWidget* parent = nullptr,
59+
Qt::WindowFlags f = nullptr );
6060

6161
protected:
6262
virtual void changeEvent ( QEvent* pEvent );
@@ -70,7 +70,7 @@ class CServerDlg : public QDialog, private Ui_CServerDlgBase
7070

7171
QTimer Timer;
7272
CServer* pServer;
73-
CSettings* pSettings;
73+
CServerSettings* pSettings;
7474

7575
CVector<QTreeWidgetItem*> vecpListViewItems;
7676
QMutex ListViewMutex;

0 commit comments

Comments
 (0)