MuseScore/mscore/scorePreview.h
Peter Jonas c2ac2846dd New Score Wizard: Template page: implement as tree view
- Template list is QTreeWidget
- Show template preview
- Move searchbox to be above list
- Create mscore/widgets subdirectory to improve organisation
- New FilterableView class and SearchBox widget to search item views
- Pressing Up or Down key in searchbox controls the tree view
2019-01-06 01:53:21 +00:00

51 lines
1.3 KiB
C++

//=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2014 Werner Schweer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as published by the Free Software Foundation and appearing in
// the file LICENCE.GPL
//=============================================================================
#ifndef __SCOREPREVIEW_H__
#define __SCOREPREVIEW_H__
#include "ui_scorePreview.h"
#include "scoreInfo.h"
namespace Ms {
//---------------------------------------------------------
// ScorePreview
//---------------------------------------------------------
class ScorePreview : public QWidget, public Ui::ScorePreview
{
Q_OBJECT
ScoreInfo scoreInfo;
QString messageNothingToShow;
virtual void mouseDoubleClickEvent(QMouseEvent*) override { emit doubleClicked(scoreInfo.filePath()); }
public slots:
void setScore(const QString&);
void setScore(const ScoreInfo&);
void unsetScore();
signals:
void doubleClicked(QString);
public:
ScorePreview(QWidget* parent = 0);
void displayInfo(bool show);
};
}
#endif