/[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 1514 by capela, Fri Nov 23 10:51:37 2007 UTC revision 2112 by capela, Wed Jul 21 18:33:25 2010 UTC
# Line 1  Line 1 
1  // qsamplerMainForm.h  // qsamplerMainForm.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2010, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, Christian Schoenebeck     Copyright (C) 2007, 2008 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 27  Line 27 
27    
28  #include <lscp/client.h>  #include <lscp/client.h>
29    
 class qsamplerOptions;  
 class qsamplerMessages;  
 class qsamplerChannel;  
   
30  class QProcess;  class QProcess;
31  class QWorkspace;  class QWorkspace;
32    class QSocketNotifier;
33  class QSpinBox;  class QSpinBox;
34  class QSlider;  class QSlider;
35  class QLabel;  class QLabel;
36    
   
37  namespace QSampler {  namespace QSampler {
38    
39    class Options;
40    class Messages;
41    class Channel;
42  class ChannelStrip;  class ChannelStrip;
43  class DeviceForm;  class DeviceForm;
44  class InstrumentListForm;  class InstrumentListForm;
45    
46    //-------------------------------------------------------------------------
47    // QSampler::MainForm -- Main window form implementation.
48    //
49    
50  class MainForm : public QMainWindow  class MainForm : public QMainWindow
51  {  {
# Line 54  public: Line 56  public:
56          MainForm(QWidget *pParent = NULL);          MainForm(QWidget *pParent = NULL);
57          ~MainForm();          ~MainForm();
58    
59          void setup(qsamplerOptions* pOptions);          void setup(Options* pOptions);
60    
61          qsamplerOptions* options() const;          Options* options() const;
62          lscp_client_t* client() const;          lscp_client_t* client() const;
63    
64          QString sessionName(const QString& sFilename);          QString sessionName(const QString& sFilename);
# Line 67  public: Line 69  public:
69          void appendMessagesError(const QString& s);          void appendMessagesError(const QString& s);
70          void appendMessagesClient(const QString& s);          void appendMessagesClient(const QString& s);
71    
72          ChannelStrip* createChannelStrip(qsamplerChannel *pChannel);          ChannelStrip* createChannelStrip(Channel *pChannel);
73            void destroyChannelStrip(ChannelStrip* pChannelStrip);
74          ChannelStrip* activeChannelStrip();          ChannelStrip* activeChannelStrip();
75          ChannelStrip* channelStripAt(int iChannel);          ChannelStrip* channelStripAt(int iChannel);
76          ChannelStrip* channelStrip(int iChannelID);          ChannelStrip* channelStrip(int iChannelID);
# Line 113  public slots: Line 116  public slots:
116          void sessionDirty();          void sessionDirty();
117          void stabilizeForm();          void stabilizeForm();
118    
119            void handle_sigusr1();
120    
121  protected slots:  protected slots:
122    
123          void updateRecentFilesMenu();          void updateRecentFilesMenu();
# Line 142  protected: Line 147  protected:
147          void updateMessagesFont();          void updateMessagesFont();
148          void updateMessagesLimit();          void updateMessagesLimit();
149          void updateMessagesCapture();          void updateMessagesCapture();
150            void updateViewMidiDeviceStatusMenu();
151            void updateAllChannelStrips(bool bRemoveDeadStrips);
152          void startSchedule(int iStartDelay);          void startSchedule(int iStartDelay);
153          void stopSchedule();          void stopSchedule();
154          void startServer();          void startServer();
155          void stopServer();          void stopServer(bool bInteractive = false);
156          bool startClient();          bool startClient();
157          void stopClient();          void stopClient();
158    
# Line 153  private: Line 160  private:
160    
161          Ui::qsamplerMainForm m_ui;          Ui::qsamplerMainForm m_ui;
162    
163          qsamplerOptions *m_pOptions;          Options *m_pOptions;
164          qsamplerMessages *m_pMessages;          Messages *m_pMessages;
165          QWorkspace *m_pWorkspace;          QWorkspace *m_pWorkspace;
166            QSocketNotifier *m_pUsr1Notifier;
167          QString m_sFilename;          QString m_sFilename;
168          int m_iUntitled;          int m_iUntitled;
169          int m_iDirtyCount;          int m_iDirtyCount;
170          lscp_client_t *m_pClient;          lscp_client_t *m_pClient;
171          QProcess *m_pServer;          QProcess *m_pServer;
172            bool bForceServerStop;
173          int m_iStartDelay;          int m_iStartDelay;
174          int m_iTimerDelay;          int m_iTimerDelay;
175          int m_iTimerSlot;          int m_iTimerSlot;

Legend:
Removed from v.1514  
changed lines
  Added in v.2112

  ViewVC Help
Powered by ViewVC