NavigatorTab Class Reference

#include <NavigatorTab.h>

List of all members.

Public Types

enum  HotKey {
  ChartPanelFocus, GroupPanelFocus, IndicatorPanelFocus, PortfolioPanelFocus,
  TestPanelFocus, ScannerPanelFocus
}

Public Slots

void togglePosition (int)
void buttonPressed (int)
void pressButton (int)
void doKeyPress (QKeyEvent *)
void slotAccel (int)
void recentTab (QString)

Signals

void signalPositionChanged (int)
void signaVisibilityChanged (bool)

Public Member Functions

 NavigatorTab (QWidget *, QMainWindow *)
 ~NavigatorTab ()
void loadSettings ()
void saveSettings ()
int getPosition ()
void addWidget (QWidget *w, int)
void init ()

Protected Slots

void slotTglPosAboutToShow ()

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *)

Private Attributes

int position
QPopupMenu * menu
QPopupMenu * positionMenu
int idMenuLeft
int idMenuRight
QWidgetStack * stack
QButtonGroup * bg
int activeButton
bool isVisible


Detailed Description

Definition at line 31 of file NavigatorTab.h.


Member Enumeration Documentation

enum NavigatorTab::HotKey

Enumerator:
ChartPanelFocus 
GroupPanelFocus 
IndicatorPanelFocus 
PortfolioPanelFocus 
TestPanelFocus 
ScannerPanelFocus 

Definition at line 41 of file NavigatorTab.h.


Constructor & Destructor Documentation

NavigatorTab::NavigatorTab ( QWidget *  w,
QMainWindow *  mw 
)

Definition at line 42 of file NavigatorTab.cpp.

References bg, buttonPressed(), ChartPanelFocus, GroupPanelFocus, idMenuLeft, idMenuRight, IndicatorPanelFocus, loadSettings(), menu, PortfolioPanelFocus, positionMenu, ScannerPanelFocus, slotAccel(), slotTglPosAboutToShow(), stack, TestPanelFocus, and togglePosition().

NavigatorTab::~NavigatorTab (  ) 

Definition at line 133 of file NavigatorTab.cpp.

References menu, and saveSettings().


Member Function Documentation

void NavigatorTab::signalPositionChanged ( int   )  [signal]

Referenced by togglePosition().

void NavigatorTab::signaVisibilityChanged ( bool   )  [signal]

Referenced by init().

void NavigatorTab::loadSettings (  ) 

Definition at line 152 of file NavigatorTab.cpp.

References activeButton, isVisible, RcFile::loadData(), RcFile::NavigatorActiveButton, RcFile::NavigatorPosition, position, and RcFile::ShowSidePanel.

Referenced by NavigatorTab(), and QtstalkerApp::QtstalkerApp().

void NavigatorTab::saveSettings (  ) 

Definition at line 145 of file NavigatorTab.cpp.

References activeButton, RcFile::NavigatorActiveButton, RcFile::NavigatorPosition, position, and RcFile::saveData().

Referenced by ~NavigatorTab().

int NavigatorTab::getPosition (  ) 

Definition at line 160 of file NavigatorTab.cpp.

References position.

Referenced by QtstalkerApp::QtstalkerApp().

void NavigatorTab::addWidget ( QWidget *  w,
int  id 
)

Definition at line 171 of file NavigatorTab.cpp.

References stack.

Referenced by QtstalkerApp::initChartNav(), QtstalkerApp::initGroupNav(), QtstalkerApp::initIndicatorNav(), QtstalkerApp::initPortfolioNav(), QtstalkerApp::initScannerNav(), and QtstalkerApp::initTestNav().

void NavigatorTab::init (  ) 

Definition at line 310 of file NavigatorTab.cpp.

References activeButton, isVisible, pressButton(), and signaVisibilityChanged().

Referenced by QtstalkerApp::QtstalkerApp().

void NavigatorTab::togglePosition ( int  pos  )  [slot]

Definition at line 139 of file NavigatorTab.cpp.

References position, and signalPositionChanged().

Referenced by NavigatorTab(), and QtstalkerApp::QtstalkerApp().

void NavigatorTab::buttonPressed ( int  id  )  [slot]

Definition at line 176 of file NavigatorTab.cpp.

References activeButton, and stack.

Referenced by NavigatorTab(), and pressButton().

void NavigatorTab::pressButton ( int  id  )  [slot]

Definition at line 210 of file NavigatorTab.cpp.

References bg, and buttonPressed().

Referenced by doKeyPress(), init(), and slotAccel().

void NavigatorTab::doKeyPress ( QKeyEvent *  key  )  [slot]

Definition at line 222 of file NavigatorTab.cpp.

References pressButton().

void NavigatorTab::slotAccel ( int  id  )  [slot]

Definition at line 260 of file NavigatorTab.cpp.

References ChartPanelFocus, GroupPanelFocus, IndicatorPanelFocus, PortfolioPanelFocus, pressButton(), ScannerPanelFocus, and TestPanelFocus.

Referenced by NavigatorTab(), and recentTab().

void NavigatorTab::recentTab ( QString  chartPath  )  [slot]

Definition at line 287 of file NavigatorTab.cpp.

References ChartPanelFocus, GroupPanelFocus, and slotAccel().

void NavigatorTab::contextMenuEvent ( QContextMenuEvent *  event  )  [protected, virtual]

Definition at line 165 of file NavigatorTab.cpp.

References menu.

void NavigatorTab::slotTglPosAboutToShow (  )  [protected, slot]

Definition at line 295 of file NavigatorTab.cpp.

References idMenuLeft, idMenuRight, position, and positionMenu.

Referenced by NavigatorTab().


Member Data Documentation

int NavigatorTab::position [private]

Definition at line 74 of file NavigatorTab.h.

Referenced by getPosition(), loadSettings(), saveSettings(), slotTglPosAboutToShow(), and togglePosition().

QPopupMenu* NavigatorTab::menu [private]

Definition at line 75 of file NavigatorTab.h.

Referenced by contextMenuEvent(), NavigatorTab(), and ~NavigatorTab().

QPopupMenu* NavigatorTab::positionMenu [private]

Definition at line 76 of file NavigatorTab.h.

Referenced by NavigatorTab(), and slotTglPosAboutToShow().

int NavigatorTab::idMenuLeft [private]

Definition at line 77 of file NavigatorTab.h.

Referenced by NavigatorTab(), and slotTglPosAboutToShow().

int NavigatorTab::idMenuRight [private]

Definition at line 78 of file NavigatorTab.h.

Referenced by NavigatorTab(), and slotTglPosAboutToShow().

QWidgetStack* NavigatorTab::stack [private]

Definition at line 79 of file NavigatorTab.h.

Referenced by addWidget(), buttonPressed(), and NavigatorTab().

QButtonGroup* NavigatorTab::bg [private]

Definition at line 80 of file NavigatorTab.h.

Referenced by NavigatorTab(), and pressButton().

int NavigatorTab::activeButton [private]

Definition at line 81 of file NavigatorTab.h.

Referenced by buttonPressed(), init(), loadSettings(), and saveSettings().

bool NavigatorTab::isVisible [private]

Definition at line 82 of file NavigatorTab.h.

Referenced by init(), and loadSettings().


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