MuseScore  3.4
Music composition and notation
toolbarEditor.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2016 Werner Schweer
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 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __TOOLBAREDITOR_H__
14 #define __TOOLBAREDITOR_H__
15 
16 #include "ui_toolbarEditor.h"
17 
18 namespace Ms {
19 
20 //---------------------------------------------------------
21 // ToolbarEditor
22 //---------------------------------------------------------
23 
24 class ToolbarEditor : public QDialog, public Ui::ToolbarEditor {
25  Q_OBJECT
26 
27  std::vector<std::list<const char*>*> *new_toolbars;
28  void updateNewToolbar(int toolbar_to_update);
29 
30  void populateLists(const std::list<const char*>&, std::list<const char*>*);
31  bool isSpacer(QListWidgetItem*) const;
32 
33  virtual void hideEvent(QHideEvent*);
34  private slots:
35  void toolbarChanged(int);
36  void addAction();
37  void removeAction();
38  void upAction();
39  void downAction();
40  void accepted();
41 
42  public:
43  ToolbarEditor(QWidget* parent = 0);
44  void init();
45  };
46 
47 } // namespace Ms
48 
49 #endif
50 
void toolbarChanged(int)
Definition: toolbarEditor.cpp:247
void downAction()
Definition: toolbarEditor.cpp:232
void removeAction()
Definition: toolbarEditor.cpp:202
bool isSpacer(QListWidgetItem *) const
Definition: toolbarEditor.cpp:167
void populateLists(const std::list< const char *> &, std::list< const char *> *)
Definition: toolbarEditor.cpp:119
Definition: toolbarEditor.h:24
ToolbarEditor(QWidget *parent=0)
Definition: toolbarEditor.cpp:43
Definition: aeolus.cpp:26
void upAction()
Definition: toolbarEditor.cpp:217
void updateNewToolbar(int toolbar_to_update)
Definition: toolbarEditor.cpp:275
void addAction()
Definition: toolbarEditor.cpp:176
void init()
Definition: toolbarEditor.cpp:77
virtual void hideEvent(QHideEvent *)
Definition: toolbarEditor.cpp:265
void accepted()
Definition: toolbarEditor.cpp:101
std::vector< std::list< const char * > * > * new_toolbars
Definition: toolbarEditor.h:27