/[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 1499 by capela, Tue Nov 20 16:48:04 2007 UTC revision 1509 by capela, Thu Nov 22 11:10:44 2007 UTC
# Line 38  namespace QSampler { Line 38  namespace QSampler {
38    
39  class DeviceForm;  class DeviceForm;
40    
41  class MainForm : public QMainWindow {  class MainForm : public QMainWindow
42  Q_OBJECT  {
43            Q_OBJECT
44    
45  public:  public:
46      MainForm(QWidget* parent = 0);  
47     ~MainForm();          MainForm(QWidget *pParent = NULL);
48      void setup(qsamplerOptions* pOptions);          ~MainForm();
49      void contextMenuEvent(QContextMenuEvent *pEvent);  
50      qsamplerOptions* options();          void setup(qsamplerOptions* pOptions);
51      lscp_client_t* client();  
52      QString sessionName(const QString& sFilename);          qsamplerOptions* options() const;
53      void appendMessages(const QString& s);          lscp_client_t* client() const;
54      void appendMessagesColor(const QString& s, const QString& c);  
55      void appendMessagesText(const QString& s);          QString sessionName(const QString& sFilename);
56      void appendMessagesError(const QString& s);  
57      void appendMessagesClient(const QString& s);          void appendMessages(const QString& s);
58      ChannelStrip* createChannelStrip(qsamplerChannel *pChannel);          void appendMessagesColor(const QString& s, const QString& c);
59      ChannelStrip* activeChannelStrip();          void appendMessagesText(const QString& s);
60      ChannelStrip* channelStripAt(int iChannel);          void appendMessagesError(const QString& s);
61      ChannelStrip* channelStrip(int iChannelID);          void appendMessagesClient(const QString& s);
62      static MainForm* getInstance();  
63            ChannelStrip* createChannelStrip(qsamplerChannel *pChannel);
64            ChannelStrip* activeChannelStrip();
65            ChannelStrip* channelStripAt(int iChannel);
66            ChannelStrip* channelStrip(int iChannelID);
67    
68            void contextMenuEvent(QContextMenuEvent *pEvent);
69    
70            static MainForm* getInstance();
71    
72  public slots:  public slots:
73      void sessionDirty();  
74      void stabilizeForm();          void fileNew();
75            void fileOpen();
76            void fileOpenRecent();
77            void fileSave();
78            void fileSaveAs();
79            void fileReset();
80            void fileRestart();
81            void fileExit();
82            void editAddChannel();
83            void editRemoveChannel();
84            void editSetupChannel();
85            void editEditChannel();
86            void editResetChannel();
87            void editResetAllChannels();
88            void viewMenubar(bool bOn);
89            void viewToolbar(bool bOn);
90            void viewStatusbar(bool bOn);
91            void viewMessages(bool bOn);
92            void viewInstruments();
93            void viewDevices();
94            void viewOptions();
95            void channelsArrange();
96            void channelsAutoArrange(bool bOn);
97            void helpAboutQt();
98            void helpAbout();
99            void volumeChanged(int iVolume);
100            void channelStripChanged(ChannelStrip *pChannelStrip);
101            void channelsMenuAboutToShow();
102            void channelsMenuActivated();
103            void timerSlot();
104            void readServerStdout();
105            void processServerExit();
106            void sessionDirty();
107            void stabilizeForm();
108    
109  protected slots:  protected slots:
110    
111      void updateRecentFilesMenu();          void updateRecentFilesMenu();
112    
113  protected:  protected:
114      bool queryClose();  
115      void closeEvent(QCloseEvent* pCloseEvent);          bool queryClose();
116      void dragEnterEvent(QDragEnterEvent *pDragEnterEvent);          void closeEvent(QCloseEvent* pCloseEvent);
117      void dropEvent(QDropEvent *pDropEvent);          void dragEnterEvent(QDragEnterEvent *pDragEnterEvent);
118      void customEvent(QEvent* pCustomEvent);          void dropEvent(QDropEvent *pDropEvent);
119      bool newSession();          void customEvent(QEvent* pCustomEvent);
120      bool openSession();          bool newSession();
121      bool saveSession(bool bPrompt);          bool openSession();
122      bool closeSession(bool bForce);          bool saveSession(bool bPrompt);
123      bool loadSessionFile(const QString& sFilename);          bool closeSession(bool bForce);
124      bool saveSessionFile(const QString& sFilename);          bool loadSessionFile(const QString& sFilename);
125      void updateSession();          bool saveSessionFile(const QString& sFilename);
126      void updateRecentFiles(const QString& sFilename);          void updateSession();
127      void updateInstrumentNames();          void updateRecentFiles(const QString& sFilename);
128      void updateDisplayFont();          void updateInstrumentNames();
129      void updateDisplayEffect();          void updateDisplayFont();
130      void updateMaxVolume();          void updateDisplayEffect();
131      void updateMessagesFont();          void updateMaxVolume();
132      void updateMessagesLimit();          void updateMessagesFont();
133      void updateMessagesCapture();          void updateMessagesLimit();
134      void startSchedule(int iStartDelay);          void updateMessagesCapture();
135      void stopSchedule();          void startSchedule(int iStartDelay);
136      void startServer();          void stopSchedule();
137      void stopServer();          void startServer();
138      bool startClient();          void stopServer();
139      void stopClient();          bool startClient();
140            void stopClient();
141    
142  private:  private:
     Ui::qsamplerMainForm ui;  
143    
144      qsamplerOptions *m_pOptions;          Ui::qsamplerMainForm m_ui;
145      qsamplerMessages *m_pMessages;  
146      QWorkspace *m_pWorkspace;          qsamplerOptions *m_pOptions;
147      QString m_sFilename;          qsamplerMessages *m_pMessages;
148      int m_iUntitled;          QWorkspace *m_pWorkspace;
149      int m_iDirtyCount;          QString m_sFilename;
150      lscp_client_t *m_pClient;          int m_iUntitled;
151      QProcess *m_pServer;          int m_iDirtyCount;
152      int m_iStartDelay;          lscp_client_t *m_pClient;
153      int m_iTimerDelay;          QProcess *m_pServer;
154      int m_iTimerSlot;          int m_iStartDelay;
155      QLabel *m_statusItem[5];          int m_iTimerDelay;
156      QList<ChannelStrip *> m_changedStrips;          int m_iTimerSlot;
157      InstrumentListForm *m_pInstrumentListForm;          QLabel *m_statusItem[5];
158      DeviceForm *m_pDeviceForm;          QList<ChannelStrip *> m_changedStrips;
159      static MainForm *g_pMainForm;          InstrumentListForm *m_pInstrumentListForm;
160      QSlider *m_pVolumeSlider;          DeviceForm *m_pDeviceForm;
161      QSpinBox *m_pVolumeSpinBox;          static MainForm *g_pMainForm;
162      int m_iVolumeChanging;          QSlider *m_pVolumeSlider;
163            QSpinBox *m_pVolumeSpinBox;
164  private slots:          int m_iVolumeChanging;
     void fileNew();  
     void fileOpen();  
     void fileOpenRecent();  
     void fileSave();  
     void fileSaveAs();  
     void fileReset();  
     void fileRestart();  
     void fileExit();  
     void editAddChannel();  
     void editRemoveChannel();  
     void editSetupChannel();  
     void editEditChannel();  
     void editResetChannel();  
     void editResetAllChannels();  
     void viewMenubar(bool bOn);  
     void viewToolbar(bool bOn);  
     void viewStatusbar(bool bOn);  
     void viewMessages(bool bOn);  
     void viewInstruments();  
     void viewDevices();  
     void viewOptions();  
     void channelsArrange();  
     void channelsAutoArrange(bool bOn);  
     void helpAboutQt();  
     void helpAbout();  
     void volumeChanged(int iVolume);  
     void channelStripChanged(ChannelStrip *pChannelStrip);  
     void channelsMenuAboutToShow();  
     void channelsMenuActivated();  
     void timerSlot();  
     void readServerStdout();  
     void processServerExit();  
165  };  };
166    
167  } // namespace QSampler  } // namespace QSampler

Legend:
Removed from v.1499  
changed lines
  Added in v.1509

  ViewVC Help
Powered by ViewVC