Qonsole Class Reference

#include <qonsole.h>

Inheritance diagram for Qonsole:

QMainWindow

List of all members.


Detailed Description

Main window of Qonsole.

Definition at line 32 of file qonsole.h.


Public Slots

void LoadDebug (QString text)
void SaveExit ()
void pluginMenuDisplay ()
void populateMenus (QObject *plugin)
void addConfigTab (QWidget *tab, bool first=false)
void addDock (QDockWidget *dock)
void removeDock (bool state)
void on_fileNew_triggered ()
void on_fileOpen_triggered ()
void on_fileSave_triggered ()
void on_fileSaveAs_triggered ()
void on_filePrint_triggered ()
void on_fileExit_triggered ()
void on_editUndo_triggered ()
void on_editRedo_triggered ()
void on_editCut_triggered ()
void on_editCopy_triggered ()
void on_editPaste_triggered ()
void on_helpIndex_triggered ()
void on_helpContents_triggered ()
void on_helpAbout_triggered ()

Public Member Functions

 Qonsole (QSplashScreen *splash, bool Debug, bool BootUser, QString BootFile, bool BootPluginSettings, QString args, QWidget *parent=0, Qt::WFlags f=0)

Public Attributes

QMenuBarmenubar
QMenuhelpMenu
QMenufileMenu
QMenueditMenu
QMenuplugSubMenu
QLinkedList
< QPluginLoader * > 
PluginList
QTabWidgetConfigTabs
QDockWidgetConfigDock
QActionConfigToggle
Config_GroupsConfigGroups
Config_PortmapConfigPortmap
Config_CuesConfigCues
DebugDialogDebugWindow
QIcon debugIcon

Private Slots

void showDebugWindow ()
void ChangeDesk (bool checked)

Private Member Functions

void timerEvent (QTimerEvent *event)
void saveDesks ()
void loadDesks ()
void SaveSettings ()
void LoadForStartup ()
void addToMenu (QObject *plugin, const QStringList &texts, QMenu *menu, const char *member, QActionGroup *actionGroup=0)

Private Attributes

QDateTimeEdittime
QList< QByteArrayDesks
int Desk
BCorebcore
BBoB_AboutaboutDialog
QAssistantClientassistantClient
QDir pluginsDir
QStringList pluginFileNames

Constructor & Destructor Documentation

Qonsole::Qonsole ( QSplashScreen splash,
bool  Debug,
bool  BootUser,
QString  BootFile,
bool  BootPluginSettings,
QString  args,
QWidget parent = 0,
Qt::WFlags  f = 0 
)

Customizing of code for MainWindow.ui - Creates BCore class, makes plugin submenu, loads plugins through BCore, and restores dock settings.

Definition at line 23 of file qonsole.cpp.

References QActionGroup::addAction(), addConfigTab(), addDock(), QMenu::addMenu(), QIcon::addPixmap(), QMainWindow::addToolBar(), QToolBar::addWidget(), BCore::Args, assistantClient, bcore, ChangeDesk(), ConfigCues, ConfigGroups, ConfigPortmap, debugIcon, DebugWindow, Desk, Desks, BCore::init(), BCore::loadConnections(), BCore::loadCues(), loadDesks(), LoadForStartup(), name, QString::number(), plugSubMenu, populateMenus(), QAction::setShortcuts(), showDebugWindow(), QMainWindow::statusBar(), and time.

Here is the call graph for this function:


Member Function Documentation

void Qonsole::timerEvent ( QTimerEvent event  )  [private]

Definition at line 163 of file qonsole.cpp.

References QDateTime::currentDateTime(), and time.

Here is the call graph for this function:

void Qonsole::saveDesks (  )  [private]

Definition at line 245 of file qonsole.cpp.

References QList::at(), bcore, Desks, BCore::settings, and BBoB_Settings::setValue().

Referenced by SaveSettings().

Here is the call graph for this function:

void Qonsole::loadDesks (  )  [private]

Definition at line 228 of file qonsole.cpp.

References bcore, Desks, BBoB_Settings::getValue(), QList::replace(), BCore::settings, and QVariant::toByteArray().

Referenced by Qonsole().

Here is the call graph for this function:

void Qonsole::SaveSettings (  )  [private]

Saves settings through BCore - Saves window geometry and dock states, then calls savePluginSettings.

Definition at line 209 of file qonsole.cpp.

