~s-cecilio/lenmus/v5.1.x

« back to all changes in this revision

Viewing changes to src/app/MainFrame.h

  • Committer: cecilios
  • Date: 2008-09-13 17:53:40 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:trunk:387

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
//
13
13
//    You should have received a copy of the GNU General Public License along with this
14
14
//    program. If not, see <http://www.gnu.org/licenses/>.
15
 
 
16
15
//
17
16
//    For any comment, suggestion or feature request, please contact the manager of
18
17
//    the project at cecilios@users.sourceforge.net
86
85
 
87
86
 
88
87
    // menu bar
89
 
    wxMenuBar* CreateMenuBar(wxDocument* doc, wxView* view, bool fEdit, bool fDebug);
 
88
    wxMenuBar* CreateMenuBar(wxDocument* doc, wxView* view);
90
89
 
91
90
    // metronome
92
91
    void SetMetronome(lmMetronome* pMtr);
95
94
    // File menu events
96
95
    void OnScoreWizard(wxCommandEvent& WXUNUSED(event));
97
96
    void OnImportFile(wxCommandEvent& WXUNUSED(event));
98
 
    void OnExportBMP(wxCommandEvent& WXUNUSED(event));
 
97
        void OnExportMusicXML(wxCommandEvent& WXUNUSED(event));
 
98
        void OnExportBMP(wxCommandEvent& WXUNUSED(event));
99
99
    void OnExportJPG(wxCommandEvent& WXUNUSED(event));
100
100
    void OnPrintPreview(wxCommandEvent& WXUNUSED(event));
101
101
    //void OnPageSetup(wxCommandEvent& WXUNUSED(event));
113
113
    void OnEditPaste(wxCommandEvent& event);
114
114
    void OnEditUpdateUI(wxUpdateUIEvent& event);
115
115
 
 
116
        // Score Menu events
 
117
        void OnScoreTitles(wxCommandEvent& WXUNUSED(event));
 
118
 
 
119
        // Instrument menu events
 
120
        void OnInstrumentName(wxCommandEvent& WXUNUSED(event));
 
121
        void OnInstrumentMIDISettings(wxCommandEvent& WXUNUSED(event));
 
122
 
116
123
    // Debug menu events
117
124
        // general options, always enabled
118
125
    void OnDebugForceReleaseBehaviour(wxCommandEvent& event);
167
174
    void OnRunMidiWizard(wxCommandEvent& WXUNUSED(event));
168
175
    void DoRunMidiWizard();
169
176
    void OnPlayStart(wxCommandEvent& WXUNUSED(event));
 
177
    void OnPlayCursorStart(wxCommandEvent& WXUNUSED(event));
170
178
    void OnPlayStop(wxCommandEvent& WXUNUSED(event));
171
179
    void OnPlayPause(wxCommandEvent& WXUNUSED(event));
172
180
    void OnPlayUI(wxUpdateUIEvent& event);
233
241
    inline lmTextBookController* GetBookController() { return m_pBookController; }
234
242
        inline lmToolBox* GetActiveToolBox() { return m_pToolBox; }
235
243
        bool IsToolBoxVisible();
236
 
    inline int GetSelectedVoice() { return m_pComboVoice->GetSelection(); }
237
244
    inline lmScore* GetWizardScore() { return m_pWizardScore; }  
238
245
    lmController* GetActiveController();
239
246
    wxFileHistory* GetFileHistory() { return m_pRecentFiles; }
240
247
 
241
248
 
242
249
        // call backs
243
 
        void OnActiveViewChanged(lmMDIChildFrame* pFrame);
244
 
        void OnNewEditFrame();
 
250
        void OnActiveChildChanged(lmMDIChildFrame* pFrame);
 
251
    void OnNewEditFrame();
245
252
 
246
253
        //other
247
254
        void RedirectKeyPressEvent(wxKeyEvent& event);
248
255
    void SetFocusOnActiveView();
249
256
    void AddFileToHistory(const wxString& filename);
250
257
 
 
258
    //access to current active MDI Child
 
259
    lmScoreView* GetActiveScoreView();
 
260
    lmScore* GetActiveScore();
 
261
 
 
262
 
251
263
 
252
264
 
253
265
protected:
274
286
    lmHelpController*       m_pHelp;
275
287
    wxSpinCtrl*             m_pSpinMetronome;
276
288
    wxComboBox*             m_pComboZoom;
277
 
    wxComboBox*             m_pComboVoice;
278
289
 
279
290
    lmMetronome*        m_pMainMtr;        //independent metronome
280
291
    lmMetronome*        m_pMtr;            //metronome currently associated to frame metronome controls
293
304
    wxToolBar*      m_pTbMtr;           // metronome toolbar
294
305
    wxToolBar*      m_pToolbar;         // main toolbar
295
306
    wxToolBar*      m_pTbTextBooks;     // text books navigation toolbar
296
 
    wxToolBar*      m_pTbVoice;         // voice toolbar
297
307
 
298
308
    // status bar
299
309
    lmStatusBar*    m_pStatusBar;