FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
message_dialog.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** FougTools
3 ** Copyright Fougue (30 Mar. 2015)
4 ** contact@fougue.pro
5 **
6 ** This software is a computer program whose purpose is to provide utility
7 ** tools for the C++ language and the Qt toolkit.
8 **
9 ** This software is governed by the CeCILL-C license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-C
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info".
14 ****************************************************************************/
15 
16 #pragma once
17 
18 #include "gui.h"
19 // QtWidgets
20 #include <QDialog>
21 #include <QDialogButtonBox>
22 class QLabel;
23 
24 namespace qtgui {
25 
26 class QTTOOLS_GUI_EXPORT MessageDialog : public QDialog
27 {
28 public:
29  enum Icon
30  {
35  Question
36  };
37 
39  Icon icon,
40  const QString& title,
41  const QString& text,
42  QDialogButtonBox::StandardButtons buttons,
43  QWidget* parent = NULL);
44 
45  QWidget* detailsWidget() const;
46  void setDetailsWidget(QWidget* widget);
47 
48 private:
49  QLabel* m_textLabel;
50  QWidget* m_detailsWidget;
51 };
52 
53 } // namespace qtgui
Alternative to QMessageBox providing a customizable "details" widget.
Definition: message_dialog.h:26
Definition: abstract_length_editor.cpp:20
Definition: message_dialog.h:32
Definition: message_dialog.h:34
#define QTTOOLS_GUI_EXPORT
Definition: gui.h:27
Icon
Definition: message_dialog.h:29
Definition: message_dialog.h:33
Definition: message_dialog.h:31