#include <ChartPage.h>
Public Types | |
enum | HotKey { DeleteChart, EditChart, ExportSymbol, DumpSymbol, Help, Tab, DeleteChartQuick, AddToGroup } |
Public Slots | |
void | deleteChart () |
void | editChart () |
void | editChart (QString) |
void | newChart (int) |
void | exportSymbol () |
void | dumpSymbol () |
void | exportChart (QString &, bool) |
void | rightClick (QListBoxItem *) |
void | refreshList () |
void | searchChanged (const QString &) |
void | slotHelp () |
void | doKeyPress (QKeyEvent *) |
void | slotAccel (int) |
void | chartOpened (QString) |
void | deleteChartQuick () |
void | addToGroup () |
void | setChartNavItem (QString, QString) |
Signals | |
void | fileSelected (QString) |
void | signalAddToGroup (QString) |
void | signalReloadChart () |
void | addRecentChart (QString) |
void | removeRecentCharts (QStringList) |
Public Member Functions | |
ChartPage (QWidget *, DBIndex *) | |
~ChartPage () | |
void | exportChart (QString &) |
void | setFocus () |
Protected Attributes | |
Navigator * | nav |
RcFile | rcfile |
QPopupMenu * | menu |
QPopupMenu * | newMenu |
QLineEdit * | search |
DBIndex * | chartIndex |
Definition at line 33 of file ChartPage.h.
enum ChartPage::HotKey |
Definition at line 46 of file ChartPage.h.
ChartPage::ChartPage | ( | QWidget * | w, | |
DBIndex * | i | |||
) |
Definition at line 41 of file ChartPage.cpp.
References AddToGroup, addToGroup(), chartIndex, chartOpened(), RcFile::DataPath, DeleteChart, deleteChart(), DeleteChartQuick, DumpSymbol, dumpSymbol(), EditChart, editChart(), ExportSymbol, exportSymbol(), Help, RcFile::LastChartDir, RcFile::loadData(), menu, nav, newChart(), newMenu, rcfile, rightClick(), search, searchChanged(), Navigator::setDirectory(), slotAccel(), slotHelp(), Tab, and Navigator::updateList().
ChartPage::~ChartPage | ( | ) |
Definition at line 100 of file ChartPage.cpp.
References Navigator::getCurrentPath(), RcFile::LastChartDir, nav, rcfile, and RcFile::saveData().
void ChartPage::fileSelected | ( | QString | ) | [signal] |
Referenced by chartOpened().
void ChartPage::signalAddToGroup | ( | QString | ) | [signal] |
Referenced by addToGroup().
void ChartPage::signalReloadChart | ( | ) | [signal] |
Referenced by editChart().
void ChartPage::addRecentChart | ( | QString | ) | [signal] |
Referenced by chartOpened().
void ChartPage::removeRecentCharts | ( | QStringList | ) | [signal] |
Referenced by deleteChart().
void ChartPage::exportChart | ( | QString & | ) |
Referenced by dumpSymbol(), and exportSymbol().
void ChartPage::setFocus | ( | ) |
void ChartPage::deleteChart | ( | ) | [slot] |
Definition at line 107 of file ChartPage.cpp.
References chartIndex, RcFile::DataPath, DBIndex::deleteChart(), Navigator::getCurrentPath(), RcFile::loadData(), nav, rcfile, removeRecentCharts(), and Navigator::updateList().
Referenced by ChartPage(), and slotAccel().
void ChartPage::editChart | ( | ) | [slot] |
Definition at line 155 of file ChartPage.cpp.
References Navigator::getFileSelection(), and nav.
Referenced by ChartPage(), and slotAccel().
void ChartPage::editChart | ( | QString | symbol | ) | [slot] |
Definition at line 169 of file ChartPage.cpp.
References chartIndex, DBBase::close(), DbPlugin::dbPrefDialog(), DbPlugin::open(), and signalReloadChart().
void ChartPage::newChart | ( | int | id | ) | [slot] |
Definition at line 313 of file ChartPage.cpp.
References chartIndex, DBBase::close(), DbPlugin::createNewCC(), DbPlugin::createNewIndex(), DbPlugin::createNewSpread(), newMenu, and refreshList().
Referenced by ChartPage().
void ChartPage::exportSymbol | ( | ) | [slot] |
Definition at line 187 of file ChartPage.cpp.
References RcFile::DataPath, exportChart(), Navigator::getCurrentPath(), RcFile::Home, RcFile::loadData(), nav, and rcfile.
Referenced by ChartPage(), and slotAccel().
void ChartPage::dumpSymbol | ( | ) | [slot] |
Definition at line 227 of file ChartPage.cpp.
References RcFile::DataPath, exportChart(), Navigator::getCurrentPath(), RcFile::Home, RcFile::loadData(), nav, and rcfile.
Referenced by ChartPage(), and slotAccel().
void ChartPage::exportChart | ( | QString & | path, | |
bool | f | |||
) | [slot] |
Definition at line 266 of file ChartPage.cpp.
References chartIndex, DBBase::close(), DbPlugin::dump(), RcFile::Home, RcFile::loadData(), DbPlugin::open(), and rcfile.
void ChartPage::rightClick | ( | QListBoxItem * | ) | [slot] |
void ChartPage::refreshList | ( | ) | [slot] |
Definition at line 302 of file ChartPage.cpp.
References nav, and Navigator::updateList().
Referenced by newChart(), and QtstalkerApp::slotChartUpdated().
void ChartPage::searchChanged | ( | const QString & | d | ) | [slot] |
Definition at line 307 of file ChartPage.cpp.
References nav, and Navigator::setFilter().
Referenced by ChartPage().
void ChartPage::slotHelp | ( | ) | [slot] |
void ChartPage::doKeyPress | ( | QKeyEvent * | key | ) | [slot] |
Definition at line 386 of file ChartPage.cpp.
References AddToGroup, DeleteChart, deleteChartQuick(), Navigator::doKeyPress(), DumpSymbol, EditChart, ExportSymbol, nav, search, slotAccel(), and Tab.
void ChartPage::slotAccel | ( | int | id | ) | [slot] |
Definition at line 431 of file ChartPage.cpp.
References addToGroup(), AddToGroup, deleteChart(), DeleteChart, deleteChartQuick(), DeleteChartQuick, dumpSymbol(), DumpSymbol, editChart(), EditChart, exportSymbol(), ExportSymbol, Help, nav, search, slotHelp(), and Tab.
Referenced by ChartPage(), and doKeyPress().
void ChartPage::chartOpened | ( | QString | d | ) | [slot] |
Definition at line 291 of file ChartPage.cpp.
References addRecentChart(), and fileSelected().
Referenced by ChartPage().
void ChartPage::deleteChartQuick | ( | ) | [slot] |
Definition at line 346 of file ChartPage.cpp.
References chartIndex, DBIndex::deleteChart(), Navigator::getFileSelection(), Navigator::isSelected(), nav, and Navigator::updateList().
Referenced by doKeyPress(), and slotAccel().
void ChartPage::addToGroup | ( | ) | [slot] |
Definition at line 372 of file ChartPage.cpp.
References Navigator::getFileSelection(), nav, and signalAddToGroup().
Referenced by ChartPage(), and slotAccel().
void ChartPage::setChartNavItem | ( | QString | chartDir, | |
QString | chartName | |||
) | [slot] |
Definition at line 467 of file ChartPage.cpp.
References nav, search, Navigator::setDirectory(), and Navigator::setNavItem().
Navigator* ChartPage::nav [protected] |
Definition at line 83 of file ChartPage.h.
Referenced by addToGroup(), ChartPage(), deleteChart(), deleteChartQuick(), doKeyPress(), dumpSymbol(), editChart(), exportSymbol(), refreshList(), searchChanged(), setChartNavItem(), setFocus(), slotAccel(), and ~ChartPage().
RcFile ChartPage::rcfile [protected] |
Definition at line 84 of file ChartPage.h.
Referenced by ChartPage(), deleteChart(), dumpSymbol(), exportChart(), exportSymbol(), and ~ChartPage().
QPopupMenu* ChartPage::menu [protected] |
QPopupMenu* ChartPage::newMenu [protected] |
QLineEdit* ChartPage::search [protected] |
Definition at line 87 of file ChartPage.h.
Referenced by ChartPage(), doKeyPress(), setChartNavItem(), and slotAccel().
DBIndex* ChartPage::chartIndex [protected] |
Definition at line 88 of file ChartPage.h.
Referenced by ChartPage(), deleteChart(), deleteChartQuick(), editChart(), exportChart(), and newChart().