IndicatorPage Class Reference

#include <IndicatorPage.h>

Collaboration diagram for IndicatorPage:

Collaboration graph
[legend]

List of all members.

Public Types

enum  HotKey {
  NewIndicatorGroup, DeleteIndicatorGroup, NewIndicator, AddLocalIndicator,
  DeleteIndicator, EditIndicator, MoveIndicator, Help,
  Tab
}

Public Slots

void doubleClick (QListBoxItem *)
void updateList ()
void slotHelp ()
void rightClick (QListBoxItem *)
void newIndicator ()
void editIndicator (QString)
void editIndicator ()
void deleteIndicator ()
void itemSelected (const QString &)
void changeIndicator (QString &)
void slotAccel (int)
void doKeyPress (QKeyEvent *key)
void moveIndicator ()
void slotGroupChanged (int)
void newIndicatorGroup ()
void deleteIndicatorGroup ()
void searchChanged (const QString &)
void addLocalIndicator ()

Signals

void signalDisableIndicator (QString)
void signalEnableIndicator (QString)
void signalEditIndicator (Indicator *)
void signalDeleteIndicator (QString)
void signalNewIndicator (Indicator *)
void signalGroupChanged ()
void signalGroupIsChanging ()
void signalLocalIndicator (QString)

Public Member Functions

 IndicatorPage (QWidget *, DBIndex *)
 ~IndicatorPage ()
void updateGroups ()
QString getIndicatorGroup ()
void setFocus ()
void setChartPath (QString &)
void removeLocalIndicators ()
void addLocalIndicators (QString &)

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *)

Protected Attributes

QListBox * list
QComboBox * group
QPopupMenu * menu
QString baseDir
QString currentGroup
bool updateEnableFlag
QString chartPath
QStringList localIndicators
QLineEdit * search
QDir idir
DBIndexchartIndex
RcFile rcfile


Detailed Description

Definition at line 38 of file IndicatorPage.h.


Member Enumeration Documentation

enum IndicatorPage::HotKey

Enumerator:
NewIndicatorGroup 
DeleteIndicatorGroup 
NewIndicator 
AddLocalIndicator 
DeleteIndicator 
EditIndicator 
MoveIndicator 
Help 
Tab 

Definition at line 54 of file IndicatorPage.h.


Constructor & Destructor Documentation

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

Definition at line 48 of file IndicatorPage.cpp.

References AddLocalIndicator, addLocalIndicator(), baseDir, chartIndex, currentGroup, DeleteIndicator, deleteIndicator(), DeleteIndicatorGroup, deleteIndicatorGroup(), doubleClick(), EditIndicator, editIndicator(), group, Help, idir, RcFile::IndicatorGroup, RcFile::IndicatorPath, itemSelected(), list, RcFile::loadData(), menu, MoveIndicator, moveIndicator(), NewIndicator, newIndicator(), NewIndicatorGroup, newIndicatorGroup(), rcfile, rightClick(), search, searchChanged(), slotAccel(), slotGroupChanged(), slotHelp(), Tab, updateEnableFlag, and updateGroups().

IndicatorPage::~IndicatorPage (  ) 

Definition at line 115 of file IndicatorPage.cpp.


Member Function Documentation

void IndicatorPage::signalDisableIndicator ( QString   )  [signal]

Referenced by changeIndicator(), moveIndicator(), removeLocalIndicators(), and slotGroupChanged().

void IndicatorPage::signalEnableIndicator ( QString   )  [signal]

Referenced by changeIndicator(), moveIndicator(), and updateList().

void IndicatorPage::signalEditIndicator ( Indicator  )  [signal]

Referenced by editIndicator().

void IndicatorPage::signalDeleteIndicator ( QString   )  [signal]

Referenced by deleteIndicator().

void IndicatorPage::signalNewIndicator ( Indicator  )  [signal]

Referenced by addLocalIndicator(), and newIndicator().

void IndicatorPage::signalGroupChanged (  )  [signal]

Referenced by slotGroupChanged().

void IndicatorPage::signalGroupIsChanging (  )  [signal]

Referenced by slotGroupChanged().

void IndicatorPage::signalLocalIndicator ( QString   )  [signal]

Referenced by addLocalIndicators().

void IndicatorPage::updateGroups (  ) 

Definition at line 815 of file IndicatorPage.cpp.

References baseDir, currentGroup, and group.

Referenced by deleteIndicatorGroup(), IndicatorPage(), and newIndicatorGroup().

QString IndicatorPage::getIndicatorGroup (  ) 

Definition at line 838 of file IndicatorPage.cpp.

References currentGroup.

Referenced by QtstalkerApp::loadChart(), QtstalkerApp::slotDeleteIndicator(), QtstalkerApp::slotLoadPlotSizes(), and QtstalkerApp::slotSavePlotSizes().

void IndicatorPage::setFocus (  ) 

Definition at line 843 of file IndicatorPage.cpp.

References list.

void IndicatorPage::setChartPath ( QString &  d  ) 

Definition at line 848 of file IndicatorPage.cpp.

References chartPath.

