/[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 1698 by schoenebeck, Sat Feb 16 19:41:05 2008 UTC
# Line 2  Line 2 
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2007, 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 QSpinBox;  class QSpinBox;
33  class QSlider;  class QSlider;
34  class QLabel;  class QLabel;
35    
   
36  namespace QSampler {  namespace QSampler {
37    
38    class Options;
39    class Messages;
40    class Channel;
41  class ChannelStrip;  class ChannelStrip;
42  class DeviceForm;  class DeviceForm;
43  class InstrumentListForm;  class InstrumentListForm;
44    
45    //-------------------------------------------------------------------------
46    // QSampler::MainForm -- Main window form implementation.
47    //
48    
49  class MainForm : public QMainWindow  class MainForm : public QMainWindow
50  {  {
# Line 54  public: Line 55  public:
55          MainForm(QWidget *pParent = NULL);          MainForm(QWidget *pParent = NULL);
56          ~MainForm();          ~MainForm();
57    
58          void setup(qsamplerOptions* pOptions);          void setup(Options* pOptions);
59    
60          qsamplerOptions* options() const;          Options* options() const;
61          lscp_client_t* client() const;          lscp_client_t* client() const;
62    
63          QString sessionName(const QString& sFilename);          QString sessionName(const QString& sFilename);
# Line 67  public: Line 68  public:
68          void appendMessagesError(const QString& s);          void appendMessagesError(const QString& s);
69          void appendMessagesClient(const QString& s);          void appendMessagesClient(const QString& s);
70    
71          ChannelStrip* createChannelStrip(qsamplerChannel *pChannel);          ChannelStrip* createChannelStrip(Channel *pChannel);
72          ChannelStrip* activeChannelStrip();          ChannelStrip* activeChannelStrip();
73          ChannelStrip* channelStripAt(int iChannel);          ChannelStrip* channelStripAt(int iChannel);
74          ChannelStrip* channelStrip(int iChannelID);          ChannelStrip* channelStrip(int iChannelID);
# Line 142  protected: Line 143  protected:
143          void updateMessagesFont();          void updateMessagesFont();
144          void updateMessagesLimit();          void updateMessagesLimit();
145          void updateMessagesCapture();          void updateMessagesCapture();
146            void updateViewMidiDeviceStatusMenu();
147          void startSchedule(int iStartDelay);          void startSchedule(int iStartDelay);
148          void stopSchedule();          void stopSchedule();
149          void startServer();          void startServer();
150          void stopServer();          void stopServer(bool bInteractive = false);
151          bool startClient();          bool startClient();
152          void stopClient();          void stopClient();
153    
# Line 153  private: Line 155  private:
155    
156          Ui::qsamplerMainForm m_ui;          Ui::qsamplerMainForm m_ui;
157    
158          qsamplerOptions *m_pOptions;          Options *m_pOptions;
159          qsamplerMessages *m_pMessages;          Messages *m_pMessages;
160          QWorkspace *m_pWorkspace;          QWorkspace *m_pWorkspace;
161          QString m_sFilename;          QString m_sFilename;
162          int m_iUntitled;          int m_iUntitled;
163          int m_iDirtyCount;          int m_iDirtyCount;
164          lscp_client_t *m_pClient;          lscp_client_t *m_pClient;
165          QProcess *m_pServer;          QProcess *m_pServer;
166            bool bForceServerStop;
167          int m_iStartDelay;          int m_iStartDelay;
168          int m_iTimerDelay;          int m_iTimerDelay;
169          int m_iTimerSlot;          int m_iTimerSlot;

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

  ViewVC Help
Powered by ViewVC