References bcore, BCore::connectionSettings, BCore::cueSettings, Desk, BBoB_Settings::Program, BCore::saveConnections(), BCore::saveCues(), saveDesks(), BCore::savePluginSettings(), BCore::settings, BBoB_Settings::setValue(), and BBoB_Settings::Sync().

Referenced by on_fileExit_triggered(), on_fileSave_triggered(), and SaveExit().

Here is the call graph for this function:

void Qonsole::LoadForStartup (  )  [private]

Loads settings through BCore - Shows last boot time, sets new boot time, and restores window geometry.

Definition at line 172 of file qonsole.cpp.

References QMainWindow::addDockWidget(), bcore, ConfigDock, ConfigTabs, ConfigToggle, BCore::connectionSettings, BCore::cueSettings, QDateTime::currentDateTime(), Desk, BBoB_Settings::getValue(), BCore::settings, BBoB_Settings::setValue(), QDockWidget::setWidget(), QVariant::toByteArray(), QDockWidget::toggleViewAction(), QVariant::toInt(), and QVariant::toString().

Referenced by Qonsole().

Here is the call graph for this function:

void Qonsole::addToMenu ( QObject plugin,
const QStringList texts,
QMenu menu,
const char *  member,
QActionGroup actionGroup = 0 
) [private]

Definition at line 281 of file qonsole.cpp.

References QActionGroup::addAction(), QMenu::addAction(), and QMenu::addMenu().

Referenced by populateMenus().

Here is the call graph for this function:

void Qonsole::LoadDebug ( QString  text  )  [slot]

Definition at line 493 of file qonsole.cpp.

References DebugDialog::addText(), and DebugWindow.

Referenced by main().

void Qonsole::SaveExit (  )  [slot]

Save settings and exit main application

Definition at line 264 of file qonsole.cpp.

References SaveSettings().

void Qonsole::pluginMenuDisplay (  )  [slot]

Called from the plugins menu - Gets the dock from a plugin, and adds to application.

Definition at line 315 of file qonsole.cpp.

References QMainWindow::addDockWidget().

Referenced by populateMenus().

void Qonsole::populateMenus ( QObject plugin  )  [slot]

Given a plugin, this gets commands and creates a menu or submenu for them.

Definition at line 273 of file qonsole.cpp.

References addToMenu(), DisplayInterface::commands(), pluginMenuDisplay(), and plugSubMenu.

Referenced by Qonsole().

void Qonsole::addConfigTab ( QWidget tab,
bool  first = false 
) [slot]

Given a QDialog this adds it to ConfigTabs

Definition at line 341 of file qonsole.cpp.

References QTabWidget::addTab(), ConfigTabs, and QTabWidget::insertTab().

Referenced by Qonsole().

void Qonsole::addDock ( QDockWidget dock  )  [slot]

Given a QDockWidget this sets some needed dock options and adds to MainWindow.

Definition at line 328 of file qonsole.cpp.

References QMainWindow::addDockWidget(), QDockWidget::toggleViewAction(), and QDockWidget::widget().

Referenced by Qonsole().

void Qonsole::removeDock ( bool  state  )  [slot]

Definition at line 351 of file qonsole.cpp.

References QMainWindow::removeDockWidget().

void Qonsole::on_fileNew_triggered (  )  [slot]

Function for File Menu - New

Definition at line 362 of file qonsole.cpp.

void Qonsole::on_fileOpen_triggered (  )  [slot]

Function for File Menu - Open

Definition at line 370 of file qonsole.cpp.

References QFileDialog::getOpenFileName().

void Qonsole::on_fileSave_triggered (  )  [slot]

Function for File Menu - Save

Definition at line 382 of file qonsole.cpp.

References SaveSettings().

void Qonsole::on_fileSaveAs_triggered (  )  [slot]

Function for File Menu - SaveAs

Definition at line 390 of file qonsole.cpp.

void Qonsole::on_filePrint_triggered (  )  [slot]

Function for File Menu - Print

Definition at line 398 of file qonsole.cpp.

void Qonsole::on_fileExit_triggered (  )  [slot]

Function for File Menu - Exit

Definition at line 406 of file qonsole.cpp.

References assistantClient, QAssistantClient::closeAssistant(), and SaveSettings().

void Qonsole::on_editUndo_triggered (  )  [slot]

Function for Edit Menu - Undo

Definition at line 418 of file qonsole.cpp.

void Qonsole::on_editRedo_triggered (  )  [slot]

Function for Edit Menu - Redo

Definition at line 426 of file qonsole.cpp.

void Qonsole::on_editCut_triggered (  )  [slot]

Function for Edit Menu - Cut

