4 #include "mfextensions/Receivers/ReceiverManager.hh"
5 #include "mfextensions/Extensions/suppress.hh"
6 #include "mfextensions/Extensions/throttle.hh"
7 #include "mfextensions/Receivers/qt_mf_msg.hh"
8 #include "ui_msgviewerdlgui.h"
10 #include <QtCore/QMutex>
11 #include <QtCore/QTimer>
13 #include <boost/regex.hpp>
37 msgViewerDlg(std::string
const& conf, QDialog* parent =
nullptr);
67 void onNewMsg(msg_ptr_t
const& mfmsg);
85 void setSuppression(QAction* act);
87 void setThrottling(QAction* act);
89 void tabWidgetCurrentChanged(
int newTab);
91 void tabCloseRequested(
int tabIndex);
93 void scrollToBottom();
104 void displayMsgs(
int display);
106 void UpdateTextAreaDisplay(QStringList
const& texts, QPlainTextEdit* widget);
108 void updateDisplays();
110 void trim_msg_pool();
113 bool msg_throttled(msg_ptr_t
const& mfmsg);
115 void update_index(msg_ptr_t
const& msg);
120 bool updateList(QListWidget* lw, msgs_map_t
const& map);
122 void displayMsg(msg_ptr_t
const& msg,
int display);
126 void writeSettings();
128 void parseConf(fhicl::ParameterSet
const& conf);
130 QStringList toQStringList(QList<QListWidgetItem*> in);
132 msgs_t list_intersect(msgs_t
const& l1, msgs_t
const& l2);
146 size_t maxDeletedMsgs;
153 std::vector<suppress> e_sup_host;
154 std::vector<suppress> e_sup_app;
155 std::vector<suppress> e_sup_cat;
158 std::vector<throttle> e_thr_host;
159 std::vector<throttle> e_thr_app;
160 std::vector<throttle> e_thr_cat;
166 mutable std::mutex msg_pool_mutex_;
170 mutable std::mutex msg_classification_mutex_;
171 msgs_map_t host_msgs_;
172 msgs_map_t cat_msgs_;
173 msgs_map_t app_msgs_;
182 mutable std::mutex filter_mutex_;
183 struct MsgFilterDisplay
186 int nDisplayedDeletedMsgs;
188 QStringList hostFilter;
189 QStringList appFilter;
190 QStringList catFilter;
191 QString filterExpression;
192 QPlainTextEdit* txtDisplay;
195 sev_code_t sevThresh;
197 std::vector<MsgFilterDisplay> msgFilters_;
void exit()
Exit the program.
The ReceiverManager loads one or more receiver plugins and displays messages received by those plugin...
void clear()
Clear the message buffer.
msgViewerDlg(std::string const &conf, QDialog *parent=nullptr)
Message Viewer Dialog Constructor.
Message Viewer Dialog Window
void pause()
Pause message receiving.
void changeSeverity(int sev)
Change the severity threshold.
void shortMode()
Switch to/from Short message mode.
void closeEvent(QCloseEvent *event)
Perform actions on window close.