/[svn]/qsampler/trunk/src/qsamplerMainForm.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2979 by capela, Tue Aug 16 15:34:45 2016 UTC revision 3788 by capela, Thu Jun 11 16:59:09 2020 UTC
# Line 1  Line 1 
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
# Line 54  class MainForm : public QMainWindow Line 54  class MainForm : public QMainWindow
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);
# Line 64  public: Line 64  public:
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);
# Line 123  protected slots: Line 123  protected slots:
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);
# Line 164  protected: Line 166  protected:
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    
# Line 174  private: Line 177  private:
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;

Legend:
Removed from v.2979  
changed lines
  Added in v.3788

  ViewVC Help
Powered by ViewVC