MuseScore  3.4
Music composition and notation
selectnotedialog.h
Go to the documentation of this file.
1 //=============================================================================
2 // MusE Score
3 // Linux Music Score Editor
4 //
5 // Copyright (C) 2002-2010 Werner Schweer and others
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2.
9 //
10 // This program 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 this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #ifndef __SELECTNOTEDIALOG_H__
21 #define __SELECTNOTEDIALOG_H__
22 
23 #include "ui_selectnotedialog.h"
24 
25 namespace Ms {
26 
27 struct NotePattern;
28 class Note;
29 
30 //---------------------------------------------------------
31 // SelectNoteDialog
32 //---------------------------------------------------------
33 
34 class SelectNoteDialog : public QDialog, Ui::SelectNoteDialog {
35  Q_OBJECT
36  const Note* n;
37 
38  virtual void hideEvent(QHideEvent*);
39  public:
40  SelectNoteDialog(const Note* n, QWidget* parent);
41  void setPattern(NotePattern* p);
42  bool doReplace() const { return replace->isChecked(); }
43  bool doAdd() const { return add->isChecked(); }
44  bool doSubtract() const { return subtract->isChecked(); }
45  bool doFromSelection() const { return fromSelection->isChecked(); }
46  bool isInSelection() const { return inSelection->isChecked(); }
47  void setSameStringVisible(bool v) { sameString->setVisible(v); string->setVisible(v); }
48  };
49 
50 } // namespace Ms
51 #endif
52 
const Note * n
Definition: selectnotedialog.h:36
bool doSubtract() const
Definition: selectnotedialog.h:44
Definition: select.h:52
void setSameStringVisible(bool v)
Definition: selectnotedialog.h:47
SelectNoteDialog(const Note *n, QWidget *parent)
Definition: selectnotedialog.cpp:41
bool isInSelection() const
Definition: selectnotedialog.h:46
bool doFromSelection() const
Definition: selectnotedialog.h:45
Definition: aeolus.cpp:26
void setPattern(NotePattern *p)
Definition: selectnotedialog.cpp:63
Graphic representation of a note.
Definition: note.h:212
Definition: selectnotedialog.h:34
bool doReplace() const
Definition: selectnotedialog.h:42
bool doAdd() const
Definition: selectnotedialog.h:43
virtual void hideEvent(QHideEvent *)
Definition: selectnotedialog.cpp:106