MuseScore/mscore/selectionwindow.h

65 lines
1.8 KiB
C
Raw Normal View History

2016-06-30 15:34:02 +02:00
//=============================================================================
// MuseScore
// Linux Music Score Editor
// $Id: selectionwindow.h 4775 2011-09-12 14:25:31Z wschweer $
//
// Copyright (C) 2002-2016 Werner Schweer and others
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//=============================================================================
2014-06-02 12:12:53 +02:00
#ifndef SELECTIONWINDOW_H
#define SELECTIONWINDOW_H
namespace Ms {
class Score;
2015-02-03 01:55:16 +01:00
class SelectionListWidget : public QListWidget {
Q_OBJECT
virtual void focusInEvent(QFocusEvent*) override;
2016-06-30 15:34:02 +02:00
public:
2015-02-03 01:55:16 +01:00
SelectionListWidget(QWidget* parent = 0);
2016-06-30 15:34:02 +02:00
void retranslate();
2015-02-03 01:55:16 +01:00
};
2014-06-02 12:12:53 +02:00
class SelectionWindow : public QDockWidget {
Q_OBJECT
Score* _score;
2016-06-30 15:34:02 +02:00
SelectionListWidget* _listWidget;
2014-08-15 17:20:20 +02:00
2014-06-02 12:12:53 +02:00
virtual void closeEvent(QCloseEvent*);
virtual void hideEvent (QHideEvent* event);
void updateFilteredElements();
2016-06-30 15:34:02 +02:00
private slots:
void changeCheckbox(QListWidgetItem*);
protected:
virtual void changeEvent(QEvent *event);
void retranslate();
2014-06-02 12:12:53 +02:00
signals:
void closed(bool);
2016-06-30 15:34:02 +02:00
public:
SelectionWindow(QWidget *parent = 0, Score* score = 0);
2014-06-02 12:12:53 +02:00
~SelectionWindow();
virtual QSize sizeHint() const;
void setScore(Score*);
2014-06-02 12:12:53 +02:00
};
} // namespace Ms
#endif // SELECTIONWINDOW_H