~killian-ebel/seq24/song-editor-editing-capabilities

« back to all changes in this revision

Viewing changes to src/seqmenu.h

  • Committer: Killian
  • Date: 2009-11-29 12:40:40 UTC
  • Revision ID: killian@killian-desktop-20091129124040-8dltj9z8fxvdk1z5
Restructured : BSD/Allman code style, One non-recursive makefile,
Namespace Seq24 and class names begin with a capital letter,
Subdirectories gui, core, utils,
In order to test easier, objects must not build their dependencies, but dependencies must be injected, with the seq24container, 
Began to delete unused attributes and methods,
Began to comment with doxygen style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//----------------------------------------------------------------------------
2
 
//
3
 
//  This file is part of seq24.
4
 
//
5
 
//  seq24 is free software; you can redistribute it and/or modify
6
 
//  it under the terms of the GNU General Public License as published by
7
 
//  the Free Software Foundation; either version 2 of the License, or
8
 
//  (at your option) any later version.
9
 
//
10
 
//  seq24 is distributed in the hope that it will be useful,
11
 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
//  GNU General Public License for more details.
14
 
//
15
 
//  You should have received a copy of the GNU General Public License
16
 
//  along with seq24; if not, write to the Free Software
17
 
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
 
//
19
 
//-----------------------------------------------------------------------------
20
 
 
21
 
 
22
 
 
23
 
#include "globals.h"
24
 
#include "perform.h"
25
 
 
26
 
class seqedit;
27
 
 
28
 
#ifndef SEQ24_MENU
29
 
#define SEQ24_MENU
30
 
 
31
 
 
32
 
#include <gtkmm/button.h>
33
 
#include <gtkmm/window.h>
34
 
#include <gtkmm/accelgroup.h>
35
 
#include <gtkmm/box.h>
36
 
#include <gtkmm/main.h>
37
 
#include <gtkmm/menu.h>
38
 
#include <gtkmm/menubar.h>
39
 
#include <gtkmm/eventbox.h>
40
 
#include <gtkmm/window.h>
41
 
#include <gtkmm/table.h>
42
 
#include <gtkmm/drawingarea.h>
43
 
#include <gtkmm/widget.h>
44
 
#include <gtkmm/style.h> 
45
 
 
46
 
 
47
 
 
48
 
using namespace Gtk;
49
 
 
50
 
 
51
 
class seqmenu : public virtual Glib::ObjectBase
52
 
{
53
 
 
54
 
 private: 
55
 
 
56
 
    Menu         *m_menu;
57
 
    perform      *m_mainperf;
58
 
    sequence     m_clipboard;
59
 
 
60
 
    void on_realize();
61
 
 
62
 
    void seq_edit();
63
 
    void seq_new();
64
 
 
65
 
    void seq_copy();   
66
 
    void seq_cut();
67
 
    void seq_paste(); 
68
 
 
69
 
    void seq_clear_perf();
70
 
 
71
 
    void set_bus_and_midi_channel( int a_bus, int a_ch );
72
 
    void mute_all_tracks();
73
 
    
74
 
    virtual void redraw( int a_sequence ) = 0;
75
 
 
76
 
 protected:
77
 
   
78
 
    int m_current_seq;
79
 
    void popup_menu();
80
 
 
81
 
 public:
82
 
 
83
 
    seqmenu( perform *a_p );
84
 
    virtual ~seqmenu( ){ };
85
 
};
86
 
 
87
 
#endif