2015-07-07 00:48:52 +02:00
|
|
|
#ifndef DIALOGS_DIALOGUTILS_H
|
|
|
|
#define DIALOGS_DIALOGUTILS_H
|
|
|
|
|
|
|
|
#include <c++utilities/application/global.h>
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
|
2015-09-26 20:28:30 +02:00
|
|
|
QT_FORWARD_DECLARE_CLASS(QString)
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QWidget)
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QColor)
|
2015-07-07 00:48:52 +02:00
|
|
|
|
|
|
|
namespace Dialogs {
|
|
|
|
|
2016-02-05 20:23:02 +01:00
|
|
|
/*!
|
|
|
|
* \brief The DocumentStatus enum specifies the status of the document in a window.
|
|
|
|
*/
|
2015-07-07 00:48:52 +02:00
|
|
|
enum class DocumentStatus {
|
2016-02-05 20:23:02 +01:00
|
|
|
NoDocument, /**< There is no document opened. The document path is ignored in this case. */
|
|
|
|
Saved, /**< There is a document opened. All modifications have been saved yet. */
|
|
|
|
Unsaved /**< There is a document opened and there are unsaved modifications. */
|
2015-07-07 00:48:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
QString LIB_EXPORT generateWindowTitle(DocumentStatus documentStatus, const QString &documentPath);
|
|
|
|
|
2015-09-26 20:28:30 +02:00
|
|
|
#ifndef GUI_NONE
|
2016-02-05 20:23:02 +01:00
|
|
|
# ifdef Q_OS_WIN32
|
2015-09-26 20:28:30 +02:00
|
|
|
QColor LIB_EXPORT windowFrameColor();
|
|
|
|
QColor LIB_EXPORT instructionTextColor();
|
2016-02-05 20:23:02 +01:00
|
|
|
# endif
|
2015-09-26 20:28:30 +02:00
|
|
|
const QString LIB_EXPORT &dialogStyle();
|
2016-04-09 02:33:09 +02:00
|
|
|
# ifdef GUI_QTWIDGETS
|
2016-08-27 14:54:19 +02:00
|
|
|
void LIB_EXPORT centerWidget(QWidget *widget);
|
|
|
|
void LIB_EXPORT cornerWidget(QWidget *widget);
|
2015-09-26 20:28:30 +02:00
|
|
|
void LIB_EXPORT makeHeading(QWidget *widget);
|
2016-02-05 20:23:02 +01:00
|
|
|
void LIB_EXPORT updateStyle(QWidget *widget);
|
2016-04-09 02:33:09 +02:00
|
|
|
# endif
|
2015-09-26 20:28:30 +02:00
|
|
|
#endif
|
|
|
|
|
2015-07-07 00:48:52 +02:00
|
|
|
} // namespace Dialogs
|
|
|
|
|
|
|
|
#endif // DIALOGS_DIALOGUTILS_H
|