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

« back to all changes in this revision

Viewing changes to score/papersize.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: papersize.h,v 1.2 2001/11/20 15:19:34 muse Exp $
 
5
//  (C) Copyright 2000 Werner Schweer (ws@seh.de)
 
6
//=========================================================
 
7
 
 
8
#ifndef __PAPERSIZE_H__
 
9
#define __PAPERSIZE_H__
 
10
 
 
11
#include <qdialog.h>
 
12
#include <qspinbox.h>
 
13
 
 
14
class QLineEdit;
 
15
class QCheckBox;
 
16
class QRadioButton;
 
17
class QWidget;
 
18
class FontSel;
 
19
 
 
20
class MMSpinBox : public QSpinBox {
 
21
      virtual QString mapValueToText(int);
 
22
      virtual int mapTextToValue(bool* ok);
 
23
   public:
 
24
      MMSpinBox(int v1, int v2, int step, int value, QWidget* parent);
 
25
      };
 
26
 
 
27
class ScaleSpinBox : public QSpinBox {
 
28
      virtual QString mapValueToText(int);
 
29
      virtual int mapTextToValue(bool* ok);
 
30
   public:
 
31
      ScaleSpinBox(int v1, int v2, int step, int value, QWidget* parent);
 
32
      };
 
33
 
 
34
//---------------------------------------------------------
 
35
//   PageSettings
 
36
//---------------------------------------------------------
 
37
 
 
38
class PageSettings : public QDialog {
 
39
      QLineEdit* u1;
 
40
      QLineEdit* u2;
 
41
      QRadioButton* a4;
 
42
      QRadioButton* user;
 
43
      QLineEdit* le1;
 
44
      QLineEdit* le2;
 
45
      QLineEdit* le3;
 
46
      QCheckBox* cb1;
 
47
      QCheckBox* cb2;
 
48
      QCheckBox* cb3;
 
49
      FontSel* fs1;
 
50
      FontSel* fs2;
 
51
      FontSel* fs3;
 
52
      FontSel* fs4;
 
53
      FontSel* fs5;
 
54
      FontSel* fs6;
 
55
      MMSpinBox* sb1;
 
56
      MMSpinBox* sb2;
 
57
      MMSpinBox* sb3;
 
58
      MMSpinBox* sb4;
 
59
      QSpinBox* sb5;
 
60
      ScaleSpinBox* sb6;
 
61
      int paperSize;
 
62
      int bp;
 
63
      Q_OBJECT
 
64
 
 
65
   private slots:
 
66
      void selectSize(int);
 
67
      void ok();
 
68
      void cancel();
 
69
      void apply();
 
70
 
 
71
   public:
 
72
      PageSettings(QWidget* parent);
 
73
      };
 
74
 
 
75
 
 
76
#endif
 
77