| 1 |
/****************************************************************************** |
| 2 |
This source file is part of the Avogadro project. |
| 3 |
This source code is released under the 3-Clause BSD License, (see "LICENSE"). |
| 4 |
******************************************************************************/ |
| 5 |
|
| 6 |
#ifndef AVOGADRO_QTGUI_CHARTDIALOG_H |
| 7 |
#define AVOGADRO_QTGUI_CHARTDIALOG_H |
| 8 |
|
| 9 |
#include "avogadroqtguiexport.h" |
| 10 |
|
| 11 |
#include <QDialog> |
| 12 |
|
| 13 |
namespace Avogadro::QtGui { |
| 14 |
|
| 15 |
class ChartWidget; |
| 16 |
|
| 17 |
/** |
| 18 |
* @brief The ChartDialog class provides a dialog window for |
| 19 |
* displaying a chart via ChartWidget. |
| 20 |
* |
| 21 |
* If you wish to have more control over the chart, use ChartWidget directly |
| 22 |
* in your dialog. |
| 23 |
*/ |
| 24 |
class AVOGADROQTGUI_EXPORT ChartDialog : public QDialog |
| 25 |
{ |
| 26 |
Q_OBJECT |
| 27 |
|
| 28 |
public: |
| 29 |
explicit ChartDialog(QWidget* p = nullptr); |
| 30 |
~ChartDialog() override; |
| 31 |
|
| 32 |
ChartWidget* chartWidget(); |
| 33 |
|
| 34 |
/** |
| 35 |
* @return the current size hint for the dialog |
| 36 |
*/ |
| 37 |
QSize sizeHint() const override; |
| 38 |
|
| 39 |
/** |
| 40 |
* @return the minimum size for the dialog |
| 41 |
*/ |
| 42 |
QSize minimumSizeHint() const override; |
| 43 |
|
| 44 |
private: |
| 45 |
ChartWidget* m_chartWidget; |
| 46 |
}; |
| 47 |
|
| 48 |
} // namespace Avogadro::QtGui |
| 49 |
|
| 50 |
#endif // AVOGADRO_CHARTDIALOG_H |