MainMenubar Class Reference

#include <MainMenubar.h>

List of all members.

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


Detailed Description

Definition at line 32 of file MainMenubar.h.


Member Enumeration Documentation

enum MainMenubar::MenuAction

Enumerator:
Exit 
NewIndicator 
Options 
Grid 
Quotes 
DataWindow 
About 
ScaleToScreen 
SidePanel 
DrawMode 
Crosshairs 
Help 
PaperTrade 
AdvancePaperTrade 
IndicatorSummary 

Definition at line 51 of file MainMenubar.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

QPopupMenu* MainMenubar::fileMenu [private]

Definition at line 83 of file MainMenubar.h.

Referenced by createMenus().

QPopupMenu* MainMenubar::editMenu [private]

Definition at line 84 of file MainMenubar.h.

Referenced by createMenus().

QPopupMenu* MainMenubar::viewMenu [private]

Definition at line 85 of file MainMenubar.h.

Referenced by createMenus().

QPopupMenu* MainMenubar::toolMenu [private]

Definition at line 86 of file MainMenubar.h.

Referenced by createMenus().

QPopupMenu* MainMenubar::helpMenu [private]

Definition at line 87 of file MainMenubar.h.

Referenced by createMenus().

QIntDict<QAction> MainMenubar::actions [private]

Definition at line 88 of file MainMenubar.h.

Referenced by createMenus(), getAction(), getStatus(), MainMenubar(), and setStatus().


The documentation for this class was generated from the following files: