console command line entry LineEdit box.
Display and dress up the context sensitive command when a popup menu is pressed
causing a console command to be entered. I'd almost prefer to see if there is a
way to have the command entered be BOLD or something to bring it out.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4598
91ce42f0-d328-0410-95d8-
f526ca767f89
============================================================
DONE:
============================================================
+If the console command line entry docked widget gets the focus, make
+m_currentConsole the top widget by setting the treewidgetitem selected.
+Did this in MainWin::input_line almost better to let the person see
+whatever they want until they hit enter.
+
Set Window titles to reflect what director it is.
Must:: get page selector to follow undocked windows. Otherwise
void Clients::consoleStatusClient()
{
QString cmd("status client=");
- cmd += m_currentlyselected += "\n";
+ cmd += m_currentlyselected;
consoleCommand(cmd);
}
void FileSet::consoleStatusFileSet()
{
QString cmd("status fileset=");
- cmd += m_currentlyselected += "\n";
+ cmd += m_currentlyselected;
consoleCommand(cmd);
// m_console->write_dir(cmd.toUtf8().data());
// m_console->displayToPrompt();
}
m_cmd_history.append(cmdStr);
m_cmd_last = -1;
+ if (treeWidget->currentItem() != getFromHash(m_currentConsole)){
+ treeWidget->setCurrentItem(getFromHash(m_currentConsole));
+ }
}
*/
void Pages::consoleCommand(QString &command)
{
+ m_console->display_text("Context sensitive command :\n\n");
+ m_console->display_text("**** ");
+ m_console->display_text(command + " ****\n");
+ m_console->display_text("Director Response :\n\n");
m_console->write_dir(command.toUtf8().data());
m_console->displayToPrompt();
/* Bring this directors console to the front of the stack */
void Storage::consoleStatusStorage()
{
QString cmd("status storage=");
- cmd += m_currentlyselected += "\n";
+ cmd += m_currentlyselected;
consoleCommand(cmd);
// m_console->write_dir(cmd.toUtf8().data());
// m_console->displayToPrompt();