35 #include <QFontDialog> 41 ros_thread_(argc, argv),
43 window_font_(QFont(
"Ubuntu Mono", 9))
49 qRegisterMetaType<rosgraph_msgs::LogConstPtr>(
"rosgraph_msgs::LogConstPtr");
51 QObject::connect(&
bag_reader_, SIGNAL(logReceived(
const rosgraph_msgs::LogConstPtr& )),
52 &
db_, SLOT(queueMessage(
const rosgraph_msgs::LogConstPtr&) ));
53 QObject::connect(&
bag_reader_, SIGNAL(finishedReading()),
54 &
db_, SLOT(processQueue()));
55 QObject::connect(&
log_reader_, SIGNAL(logReceived(
const rosgraph_msgs::LogConstPtr& )),
56 &
db_, SLOT(queueMessage(
const rosgraph_msgs::LogConstPtr&) ));
57 QObject::connect(&
log_reader_, SIGNAL(finishedReading()),
58 &
db_, SLOT(processQueue()));
78 QObject::connect(&
ros_thread_, SIGNAL(connected(
bool)),
79 win, SLOT(connected(
bool)));
81 QObject::connect(
this,
83 win, SLOT(setFont(
const QFont &)));
88 QObject::connect(win, SIGNAL(readBagFile()),
91 QObject::connect(win, SIGNAL(readLogFile()),
94 QObject::connect(win, SIGNAL(readLogDirectory()),
103 QObject::connect(&
ros_thread_, SIGNAL(logReceived(
const rosgraph_msgs::LogConstPtr& )),
104 &
db_, SLOT(queueMessage(
const rosgraph_msgs::LogConstPtr&) ));
107 &
db_, SLOT(processQueue()));
129 QObject::connect(&dlg, SIGNAL(currentFontChanged(
const QFont &)),
132 int ret = dlg.exec();
134 if (ret == QDialog::Accepted) {
QList< ConsoleWindow * > windows_
void fontSelectionChanged(const QFont &font)
void fontChanged(const QFont &font)
void setFont(const QFont &font)
static const QString FONT
ConsoleMaster(int argc, char **argv)
RosoutLogLoader log_reader_