~ubuntu-branches/ubuntu/karmic/muse/karmic-proposed

« back to all changes in this revision

Viewing changes to widgets/tb1.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2002-04-23 17:28:23 UTC
  • Revision ID: james.westby@ubuntu.com-20020423172823-w8yplzr81a759xa3
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//=========================================================
 
2
//  MusE
 
3
//  Linux Music Editor
 
4
//    $Id: tb1.h,v 1.2 2001/11/20 15:19:35 muse Exp $
 
5
//  (C) Copyright 1999 Werner Schweer (ws@seh.de)
 
6
//=========================================================
 
7
 
 
8
#ifndef __TB1_H__
 
9
#define __TB1_H__
 
10
 
 
11
#include <qwidget.h>
 
12
#include "desk.h"
 
13
 
 
14
class PosLabel;
 
15
class PitchLabel;
 
16
class Track;
 
17
class LabelCombo;
 
18
class QToolButton;
 
19
 
 
20
//---------------------------------------------------------
 
21
//   Toolbar1
 
22
//---------------------------------------------------------
 
23
 
 
24
class Toolbar1 : public ToolBar {
 
25
      QToolButton* solo;
 
26
      PosLabel* pos;
 
27
      PitchLabel* pitch;
 
28
      LabelCombo* quant;
 
29
      LabelCombo* raster;
 
30
      bool showPitch;
 
31
      Q_OBJECT
 
32
 
 
33
   private slots:
 
34
      void _rasterChanged(int);
 
35
      void _quantChanged(int);
 
36
 
 
37
   public slots:
 
38
      void setTime(int);
 
39
      void setPitch(int);
 
40
      void setInt(int);
 
41
      void setRaster(int);
 
42
      void setQuant(int);
 
43
 
 
44
   signals:
 
45
      void rasterChanged(int);
 
46
      void quantChanged(int);
 
47
      void soloChanged(bool);
 
48
      void toChanged(int);
 
49
 
 
50
   public:
 
51
      Toolbar1(MainWindow* parent, int r=96,
 
52
         int q=96, bool showPitch=true);
 
53
      void setSolo(bool val);
 
54
      void setPitchMode(bool flag);
 
55
      };
 
56
 
 
57
#endif