/[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 2978 by capela, Mon Aug 15 19:10:16 2016 UTC revision 2979 by capela, Tue Aug 16 15:34:45 2016 UTC
# Line 28  Line 28 
28  #include <lscp/client.h>  #include <lscp/client.h>
29    
30  class QProcess;  class QProcess;
 class QMdiArea;  
31  class QMdiSubWindow;  class QMdiSubWindow;
32  class QSocketNotifier;  class QSocketNotifier;
33  class QSpinBox;  class QSpinBox;
# Line 37  class QLabel; Line 36  class QLabel;
36    
37  namespace QSampler {  namespace QSampler {
38    
39    class Workspace;
40  class Options;  class Options;
41  class Messages;  class Messages;
42  class Channel;  class Channel;
# Line 57  public: Line 57  public:
57          MainForm(QWidget *pParent = NULL);          MainForm(QWidget *pParent = NULL);
58          ~MainForm();          ~MainForm();
59    
60          void setup(Options* pOptions);          void setup(Options *pOptions);
61    
62          Options* options() const;          Options *options() const;
63          lscp_client_t* client() const;          lscp_client_t *client() const;
64    
65          QString sessionName(const QString& sFilename);          QString sessionName(const QString& sFilename);
66    
# Line 76  public: Line 76  public:
76          ChannelStrip *channelStripAt(int iChannel);          ChannelStrip *channelStripAt(int iChannel);
77          ChannelStrip *channelStrip(int iChannelID);          ChannelStrip *channelStrip(int iChannelID);
78    
79            void channelsArrangeAuto();
80          void contextMenuEvent(QContextMenuEvent *pEvent);          void contextMenuEvent(QContextMenuEvent *pEvent);
81            void sessionDirty();
82    
83          static MainForm* getInstance();          static MainForm *getInstance();
84    
85  public slots:  public slots:
86    
# Line 107  public slots: Line 109  public slots:
109          void channelsAutoArrange(bool bOn);          void channelsAutoArrange(bool bOn);
110          void helpAboutQt();          void helpAboutQt();
111          void helpAbout();          void helpAbout();
112    
113            void stabilizeForm();
114    
115    protected slots:
116    
117            void updateRecentFilesMenu();
118    
119          void volumeChanged(int iVolume);          void volumeChanged(int iVolume);
120          void channelStripChanged(ChannelStrip *pChannelStrip);          void channelStripChanged(ChannelStrip *pChannelStrip);
121          void channelsMenuAboutToShow();          void channelsMenuAboutToShow();
# Line 114  public slots: Line 123  public slots:
123          void timerSlot();          void timerSlot();
124          void readServerStdout();          void readServerStdout();
125          void processServerExit();          void processServerExit();
         void sessionDirty();  
         void stabilizeForm();  
126    
127          void handle_sigusr1();          void handle_sigusr1();
128    
 protected slots:  
   
         void updateRecentFilesMenu();  
   
129          // Channel strip activation/selection.          // Channel strip activation/selection.
130          void activateStrip(QMdiSubWindow *pMdiSubWindow);          void activateStrip(QMdiSubWindow *pMdiSubWindow);
131    
# Line 139  protected: Line 142  protected:
142          void dragEnterEvent(QDragEnterEvent *pDragEnterEvent);          void dragEnterEvent(QDragEnterEvent *pDragEnterEvent);
143          void dropEvent(QDropEvent *pDropEvent);          void dropEvent(QDropEvent *pDropEvent);
144          void customEvent(QEvent *pCustomEvent);          void customEvent(QEvent *pCustomEvent);
         void resizeEvent(QResizeEvent *);  
145          bool newSession();          bool newSession();
146          bool openSession();          bool openSession();
147          bool saveSession(bool bPrompt);          bool saveSession(bool bPrompt);
# Line 157  protected: Line 159  protected:
159          void updateMessagesCapture();          void updateMessagesCapture();
160          void updateViewMidiDeviceStatusMenu();          void updateViewMidiDeviceStatusMenu();
161          void updateAllChannelStrips(bool bRemoveDeadStrips);          void updateAllChannelStrips(bool bRemoveDeadStrips);
162    
163          void startSchedule(int iStartDelay);          void startSchedule(int iStartDelay);
164          void stopSchedule();          void stopSchedule();
165          void startServer();          void startServer();
# Line 170  private: Line 173  private:
173    
174          Options *m_pOptions;          Options *m_pOptions;
175          Messages *m_pMessages;          Messages *m_pMessages;
176          QMdiArea *m_pWorkspace;          Workspace *m_pWorkspace;
177          QSocketNotifier *m_pUsr1Notifier;          QSocketNotifier *m_pUsr1Notifier;
178          QString m_sFilename;          QString m_sFilename;
179          int m_iUntitled;          int m_iUntitled;

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

  ViewVC Help
Powered by ViewVC