messages.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef QVLC_MESSAGES_DIALOG_H_
00025 #define QVLC_MESSAGES_DIALOG_H_ 1
00026
00027 #include "util/qvlcframe.hpp"
00028 #include "util/singleton.hpp"
00029
00030 class QTabWidget;
00031 class QPushButton;
00032 class QSpinBox;
00033 class QGridLayout;
00034 class QLabel;
00035 class QTextEdit;
00036 class QTreeWidget;
00037 class QTreeWidgetItem;
00038 class QLineEdit;
00039
00040 class MessagesDialog : public QVLCFrame, public Singleton<MessagesDialog>
00041 {
00042 Q_OBJECT
00043 private:
00044 MessagesDialog( intf_thread_t * );
00045 virtual ~MessagesDialog();
00046
00047 QTabWidget *mainTab;
00048 QSpinBox *verbosityBox;
00049 QLabel *verbosityLabel;
00050 QTextEdit *messages;
00051 QTreeWidget *modulesTree;
00052 QPushButton *clearUpdateButton;
00053 QPushButton *saveLogButton;
00054 QLineEdit *vbobjectsEdit;
00055 QLabel *vbobjectsLabel;
00056 msg_subscription_t *sub;
00057 msg_cb_data_t *cbData;
00058 static void sinkMessage( msg_cb_data_t *, msg_item_t *, unsigned );
00059 void customEvent( QEvent * );
00060 void sinkMessage( msg_item_t *item );
00061
00062 private slots:
00063 void updateTab( int );
00064 void clearOrUpdate();
00065 bool save();
00066 void updateConfig();
00067 private:
00068 void clear();
00069 void updateTree();
00070 void buildTree( QTreeWidgetItem *, vlc_object_t * );
00071
00072 friend class Singleton<MessagesDialog>;
00073 };
00074
00075 #endif