return m_textEdit->font();
}
-
+/*
+ * Slot for responding to status dir button on button bar
+ */
void Console::status_dir()
{
QString cmd("status dir");
- consoleCommand(cmd);
+ consoleCommand(cmd);
+}
+
+/*
+ * Slot for responding to messages button on button bar
+ */
+void Console::messages()
+{
+ QString cmd(".messages");
+ consoleCommand(cmd);
}
/*
</attribute>
<addaction name="actionConnect" />
<addaction name="actionStatusDir" />
+ <addaction name="actionMessages" />
<addaction name="actionLabel" />
<addaction name="actionRestore" />
<addaction name="actionRun" />
<string>Close The Current Page</string>
</property>
</action>
+ <action name="actionMessages" >
+ <property name="icon" >
+ <iconset>:images/status.png</iconset>
+ </property>
+ <property name="text" >
+ <string>Messages</string>
+ </property>
+ <property name="statusTip" >
+ <string>Display any messages queued at the director</string>
+ </property>
+ </action>
</widget>
<resources>
<include location="main.qrc" />
/* remove connections to the current console */
disconnect(actionConnect, SIGNAL(triggered()), previousConsole, SLOT(connect()));
disconnect(actionStatusDir, SIGNAL(triggered()), previousConsole, SLOT(status_dir()));
+ disconnect(actionMessages, SIGNAL(triggered()), previousConsole, SLOT(messages()));
disconnect(actionSelectFont, SIGNAL(triggered()), previousConsole, SLOT(set_font()));
QTreeWidgetItem *dirItem = previousConsole->directorTreeItem();
QBrush greyBrush(Qt::lightGray);
connect(actionConnect, SIGNAL(triggered()), m_currentConsole, SLOT(connect()));
connect(actionSelectFont, SIGNAL(triggered()), m_currentConsole, SLOT(set_font()));
connect(actionStatusDir, SIGNAL(triggered()), m_currentConsole, SLOT(status_dir()));
+ connect(actionMessages, SIGNAL(triggered()), m_currentConsole, SLOT(messages()));
/* Set director's tree widget background to magenta for ease of identification */
QTreeWidgetItem *dirItem = m_currentConsole->directorTreeItem();
QBrush magentaBrush(Qt::magenta);