Referenced by QtstalkerApp::loadChart().

void IndicatorPage::removeLocalIndicators (  ) 

Definition at line 869 of file IndicatorPage.cpp.

References baseDir, currentGroup, and signalDisableIndicator().

Referenced by QtstalkerApp::loadChart(), and QtstalkerApp::slotQuit().

void IndicatorPage::addLocalIndicators ( QString &  d  ) 

Definition at line 853 of file IndicatorPage.cpp.

References baseDir, currentGroup, and signalLocalIndicator().

Referenced by QtstalkerApp::loadChart().

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

Definition at line 638 of file IndicatorPage.cpp.

References changeIndicator().

Referenced by IndicatorPage().

void IndicatorPage::updateList (  )  [slot]

Definition at line 598 of file IndicatorPage.cpp.

References currentGroup, Config::getIndicator(), idir, RcFile::IndicatorPath, itemSelected(), list, RcFile::loadData(), rcfile, signalEnableIndicator(), and updateEnableFlag.

Referenced by addLocalIndicator(), QtstalkerApp::loadChart(), moveIndicator(), QtstalkerApp::QtstalkerApp(), searchChanged(), QtstalkerApp::slotDeleteIndicator(), slotGroupChanged(), and QtstalkerApp::slotNewIndicator().

void IndicatorPage::slotHelp (  )  [slot]

Definition at line 691 of file IndicatorPage.cpp.

Referenced by IndicatorPage(), and slotAccel().

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

Definition at line 698 of file IndicatorPage.cpp.

References menu.

Referenced by IndicatorPage().

void IndicatorPage::newIndicator (  )  [slot]

Definition at line 243 of file IndicatorPage.cpp.

References PrefDialog::addComboItem(), PrefDialog::addIntItem(), PrefDialog::addTextItem(), baseDir, Config::closePlugin(), PrefDialog::createPage(), currentGroup, PrefDialog::getCombo(), Config::getIndicatorList(), Config::getIndicatorPlugin(), IndicatorPlugin::getIndicatorSettings(), PrefDialog::getInt(), IndicatorPlugin::getPluginName(), PrefDialog::getText(), group, IndicatorPlugin::indicatorPrefDialog(), RcFile::LastNewIndicator, RcFile::loadData(), rcfile, RcFile::saveData(), Setting::setData(), Indicator::setFile(), PrefDialog::setHelpFile(), Config::setIndicator(), IndicatorPlugin::setIndicatorSettings(), Indicator::setName(), Indicator::setTabRow(), Indicator::setType(), and signalNewIndicator().

Referenced by IndicatorPage(), and slotAccel().

void IndicatorPage::editIndicator ( QString  d  )  [slot]

Definition at line 432 of file IndicatorPage.cpp.

References baseDir, Config::closePlugin(), currentGroup, Indicator::getEnable(), Config::getIndicator(), Config::getIndicatorPlugin(), IndicatorPlugin::getIndicatorSettings(), IndicatorPlugin::indicatorPrefDialog(), Indicator::setIndicator(), Config::setIndicator(), IndicatorPlugin::setIndicatorSettings(), and signalEditIndicator().

void IndicatorPage::editIndicator (  )  [slot]

Definition at line 426 of file IndicatorPage.cpp.

References list.

Referenced by IndicatorPage(), and slotAccel().

void IndicatorPage::deleteIndicator (  )  [slot]

Definition at line 484 of file IndicatorPage.cpp.

References chartIndex, chartPath, currentGroup, DBIndex::deleteChartObject(), DBIndex::deleteIndicator(), DBIndex::getChartObjects(), RcFile::IndicatorPath, itemSelected(), list, RcFile::loadData(), rcfile, and signalDeleteIndicator().

Referenced by IndicatorPage(), and slotAccel().

void IndicatorPage::itemSelected ( const QString &  d  )  [slot]

Definition at line 119 of file IndicatorPage.cpp.

References menu.

Referenced by deleteIndicator(), deleteIndicatorGroup(), IndicatorPage(), and updateList().

void IndicatorPage::changeIndicator ( QString &  d  )  [slot]

Definition at line 647 of file IndicatorPage.cpp.

References baseDir, currentGroup, Config::getIndicator(), list, Config::setIndicator(), signalDisableIndicator(), and signalEnableIndicator().

Referenced by doubleClick().

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

Definition at line 753 of file IndicatorPage.cpp.

References addLocalIndicator(), AddLocalIndicator, deleteIndicator(), DeleteIndicator, deleteIndicatorGroup(), DeleteIndicatorGroup, editIndicator(), EditIndicator, group, Help, list, moveIndicator(), MoveIndicator, newIndicator(), NewIndicator, newIndicatorGroup(), NewIndicatorGroup, slotHelp(), and Tab.

Referenced by doKeyPress(), and IndicatorPage().

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

Definition at line 708 of file IndicatorPage.cpp.

References AddLocalIndicator, DeleteIndicator, DeleteIndicatorGroup, EditIndicator, MoveIndicator, NewIndicator, NewIndicatorGroup, slotAccel(), and Tab.

Referenced by keyPressEvent().

