YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
mainwindow.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef MAINWINDOW_H
7#define MAINWINDOW_H
8
9#include <QMainWindow>
10#include <QStandardItemModel>
11#include <QTimer>
12#include <QLabel>
13#include <QSortFilterProxyModel>
16#include "messageWidget.h"
17#include "yarprunPortSorting.h"
18
19namespace Ui {
20class MainWindow;
21}
22
23class MainWindow : public QMainWindow
24{
25 Q_OBJECT
26 Q_DISABLE_COPY(MainWindow)
27
28public:
29 explicit MainWindow(QWidget *parent = 0);
31
32private slots:
33
34 void on_filterLineEdit_textChanged(const QString &text);
35
36 void updateMain();
37
38 void on_logtabs_tabCloseRequested(int index);
39
40 void on_yarprunTreeView_doubleClicked(const QModelIndex &index);
41
42 void on_DisplayErrorEnable_toggled(bool checked);
43
44 void on_DisplayWarningEnable_toggled(bool checked);
45
46 void on_DisplayDebugEnable_toggled(bool checked);
47
48 void on_DisplayInfoEnable_toggled(bool checked);
49
50 void on_DisplayTraceEnable_toggled(bool checked);
51
52 void on_DisplayUnformattedEnable_toggled(bool checked);
53
54 void on_actionAbout_QtYarpLogger_triggered();
55
56 void on_actionStart_Logger_triggered();
57
58 void ctxMenu(const QPoint &pos);
59
60 void on_clearLogTab_action();
61
62 void on_saveLogTab_action();
63
64 void on_enableLogTab_action();
65
66 void on_resetCountersLogTab_action();
67
68 void on_actionSave_Log_triggered(bool checked);
69
70 void on_actionLoad_Log_triggered();
71
72 void on_actionShow_YarprunTimestamps_toggled(bool checked);
73
74 void on_actionShow_LocalTimestamps_toggled(bool checked);
75
76 void on_actionShow_System_Time_toggled(bool checked);
77
78 void on_actionShow_Network_Time_toggled(bool checked);
79
80 void on_actionShow_Custom_Time_toggled(bool checked);
81
82 void on_actionShow_Log_Level_toggled(bool checked);
83
84 void on_actionShow_Filename_toggled(bool checked);
85
86 void on_actionShow_Line_Number_toggled(bool checked);
87
88 void on_actionShow_Function_toggled(bool checked);
89
90 void on_actionShow_Hostname_toggled(bool checked);
91
92 void on_actionShow_Pid_toggled(bool checked);
93
94 void on_actionShow_Cmd_toggled(bool checked);
95
96 void on_actionShow_Args_toggled(bool checked);
97
98 void on_actionShow_Thread_Id_toggled(bool checked);
99
100 void on_actionShow_Component_toggled(bool checked);
101
102 void on_actionShow_Id_toggled(bool checked);
103
104 void on_actionShow_Colors_toggled(bool checked);
105
106 void on_actionShow_Grid_toggled(bool checked);
107
108 void on_actionShow_Mute_Ports_toggled(bool checked);
109
110 void on_actionAdvanced_triggered();
111
112 void on_actionStop_Logger_triggered();
113
114 void on_actionRefresh_triggered();
115
116 void on_actionClear_triggered();
117
118 void on_actionClear_current_log_triggered();
119
120 void on_actionExport_current_log_to_text_file_triggered();
121
122 void on_actionDisable_current_log_triggered();
123
124 void on_actionReset_current_log_error_warning_counters_triggered();
125
126 void dragEnterEvent(QDragEnterEvent *e) override;
127
128 void dropEvent(QDropEvent *e) override;
129
130 void resetMainWindowHeaders();
131
132private:
134
135 Ui::MainWindow *ui;
136 QStandardItemModel *model_yarprunports;
137 QItemSelectionModel *selection_yarprunports;
138 QTimer *mainTimer;
139 MessageWidget *system_message;
141 void loadTextFile();
142 QString recomputeFilters();
143 void apply_button_filters();
144
145 //helper methods called by other slots
146 void on_enableLogTab (int model_row);
147 void on_clearLogTab (int model_row);
148 void on_saveLogTab (int model_row);
149 void on_resetCountersLogTab (int model_row);
150};
151
152#endif // MAINWINDOW_H
MainWindow class.
Definition display.h:22
Definition aboutdlg.h:11