#include <PortfolioPage.h>
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 |
DBIndex * | chartIndex |
Definition at line 32 of file PortfolioPage.h.
Definition at line 38 of file PortfolioPage.h.
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.
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] |
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] |
void PortfolioPage::slotHelp | ( | ) | [slot] |
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] |
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] |