Definition at line 434 of file qonsole.cpp.

void Qonsole::on_editCopy_triggered (  )  [slot]

Function for Edit Menu - Copy

Definition at line 442 of file qonsole.cpp.

void Qonsole::on_editPaste_triggered (  )  [slot]

Function for Edit Menu - Paste

Definition at line 450 of file qonsole.cpp.

void Qonsole::on_helpIndex_triggered (  )  [slot]

Function for Help Menu - Index

Definition at line 458 of file qonsole.cpp.

void Qonsole::on_helpContents_triggered (  )  [slot]

Function for Help Menu - Contents

Definition at line 466 of file qonsole.cpp.

References assistantClient, BBOB_HELP_FILE, BBOB_HELP_HTML, and QAssistantClient::showPage().

void Qonsole::on_helpAbout_triggered (  )  [slot]

Function for Help Menu - About

Definition at line 479 of file qonsole.cpp.

References aboutDialog.

void Qonsole::showDebugWindow (  )  [private, slot]

Definition at line 487 of file qonsole.cpp.

References DebugWindow.

Referenced by Qonsole().

void Qonsole::ChangeDesk ( bool  checked  )  [private, slot]

Definition at line 149 of file qonsole.cpp.

References QList::at(), Desk, Desks, QList::replace(), QMainWindow::restoreState(), and QMainWindow::saveState().

Referenced by Qonsole().


Member Data Documentation

QDateTimeEdit* Qonsole::time [private]

Definition at line 36 of file qonsole.h.

Referenced by Qonsole(), and timerEvent().

QList<QByteArray> Qonsole::Desks [private]

Definition at line 39 of file qonsole.h.

Referenced by ChangeDesk(), loadDesks(), Qonsole(), and saveDesks().

int Qonsole::Desk [private]

Definition at line 40 of file qonsole.h.

Referenced by ChangeDesk(), LoadForStartup(), Qonsole(), and SaveSettings().

QMenuBar* Qonsole::menubar

Definition at line 50 of file qonsole.h.

QMenu* Qonsole::helpMenu

Definition at line 51 of file qonsole.h.

QMenu* Qonsole::fileMenu

Definition at line 52 of file qonsole.h.

QMenu* Qonsole::editMenu

Definition at line 53 of file qonsole.h.

QMenu* Qonsole::plugSubMenu

Definition at line 56 of file qonsole.h.

Referenced by populateMenus(), and Qonsole().

QLinkedList<QPluginLoader *> Qonsole::PluginList

Definition at line 59 of file qonsole.h.

QTabWidget* Qonsole::ConfigTabs

Definition at line 62 of file qonsole.h.

Referenced by addConfigTab(), and LoadForStartup().

QDockWidget* Qonsole::ConfigDock

Definition at line 63 of file qonsole.h.

Referenced by LoadForStartup().

QAction* Qonsole::ConfigToggle

Definition at line 64 of file qonsole.h.

Referenced by LoadForStartup().

Config_Groups* Qonsole::ConfigGroups

Definition at line 67 of file qonsole.h.

Referenced by Qonsole().

Config_Portmap* Qonsole::ConfigPortmap

Definition at line 68 of file qonsole.h.

Referenced by Qonsole().

Config_Cues* Qonsole::ConfigCues

Definition at line 69 of file qonsole.h.

Referenced by Qonsole().

DebugDialog* Qonsole::DebugWindow

Definition at line 72 of file qonsole.h.

Referenced by LoadDebug(), myMessageOutput(), Qonsole(), and showDebugWindow().

QIcon Qonsole::debugIcon

Definition at line 73 of file qonsole.h.

Referenced by Qonsole().

BCore* Qonsole::bcore [private]

Definition at line 76 of file qonsole.h.

Referenced by loadDesks(), LoadForStartup(), Qonsole(), saveDesks(), and SaveSettings().

BBoB_About* Qonsole::aboutDialog [private]

Definition at line 77 of file qonsole.h.

Referenced by on_helpAbout_triggered().

QAssistantClient* Qonsole::assistantClient [private]

Definition at line 78 of file qonsole.h.

Referenced by on_fileExit_triggered(), on_helpContents_triggered(), and Qonsole().

QDir Qonsole::pluginsDir [private]

Definition at line 81 of file qonsole.h.

QStringList Qonsole::pluginFileNames [private]

Definition at line 82 of file qonsole.h.


The documentation for this class was generated from the following files:
Generated on Sun Oct 28 22:51:44 2007 for BBoB by  doxygen 1.5.3