1 |
// qsamplerMainForm.h |
// qsamplerMainForm.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2016, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2020, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007,2008,2015 Christian Schoenebeck |
Copyright (C) 2007-2019 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
54 |
|
|
55 |
public: |
public: |
56 |
|
|
57 |
MainForm(QWidget *pParent = NULL); |
MainForm(QWidget *pParent = nullptr); |
58 |
~MainForm(); |
~MainForm(); |
59 |
|
|
60 |
void setup(Options *pOptions); |
void setup(Options *pOptions); |
64 |
|
|
65 |
QString sessionName(const QString& sFilename); |
QString sessionName(const QString& sFilename); |
66 |
|
|
67 |
void appendMessages(const QString& sText); |
void appendMessages(const QString& s); |
68 |
void appendMessagesColor(const QString& sText, const QString& sColor); |
void appendMessagesColor(const QString& s, const QColor& rgb); |
69 |
void appendMessagesText(const QString& sText); |
void appendMessagesText(const QString& s); |
70 |
void appendMessagesError(const QString& sText); |
void appendMessagesError(const QString& s); |
71 |
void appendMessagesClient(const QString& sText); |
void appendMessagesClient(const QString& s); |
72 |
|
|
73 |
ChannelStrip *createChannelStrip(Channel *pChannel); |
ChannelStrip *createChannelStrip(Channel *pChannel); |
74 |
void destroyChannelStrip(ChannelStrip *pChannelStrip); |
void destroyChannelStrip(ChannelStrip *pChannelStrip); |
123 |
void timerSlot(); |
void timerSlot(); |
124 |
void readServerStdout(); |
void readServerStdout(); |
125 |
void processServerExit(); |
void processServerExit(); |
126 |
|
void autoReconnectClient(); |
127 |
|
|
128 |
void handle_sigusr1(); |
void handle_sigusr1(); |
129 |
|
void handle_sigterm(); |
130 |
|
|
131 |
// Channel strip activation/selection. |
// Channel strip activation/selection. |
132 |
void activateStrip(QMdiSubWindow *pMdiSubWindow); |
void activateStrip(QMdiSubWindow *pMdiSubWindow); |
166 |
void stopSchedule(); |
void stopSchedule(); |
167 |
void startServer(); |
void startServer(); |
168 |
void stopServer(bool bInteractive = false); |
void stopServer(bool bInteractive = false); |
169 |
bool startClient(); |
bool startClient(bool bReconnectOnly = false); |
170 |
void stopClient(); |
void stopClient(); |
171 |
|
void startAutoReconnectClient(); |
172 |
|
|
173 |
private: |
private: |
174 |
|
|
177 |
Options *m_pOptions; |
Options *m_pOptions; |
178 |
Messages *m_pMessages; |
Messages *m_pMessages; |
179 |
Workspace *m_pWorkspace; |
Workspace *m_pWorkspace; |
180 |
QSocketNotifier *m_pUsr1Notifier; |
QSocketNotifier *m_pSigusr1Notifier; |
181 |
|
QSocketNotifier *m_pSigtermNotifier; |
182 |
QString m_sFilename; |
QString m_sFilename; |
183 |
int m_iUntitled; |
int m_iUntitled; |
184 |
int m_iDirtySetup; |
int m_iDirtySetup; |
185 |
int m_iDirtyCount; |
int m_iDirtyCount; |
186 |
lscp_client_t *m_pClient; |
lscp_client_t *m_pClient; |
187 |
QProcess *m_pServer; |
QProcess *m_pServer; |
188 |
bool bForceServerStop; |
bool m_bForceServerStop; |
189 |
int m_iStartDelay; |
int m_iStartDelay; |
190 |
int m_iTimerDelay; |
int m_iTimerDelay; |
191 |
int m_iTimerSlot; |
int m_iTimerSlot; |