4 #include "mfextensions/Binaries/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>
36 msgViewerDlg(std::string
const& conf, QDialog* parent = 0);
84 void setSuppression(QAction* act);
86 void setThrottling(QAction* act);
88 void tabWidgetCurrentChanged(
int newTab);
90 void tabCloseRequested(
int tabIndex);
96 void displayMsg(
int display);
98 void UpdateTextAreaDisplay(QString text, QTextEdit* widget);
100 void updateDisplays();
102 void removeMsg(msgs_t::iterator it);
105 bool msg_throttled(
qt_mf_msg const& mfmsg);
107 unsigned int update_index(msgs_t::iterator it);
112 template <
typename M>
113 bool updateList(QListWidget* lw, M
const& map);
115 void displayMsg(msgs_t::const_iterator it,
int display);
119 void writeSettings();
121 void parseConf(fhicl::ParameterSet
const& conf);
123 QStringList toQStringList(QList<QListWidgetItem*> in);
125 msg_iters_t list_intersect(msg_iters_t
const& l1, msg_iters_t
const& l2);
139 size_t maxDeletedMsgs;
146 std::vector<suppress> e_sup_host;
147 std::vector<suppress> e_sup_app;
148 std::vector<suppress> e_sup_cat;
151 std::vector<throttle> e_thr_host;
152 std::vector<throttle> e_thr_app;
153 std::vector<throttle> e_thr_cat;
162 msg_iters_map_t host_msgs_;
163 msg_iters_map_t cat_msgs_;
164 msg_iters_map_t app_msgs_;
173 struct MsgFilterDisplay {
175 int nDisplayedDeletedMsgs;
177 QStringList hostFilter;
178 QStringList appFilter;
179 QStringList catFilter;
180 QTextEdit* txtDisplay;
183 sev_code_t sevThresh;
185 std::vector<MsgFilterDisplay> msgFilters_;
187 mutable std::mutex updating_mutex_;
190 enum list_mask_t { LIST_APP = 0x01, LIST_CAT = 0x02, LIST_HOST = 0x04 };
void exit()
Exit the program.
Qt wrapper around MessageFacility message
The ReceiverManager loads one or more receiver plugins and displays messages received by those plugin...
void clear()
Clear the message buffer.
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.
msgViewerDlg(std::string const &conf, QDialog *parent=0)
Message Viewer Dialog Constructor.