#include <MainMenubar.h>
Public Types | |
enum | MenuAction { Exit, NewIndicator, Options, Grid, Quotes, DataWindow, About, ScaleToScreen, SidePanel, DrawMode, Crosshairs, Help, PaperTrade, AdvancePaperTrade, IndicatorSummary } |
Public Slots | |
void | slotAccel (int) |
void | doKeyPress (QKeyEvent *) |
Signals | |
void | signalExit () |
void | signalGrid (bool) |
void | signalScale (bool) |
void | signalDraw (bool) |
void | signalCrosshairs (bool) |
void | signalSidePanel (bool) |
void | signalNewIndicator () |
void | signalOptions () |
void | signalQuotes () |
void | signalPaperTrade (bool) |
void | signalAdvancePaperTrade () |
Public Member Functions | |
MainMenubar (QMainWindow *) | |
~MainMenubar () | |
void | createMenus () |
QAction * | getAction (int) |
bool | getStatus (int) |
void | setStatus (int, bool) |
void | saveSettings () |
Private Attributes | |
QPopupMenu * | fileMenu |
QPopupMenu * | editMenu |
QPopupMenu * | viewMenu |
QPopupMenu * | toolMenu |
QPopupMenu * | helpMenu |
QIntDict< QAction > | actions |
Definition at line 32 of file MainMenubar.h.
Exit | |
NewIndicator | |
Options | |
Grid | |
Quotes | |
DataWindow | |
About | |
ScaleToScreen | |
SidePanel | |
DrawMode | |
Crosshairs | |
Help | |
PaperTrade | |
AdvancePaperTrade | |
IndicatorSummary |
Definition at line 51 of file MainMenubar.h.
MainMenubar::MainMenubar | ( | QMainWindow * | mw | ) |
Definition at line 40 of file MainMenubar.cpp.
References About, actions, AdvancePaperTrade, createMenus(), Crosshairs, RcFile::Crosshairs, DrawMode, RcFile::DrawMode, Exit, Grid, RcFile::Grid, Help, RcFile::loadData(), NewIndicator, Options, PaperTrade, RcFile::PaperTradeMode, Quotes, ScaleToScreen, RcFile::ScaleToScreen, RcFile::ShowMenuBar, RcFile::ShowSidePanel, SidePanel, signalAdvancePaperTrade(), signalCrosshairs(), signalDraw(), signalExit(), signalGrid(), signalNewIndicator(), signalPaperTrade(), signalScale(), and slotAccel().
MainMenubar::~MainMenubar | ( | ) |
Definition at line 218 of file MainMenubar.cpp.
void MainMenubar::signalExit | ( | ) | [signal] |
Referenced by MainMenubar().
void MainMenubar::signalGrid | ( | bool | ) | [signal] |
Referenced by MainMenubar().
void MainMenubar::signalScale | ( | bool | ) | [signal] |
Referenced by MainMenubar().
void MainMenubar::signalDraw | ( | bool | ) | [signal] |
Referenced by MainMenubar().
void MainMenubar::signalCrosshairs | ( | bool | ) | [signal] |
Referenced by MainMenubar().
void MainMenubar::signalSidePanel | ( | bool | ) | [signal] |
void MainMenubar::signalNewIndicator | ( | ) | [signal] |
Referenced by MainMenubar(), and slotAccel().
void MainMenubar::signalOptions | ( | ) | [signal] |
Referenced by slotAccel().
void MainMenubar::signalQuotes | ( | ) | [signal] |
Referenced by slotAccel().
void MainMenubar::signalPaperTrade | ( | bool | ) | [signal] |
Referenced by MainMenubar().
void MainMenubar::signalAdvancePaperTrade | ( | ) | [signal] |
Referenced by MainMenubar(), and slotAccel().
void MainMenubar::createMenus | ( | ) |
Definition at line 222 of file MainMenubar.cpp.
References About, actions, Crosshairs, DrawMode, editMenu, Exit, fileMenu, Grid, Help, helpMenu, NewIndicator, Options, PaperTrade, Quotes, ScaleToScreen, SidePanel, toolMenu, and viewMenu.
Referenced by MainMenubar().
QAction * MainMenubar::getAction | ( | int | d | ) |
Definition at line 257 of file MainMenubar.cpp.
References actions.
Referenced by slotAccel(), and QtstalkerApp::slotLoadMainToolbarSettings().
bool MainMenubar::getStatus | ( | int | d | ) |
Definition at line 262 of file MainMenubar.cpp.
References actions.
Referenced by QtstalkerApp::addIndicatorButton(), QtstalkerApp::initToolBar(), QtstalkerApp::loadChart(), and saveSettings().
void MainMenubar::setStatus | ( | int | d, | |
bool | f | |||
) |
Definition at line 267 of file MainMenubar.cpp.
References actions.
Referenced by QtstalkerApp::slotHideNav().
void MainMenubar::saveSettings | ( | ) |
Definition at line 272 of file MainMenubar.cpp.
References Crosshairs, RcFile::Crosshairs, DrawMode, RcFile::DrawMode, getStatus(), Grid, RcFile::Grid, PaperTrade, RcFile::PaperTradeMode, RcFile::saveData(), ScaleToScreen, RcFile::ScaleToScreen, RcFile::ShowSidePanel, and SidePanel.
Referenced by QtstalkerApp::slotQuit().
void MainMenubar::slotAccel | ( | int | id | ) | [slot] |
Definition at line 283 of file MainMenubar.cpp.
References AdvancePaperTrade, Crosshairs, DrawMode, getAction(), Grid, NewIndicator, Options, Quotes, ScaleToScreen, SidePanel, signalAdvancePaperTrade(), signalNewIndicator(), signalOptions(), and signalQuotes().
Referenced by doKeyPress(), and MainMenubar().
void MainMenubar::doKeyPress | ( | QKeyEvent * | key | ) | [slot] |
Definition at line 319 of file MainMenubar.cpp.
References AdvancePaperTrade, Crosshairs, DrawMode, Grid, NewIndicator, Options, Quotes, ScaleToScreen, SidePanel, and slotAccel().
QPopupMenu* MainMenubar::fileMenu [private] |
QPopupMenu* MainMenubar::editMenu [private] |
QPopupMenu* MainMenubar::viewMenu [private] |
QPopupMenu* MainMenubar::toolMenu [private] |
QPopupMenu* MainMenubar::helpMenu [private] |
QIntDict<QAction> MainMenubar::actions [private] |
Definition at line 88 of file MainMenubar.h.
Referenced by createMenus(), getAction(), getStatus(), MainMenubar(), and setStatus().