summaryrefslogtreecommitdiff
path: root/simplestaff.hh
blob: e2efafe398e870b62362ba4fcfabe098e0f0b1d1 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
  simplestaff.hh -- part of LilyPond

  (c) 1996 Han-Wen Nienhuys
*/

#ifndef SIMPLESTAFF_HH
#define SIMPLESTAFF_HH

#include "stcol.hh"
#include "staff.hh"
/*
   mega-stupido staffs and cols: they do notes one at each moment.   
   */

struct Simple_staff;

/// column of Simple_staff: store one request
struct Simple_column : Staff_column {

    Request *the_note;
    Simple_staff* staff_;

    /****************/
    
    virtual void typeset_req(Request *rq)=0;
    virtual void typeset_command(Command *, int brs)=0;
    virtual void typeset_item(Item *, int=1);

    Item *create_command_item(Command *com);
    Item *create_req_item(Request *rq);
    void take_request(Request *rq);
    
    virtual void process_commands( );
    virtual void process_requests();

    Simple_column(Score_column*s,Simple_staff*rs);
};


/// Simple  staff: one note at a time
struct Simple_staff : Staff {
    /// indirection to the PStaff.
    PStaff *theline;

    /****************/
    virtual void set_output(PScore *);

    void process_commands( PCursor<Command*> &where);
    void grant_requests();
//    virtual Staff*clone()const;

    Simple_staff();
};

#endif // SIMPLESTAFF_HH