swift
statusmessageformsmall.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_STATUSMESSAGEFORMSMALL_H
7 #define SWIFT_GUI_COMPONENTS_STATUSMESSAGEFORMSMALL_H
8 
9 #include <QFrame>
10 #include <QObject>
11 #include <QScopedPointer>
12 
13 #include "gui/swiftguiexport.h"
14 #include "misc/statusmessage.h"
15 #include "misc/variant.h"
16 
17 namespace Ui
18 {
19  class CStatusMessageFormSmall;
20 }
21 namespace swift::gui::components
22 {
27  {
28  Q_OBJECT
29 
30  public:
32  explicit CStatusMessageFormSmall(QWidget *parent = nullptr);
33 
35  virtual ~CStatusMessageFormSmall();
36 
38  void setVariant(const swift::misc::CVariant &messageVariant);
39 
41  void setValue(const swift::misc::CStatusMessage &message);
42 
44  void toggleVisibility();
45 
47  void setReducedInfo(bool minimized);
48 
49  private:
50  QScopedPointer<Ui::CStatusMessageFormSmall> ui;
51  };
52 } // namespace swift::gui::components
53 #endif // SWIFT_GUI_COMPONENTS_STATUSMESSAGEFORMSMALL_H
Display details about a single status message.
Streamable status message, e.g.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Definition: variant.h:66
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.