qtutilities/misc/dialogutils.h

42 lines
1.2 KiB
C
Raw Normal View History

#ifndef DIALOGS_DIALOGUTILS_H
#define DIALOGS_DIALOGUTILS_H
#include <c++utilities/application/global.h>
#include <QtGlobal>
QT_FORWARD_DECLARE_CLASS(QString)
QT_FORWARD_DECLARE_CLASS(QWidget)
QT_FORWARD_DECLARE_CLASS(QColor)
namespace Dialogs {
2016-02-05 20:23:02 +01:00
/*!
* \brief The DocumentStatus enum specifies the status of the document in a window.
*/
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. */
};
QString LIB_EXPORT generateWindowTitle(DocumentStatus documentStatus, const QString &documentPath);
#ifndef GUI_NONE
2016-02-05 20:23:02 +01:00
# ifdef Q_OS_WIN32
QColor LIB_EXPORT windowFrameColor();
QColor LIB_EXPORT instructionTextColor();
2016-02-05 20:23:02 +01:00
# endif
const QString LIB_EXPORT &dialogStyle();
# ifdef GUI_QTWIDGETS
2016-08-27 14:54:19 +02:00
void LIB_EXPORT centerWidget(QWidget *widget);
void LIB_EXPORT cornerWidget(QWidget *widget);
void LIB_EXPORT makeHeading(QWidget *widget);
2016-02-05 20:23:02 +01:00
void LIB_EXPORT updateStyle(QWidget *widget);
# endif
#endif
} // namespace Dialogs
#endif // DIALOGS_DIALOGUTILS_H