PortfolioPage Class Reference

#include <PortfolioPage.h>

Collaboration diagram for PortfolioPage:

Collaboration graph
[legend]

List of all members.

Public Types

enum  HotKey {
  NewPortfolio, DeletePortfolio, RenamePortfolio, OpenPortfolio,
  Help
}

Public Slots

void openPortfolio ()
void openPortfolio (QString)
void renamePortfolio ()
void newPortfolio ()
void deletePortfolio ()
void portfolioSelected (const QString &)
void rightClick (QListBoxItem *)
void slotHelp ()
void doubleClick (QListBoxItem *)
void updateList ()
void doKeyPress (QKeyEvent *)
void slotAccel (int)

Public Member Functions

 PortfolioPage (QWidget *, DBIndex *)
 ~PortfolioPage ()

Private Member Functions

virtual void keyPressEvent (QKeyEvent *)

Private Attributes

Config config
QPopupMenu * menu
DBIndexchartIndex


Detailed Description

Definition at line 32 of file PortfolioPage.h.


Member Enumeration Documentation

enum PortfolioPage::HotKey

Enumerator:
NewPortfolio 
DeletePortfolio 
RenamePortfolio 
OpenPortfolio 
Help 

Definition at line 38 of file PortfolioPage.h.


Constructor & Destructor Documentation

PortfolioPage::PortfolioPage ( QWidget *  w,
DBIndex i 
)

Definition at line 37 of file PortfolioPage.cpp.

References chartIndex, DeletePortfolio, deletePortfolio(), doubleClick(), Help, menu, NewPortfolio, newPortfolio(), OpenPortfolio, openPortfolio(), portfolioSelected(), RenamePortfolio, renamePortfolio(), rightClick(), slotAccel(), slotHelp(), and updateList().

PortfolioPage::~PortfolioPage (  ) 

Definition at line 65 of file PortfolioPage.cpp.


Member Function Documentation

void PortfolioPage::openPortfolio (  )  [slot]

Definition at line 69 of file PortfolioPage.cpp.

References chartIndex.

Referenced by doKeyPress(), doubleClick(), newPortfolio(), PortfolioPage(), and slotAccel().

void PortfolioPage::openPortfolio ( QString  d  )  [slot]

Definition at line 75 of file PortfolioPage.cpp.

References chartIndex.

void PortfolioPage::renamePortfolio (  )  [slot]

Definition at line 164 of file PortfolioPage.cpp.

References config, Config::getData(), Config::PortfolioPath, portfolioSelected(), and updateList().

Referenced by PortfolioPage(), and slotAccel().

void PortfolioPage::newPortfolio (  )  [slot]

Definition at line 81 of file PortfolioPage.cpp.

References config, Config::getData(), openPortfolio(), Config::PortfolioPath, and updateList().

Referenced by PortfolioPage(), and slotAccel().

void PortfolioPage::deletePortfolio (  )  [slot]

Definition at line 122 of file PortfolioPage.cpp.

References config, Config::getData(), Config::PortfolioPath, portfolioSelected(), and updateList().

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

void PortfolioPage::portfolioSelected ( const QString &  d  )  [slot]

Definition at line 204 of file PortfolioPage.cpp.

References menu.

Referenced by deletePortfolio(), PortfolioPage(), and renamePortfolio().

void PortfolioPage::rightClick ( QListBoxItem *   )  [slot]

Definition at line 220 of file PortfolioPage.cpp.

References menu.

Referenced by PortfolioPage().

void PortfolioPage::slotHelp (  )  [slot]

Definition at line 245 of file PortfolioPage.cpp.

Referenced by PortfolioPage(), and slotAccel().

void PortfolioPage::doubleClick ( QListBoxItem *  item  )  [slot]

Definition at line 237 of file PortfolioPage.cpp.

References openPortfolio().

Referenced by PortfolioPage().

void PortfolioPage::updateList (  )  [slot]

Definition at line 225 of file PortfolioPage.cpp.

References config, Config::getData(), and Config::PortfolioPath.

Referenced by deletePortfolio(), newPortfolio(), PortfolioPage(), and renamePortfolio().

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

Definition at line 257 of file PortfolioPage.cpp.

References deletePortfolio(), DeletePortfolio, NewPortfolio, openPortfolio(), OpenPortfolio, RenamePortfolio, and slotAccel().

Referenced by keyPressEvent().

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

Definition at line 302 of file PortfolioPage.cpp.

References deletePortfolio(), DeletePortfolio, Help, newPortfolio(), NewPortfolio, openPortfolio(), OpenPortfolio, renamePortfolio(), RenamePortfolio, and slotHelp().

Referenced by doKeyPress(), and PortfolioPage().

void PortfolioPage::keyPressEvent ( QKeyEvent *  key  )  [private, virtual]

Definition at line 252 of file PortfolioPage.cpp.

References doKeyPress().


Member Data Documentation

Config PortfolioPage::config [private]

Definition at line 67 of file PortfolioPage.h.

Referenced by deletePortfolio(), newPortfolio(), renamePortfolio(), and updateList().

QPopupMenu* PortfolioPage::menu [private]

Definition at line 68 of file PortfolioPage.h.

Referenced by PortfolioPage(), portfolioSelected(), and rightClick().

DBIndex* PortfolioPage::chartIndex [private]

Definition at line 69 of file PortfolioPage.h.

Referenced by openPortfolio(), and PortfolioPage().


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