void IndicatorPage::moveIndicator (  )  [slot]

Definition at line 542 of file IndicatorPage.cpp.

References PrefDialog::addIntItem(), baseDir, PrefDialog::createPage(), currentGroup, Config::getIndicator(), PrefDialog::getInt(), list, PrefDialog::setHelpFile(), Config::setIndicator(), signalDisableIndicator(), signalEnableIndicator(), and updateList().

Referenced by IndicatorPage(), and slotAccel().

void IndicatorPage::slotGroupChanged ( int   )  [slot]

Definition at line 792 of file IndicatorPage.cpp.

References baseDir, currentGroup, group, RcFile::IndicatorGroup, list, rcfile, RcFile::saveData(), signalDisableIndicator(), signalGroupChanged(), signalGroupIsChanging(), updateEnableFlag, and updateList().

Referenced by deleteIndicatorGroup(), and IndicatorPage().

void IndicatorPage::newIndicatorGroup (  )  [slot]

Definition at line 135 of file IndicatorPage.cpp.

References baseDir, and updateGroups().

Referenced by IndicatorPage(), and slotAccel().

void IndicatorPage::deleteIndicatorGroup (  )  [slot]

Definition at line 168 of file IndicatorPage.cpp.

References currentGroup, RcFile::IndicatorPath, itemSelected(), RcFile::loadData(), rcfile, slotGroupChanged(), and updateGroups().

Referenced by IndicatorPage(), and slotAccel().

void IndicatorPage::searchChanged ( const QString &  d  )  [slot]

Definition at line 891 of file IndicatorPage.cpp.

References idir, and updateList().

Referenced by IndicatorPage().

void IndicatorPage::addLocalIndicator (  )  [slot]

Definition at line 375 of file IndicatorPage.cpp.

References PrefDialog::addFileItem(), DBIndex::addIndicator(), chartPath, PrefDialog::createPage(), PrefDialog::getFile(), Config::getIndicator(), RcFile::IndexPath, RcFile::IndicatorPath, RcFile::loadData(), DBBase::open(), rcfile, PrefDialog::setHelpFile(), Indicator::setIndicator(), signalNewIndicator(), and updateList().

Referenced by IndicatorPage(), and slotAccel().

void IndicatorPage::keyPressEvent ( QKeyEvent *  key  )  [protected, virtual]

Definition at line 703 of file IndicatorPage.cpp.

References doKeyPress().


Member Data Documentation

QListBox* IndicatorPage::list [protected]

Definition at line 99 of file IndicatorPage.h.

Referenced by changeIndicator(), deleteIndicator(), editIndicator(), IndicatorPage(), moveIndicator(), setFocus(), slotAccel(), slotGroupChanged(), and updateList().

QComboBox* IndicatorPage::group [protected]

Definition at line 100 of file IndicatorPage.h.

Referenced by IndicatorPage(), newIndicator(), slotAccel(), slotGroupChanged(), and updateGroups().

QPopupMenu* IndicatorPage::menu [protected]

Definition at line 101 of file IndicatorPage.h.

Referenced by IndicatorPage(), itemSelected(), and rightClick().

QString IndicatorPage::baseDir [protected]

Definition at line 102 of file IndicatorPage.h.

Referenced by addLocalIndicators(), changeIndicator(), editIndicator(), IndicatorPage(), moveIndicator(), newIndicator(), newIndicatorGroup(), removeLocalIndicators(), slotGroupChanged(), and updateGroups().

QString IndicatorPage::currentGroup [protected]

Definition at line 103 of file IndicatorPage.h.

Referenced by addLocalIndicators(), changeIndicator(), deleteIndicator(), deleteIndicatorGroup(), editIndicator(), getIndicatorGroup(), IndicatorPage(), moveIndicator(), newIndicator(), removeLocalIndicators(), slotGroupChanged(), updateGroups(), and updateList().

bool IndicatorPage::updateEnableFlag [protected]

Definition at line 104 of file IndicatorPage.h.

Referenced by IndicatorPage(), slotGroupChanged(), and updateList().

QString IndicatorPage::chartPath [protected]

Definition at line 105 of file IndicatorPage.h.

Referenced by addLocalIndicator(), deleteIndicator(), and setChartPath().

QStringList IndicatorPage::localIndicators [protected]

Definition at line 106 of file IndicatorPage.h.

QLineEdit* IndicatorPage::search [protected]

Definition at line 107 of file IndicatorPage.h.

Referenced by IndicatorPage().

QDir IndicatorPage::idir [protected]

Definition at line 108 of file IndicatorPage.h.

Referenced by IndicatorPage(), searchChanged(), and updateList().

DBIndex* IndicatorPage::chartIndex [protected]

Definition at line 109 of file IndicatorPage.h.

Referenced by deleteIndicator(), and IndicatorPage().

RcFile IndicatorPage::rcfile [protected]

Definition at line 110 of file IndicatorPage.h.

Referenced by addLocalIndicator(), deleteIndicator(), deleteIndicatorGroup(), IndicatorPage(), newIndicator(), slotGroupChanged(), and updateList().


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