Navigator Class Reference

#include <Navigator.h>

List of all members.

Public Slots

void upDirectory ()
void fileSelection (QListBoxItem *)
void checkDirectory (QListBoxItem *)
void updateList ()
void doKeyPress (QKeyEvent *)
void slotMouseClicked (int, QListBoxItem *, const QPoint &)

Signals

void fileSelected (QString)
void noSelection ()
void keyPress (int, int)
void signalKeyPressed (int, int, int, int, QString)
void fileOpened (QString)

Public Member Functions

 Navigator (QWidget *, QString &)
 ~Navigator ()
void getFileSelection (QString &)
void setDirectory (QString &)
void getCurrentPath (QString &)
void setFilter (QString &)
void setId (int)
void setKeyFlag (bool)
void setHome ()
bool isSelected ()
void setNavItem (QString)

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *)

Protected Attributes

QString basePath
QDir currentDir
int id
bool keyFlag
bool selectedFlag


Detailed Description

Definition at line 29 of file Navigator.h.


Constructor & Destructor Documentation

Navigator::Navigator ( QWidget *  w,
QString &  bp 
)

Definition at line 26 of file Navigator.cpp.

References basePath, checkDirectory(), currentDir, fileSelection(), keyFlag, selectedFlag, and slotMouseClicked().

Navigator::~Navigator (  ) 

Definition at line 50 of file Navigator.cpp.


Member Function Documentation

void Navigator::fileSelected ( QString   )  [signal]

Referenced by fileSelection().

void Navigator::noSelection (  )  [signal]

Referenced by checkDirectory(), fileSelection(), setDirectory(), setFilter(), and upDirectory().

void Navigator::keyPress ( int  ,
int   
) [signal]

Referenced by doKeyPress().

void Navigator::signalKeyPressed ( int  ,
int  ,
int  ,
int  ,
QString   
) [signal]

Referenced by keyPressEvent().

void Navigator::fileOpened ( QString   )  [signal]

Referenced by checkDirectory(), and setFilter().

void Navigator::getFileSelection ( QString &  s  ) 

Definition at line 153 of file Navigator.cpp.

References currentDir.

Referenced by ChartPage::addToGroup(), checkDirectory(), GroupPage::deleteChart(), ChartPage::deleteChartQuick(), ChartPage::editChart(), fileSelection(), and setFilter().

void Navigator::setDirectory ( QString &  d  ) 

Definition at line 160 of file Navigator.cpp.

References currentDir, noSelection(), selectedFlag, and updateList().

Referenced by ChartPage::ChartPage(), checkDirectory(), GroupPage::GroupPage(), GroupPage::renameGroup(), ChartPage::setChartNavItem(), GroupPage::setGroupNavItem(), and setHome().

void Navigator::getCurrentPath ( QString &  d  ) 

Definition at line 173 of file Navigator.cpp.

References currentDir.

Referenced by GroupPage::addGroupItem(), ChartPage::deleteChart(), GroupPage::deleteGroup(), GroupPage::deleteGroupItem(), ChartPage::dumpSymbol(), ChartPage::exportSymbol(), GroupPage::groupNoSelection(), GroupPage::newGroup(), GroupPage::renameGroup(), ChartPage::~ChartPage(), and GroupPage::~GroupPage().

void Navigator::setFilter ( QString &  d  ) 

Definition at line 207 of file Navigator.cpp.

References currentDir, fileOpened(), getFileSelection(), noSelection(), selectedFlag, and updateList().

Referenced by ChartPage::searchChanged().

void Navigator::setId ( int  d  ) 

Definition at line 231 of file Navigator.cpp.

void Navigator::setKeyFlag ( bool  d  ) 

Definition at line 236 of file Navigator.cpp.

References keyFlag.

void Navigator::setHome (  ) 

Definition at line 241 of file Navigator.cpp.

References basePath, and setDirectory().

Referenced by doKeyPress().

bool Navigator::isSelected (  ) 

Definition at line 252 of file Navigator.cpp.

References selectedFlag.

Referenced by GroupPage::deleteChart(), and ChartPage::deleteChartQuick().

void Navigator::setNavItem ( QString  s  ) 

Definition at line 106 of file Navigator.cpp.

References currentDir.

Referenced by ChartPage::setChartNavItem(), and GroupPage::setGroupNavItem().

void Navigator::upDirectory (  )  [slot]

Definition at line 119 of file Navigator.cpp.

References currentDir, noSelection(), selectedFlag, and updateList().

Referenced by checkDirectory(), and GroupPage::deleteGroup().

void Navigator::fileSelection ( QListBoxItem *  item  )  [slot]

Definition at line 130 of file Navigator.cpp.

References fileSelected(), getFileSelection(), noSelection(), and selectedFlag.

Referenced by Navigator().

void Navigator::checkDirectory ( QListBoxItem *  item  )  [slot]

Definition at line 178 of file Navigator.cpp.

References currentDir, fileOpened(), getFileSelection(), noSelection(), selectedFlag, setDirectory(), and upDirectory().

Referenced by doKeyPress(), Navigator(), and slotMouseClicked().

void Navigator::updateList (  )  [slot]

Definition at line 54 of file Navigator.cpp.

References basePath, and currentDir.

Referenced by GroupPage::addChartToGroup(), GroupPage::addGroupItem(), ChartPage::ChartPage(), GroupPage::deleteChart(), ChartPage::deleteChart(), ChartPage::deleteChartQuick(), GroupPage::deleteGroup(), GroupPage::deleteGroupItem(), GroupPage::GroupPage(), GroupPage::newGroup(), GroupPage::refreshList(), ChartPage::refreshList(), GroupPage::renameGroup(), setDirectory(), setFilter(), and upDirectory().

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

Definition at line 265 of file Navigator.cpp.

References checkDirectory(), keyPress(), and setHome().

Referenced by GroupPage::doKeyPress(), ChartPage::doKeyPress(), and keyPressEvent().

void Navigator::slotMouseClicked ( int  btn,
QListBoxItem *  item,
const QPoint &   
) [slot]

Definition at line 301 of file Navigator.cpp.

References checkDirectory().

Referenced by Navigator().

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

Definition at line 257 of file Navigator.cpp.

References doKeyPress(), keyFlag, and signalKeyPressed().


Member Data Documentation

QString Navigator::basePath [protected]

Definition at line 65 of file Navigator.h.

Referenced by Navigator(), setHome(), and updateList().

QDir Navigator::currentDir [protected]

Definition at line 66 of file Navigator.h.

Referenced by checkDirectory(), getCurrentPath(), getFileSelection(), Navigator(), setDirectory(), setFilter(), setNavItem(), updateList(), and upDirectory().

int Navigator::id [protected]

Definition at line 67 of file Navigator.h.

bool Navigator::keyFlag [protected]

Definition at line 68 of file Navigator.h.

Referenced by keyPressEvent(), Navigator(), and setKeyFlag().

bool Navigator::selectedFlag [protected]

Definition at line 69 of file Navigator.h.

Referenced by checkDirectory(), fileSelection(), isSelected(), Navigator(), setDirectory(), setFilter(), and upDirectory().


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