API Documentation
Loading...
Searching...
No Matches
StatusBar.h
Go to the documentation of this file.
1/**--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: NDEVR
28File: StatusBar
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/LogStream.h>
34#include <NDEVR/String.h>
35#include <QWidget>
36#include <QPointer>
37namespace Ui
38{
39 class StatusBarUI;
40}
41namespace NDEVR
42{
43 class Button;
44 class QTModelManager;
45 class QTResourceListener;
46 class StatusBar : public QWidget, public LogStream
47 {
48 Q_OBJECT
49 public:
50 StatusBar();
51 StatusBar(QTModelManager* manager);
52 ~StatusBar();
53 void allowCancel(bool) final override {};
54 void setProgress(fltp04 progress) final override;
55 bool ownsWidgets() const { return m_owns_widgets; };
56 void addMessage(const LogMessage& message) final override;
57 void addQuickButton(Button* button);
58 void clearQuickButtons();
59 void setVertical(bool)
60 {
61 //ui->information_layout->se
62 }
63 void setVisible(bool visible) override;
65 QSize minimumSizeHint() const override;
66 QSize sizeHint() const override;
67 protected:
68 void _updateUI();
69 signals:
71 void requestRemoteWidgetSignal(bool use_remote);
72 public slots:
73 void hideLogMessage();
74 void updateUI();
75 protected:
78 QTimer* m_hide_timer;
82 Ui::StatusBarUI* ui;
86 };
87}
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Button.h:60
Definition LogMessage.h:40
Definition LogStream.h:42
Definition QTModelManager.h:94
Definition QTTools.h:183
Definition StatusBar.h:47
void setProgress(fltp04 progress) final override
Definition StatusBar.cpp:105
bool m_owns_widgets
Definition StatusBar.h:85
QSize minimumSizeHint() const override
Definition StatusBar.cpp:165
void requestUpdateLog()
Ui::StatusBarUI * ui
Definition StatusBar.h:82
QSize sizeHint() const override
Definition StatusBar.cpp:172
bool ownsWidgets() const
Definition StatusBar.h:55
TranslatedString m_command_name
Definition StatusBar.h:79
fltp04 m_progress
Definition StatusBar.h:77
void requestRemoteWidgetSignal(bool use_remote)
String m_log_message
Definition StatusBar.h:76
void hideLogMessage()
Definition StatusBar.cpp:157
Buffer< QPointer< Button > > m_quick_widgets
Definition StatusBar.h:84
void _updateUI()
Definition StatusBar.cpp:176
QTimer * m_hide_timer
Definition StatusBar.h:78
TranslatedString m_command_hint
Definition StatusBar.h:80
void clearQuickButtons()
Definition StatusBar.cpp:127
Buffer< QPointer< QWidget > > remoteWidgets() const
Definition StatusBar.cpp:140
void updateUI()
Definition StatusBar.cpp:153
void allowCancel(bool) final override
Definition StatusBar.h:53
void setVertical(bool)
Definition StatusBar.h:59
void addMessage(const LogMessage &message) final override
Definition StatusBar.cpp:112
QTModelManager * m_manager
Definition StatusBar.h:81
void addQuickButton(Button *button)
Definition StatusBar.cpp:121
StatusBar()
Definition StatusBar.cpp:12
~StatusBar()
Definition StatusBar.cpp:100
void setVisible(bool visible) override
Definition StatusBar.cpp:135
QTResourceListener * m_ui_change
Definition StatusBar.h:83
Definition String.h:40
Definition TranslatedString.h:9
Definition ACIColor.h:37
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
Definition FontEditor.h:6