Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NotesControl Class Reference

#include </home/clem/local/src/opie/noncore/applets/notesapplet/notes.h>

Collaboration diagram for NotesControl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NotesControl (QWidget *parent=0, const char *name=0)
void save ()
void populateBox ()
void load ()

Public Attributes

QPixmap notes
QMultiLineEdit * view
QListBox * box
QPushButton * saveButton
QPushButton * deleteButton
QPushButton * newButton
QString FileNamePath
bool loaded
bool edited
bool doPopulate
bool isNew
bool showMax

Private Slots

void slotSearch ()
void slotShowMax ()
void slotBeamButton ()
void slotBeamFinished (Ir *)
void slotDeleteButton ()
void slotSaveButton ()
void slotDeleteButtonClicked ()
void slotNewButton ()
void boxPressed (int, QListBoxItem *, const QPoint &)
void showMenu ()
void loadDoc (const DocLnk &)
void slotViewEdited ()
void slotBoxSelected (const QString &)

Private Member Functions

void focusOutEvent (QFocusEvent *)
void load (const QString &)

Private Attributes

QTimer menuTimer
DocLnkdoc
QString oldDocName

Constructor & Destructor Documentation

NotesControl::NotesControl QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 52 of file notes.cpp.

References box, boxPressed(), d, deleteButton, doPopulate, edited, QDir::exists(), QDir::homeDirPath(), isNew, load(), loaded, menuTimer, QDir::mkdir(), newButton, odebug, oendl, populateBox(), Config::readBoolEntry(), QPEApplication::RightOnHold, saveButton, Config::setGroup(), QPEApplication::setStylusOperation(), showMax, showMenu(), slotBoxSelected(), slotDeleteButtonClicked(), slotNewButton(), slotSaveButton(), slotViewEdited(), tr, and view.


Member Function Documentation

void NotesControl::boxPressed int  ,
QListBoxItem *  ,
const QPoint & 
[private, slot]
 

Definition at line 207 of file notes.cpp.

References menuTimer, and TRUE.

Referenced by NotesControl().

void NotesControl::focusOutEvent QFocusEvent *   )  [private]
 

Definition at line 241 of file notes.cpp.

References load(), loaded, populateBox(), and save().

void NotesControl::load const QString  )  [private]
 

Definition at line 347 of file notes.cpp.

References QDir::homeDirPath(), QString::isEmpty(), loadDoc(), loaded, name, odebug, oendl, oldDocName, QString::replace(), AppLnk::setFile(), Config::setGroup(), AppLnk::setType(), Config::write(), and Config::writeEntry().

void NotesControl::load  ) 
 

Definition at line 329 of file notes.cpp.

References loadDoc(), loaded, oldDocName, Config::readEntry(), AppLnk::setFile(), Config::setGroup(), AppLnk::setType(), Config::write(), and Config::writeEntry().

Referenced by focusOutEvent(), NotesApplet::mousePressEvent(), NotesControl(), and slotBoxSelected().

void NotesControl::loadDoc const DocLnk  )  [private, slot]
 

Definition at line 371 of file notes.cpp.

References FileManager::loadFile(), odebug, oendl, and view.

Referenced by load().

void NotesControl::populateBox  ) 
 

Definition at line 311 of file notes.cpp.

References QValueList< T >::append(), box, doPopulate, i, list, Config::readEntry(), Config::readNumEntry(), Config::setGroup(), QStringList::sort(), and QString::sprintf().

Referenced by focusOutEvent(), NotesApplet::mousePressEvent(), NotesControl(), save(), slotDeleteButton(), and slotSaveButton().

void NotesControl::save  ) 
 

Definition at line 253 of file notes.cpp.

References doc, doPopulate, edited, QString::find(), QDir::homeDirPath(), i, QString::isEmpty(), QString::left(), QString::length(), AppLnk::linkFile(), QString::mid(), odebug, oendl, oldDocName, populateBox(), Config::readNumEntry(), QString::replace(), FileManager::saveFile(), AppLnk::setFile(), Config::setGroup(), AppLnk::setName(), AppLnk::setType(), QString::simplifyWhiteSpace(), QString::sprintf(), QString::startsWith(), view, Config::write(), and Config::writeEntry().

Referenced by focusOutEvent(), NotesApplet::mousePressEvent(), slotBoxSelected(), and slotNewButton().

void NotesControl::showMenu  )  [private, slot]
 

Definition at line 228 of file notes.cpp.

References pos, slotBeamButton(), slotDeleteButton(), slotSearch(), slotShowMax(), and tr.

Referenced by NotesControl().

void NotesControl::slotBeamButton  )  [private, slot]
 

Definition at line 187 of file notes.cpp.

References box, f, QDir::homeDirPath(), QString::isEmpty(), Ir::send(), slotBeamFinished(), and Ir::supported().

Referenced by showMenu().

void NotesControl::slotBeamFinished Ir  )  [private, slot]
 

Definition at line 203 of file notes.cpp.

Referenced by slotBeamButton().

void NotesControl::slotBoxSelected const QString  )  [private, slot]
 

Definition at line 218 of file notes.cpp.

References edited, load(), loaded, and save().

Referenced by NotesControl().

void NotesControl::slotDeleteButton  )  [private, slot]
 

Definition at line 136 of file notes.cpp.

References box, QPEApplication::documentDir(), f, i, QString::isEmpty(), QString::latin1(), odebug, oendl, populateBox(), Config::readEntry(), Config::readNumEntry(), QFile::remove(), Config::removeEntry(), AppLnk::removeFiles(), Config::setGroup(), QString::sprintf(), view, Config::write(), and Config::writeEntry().

Referenced by showMenu(), and slotDeleteButtonClicked().

void NotesControl::slotDeleteButtonClicked  )  [private, slot]
 

Definition at line 126 of file notes.cpp.

References slotDeleteButton(), tr, and warning().

Referenced by NotesControl().

void NotesControl::slotNewButton  )  [private, slot]
 

Definition at line 179 of file notes.cpp.

References edited, isNew, save(), and view.

Referenced by NotesControl(), and slotSaveButton().

void NotesControl::slotSaveButton  )  [private, slot]
 

Definition at line 121 of file notes.cpp.

References populateBox(), and slotNewButton().

Referenced by NotesControl().

void NotesControl::slotSearch  )  [private, slot]
 

Definition at line 397 of file notes.cpp.

References box, and i.

Referenced by showMenu().

void NotesControl::slotShowMax  )  [private, slot]
 

Definition at line 388 of file notes.cpp.

References Config::setGroup(), showMax, Config::write(), and Config::writeEntry().

Referenced by showMenu().

void NotesControl::slotViewEdited  )  [private, slot]
 

Definition at line 381 of file notes.cpp.

References edited, and loaded.

Referenced by NotesControl().


Member Data Documentation

QListBox* NotesControl::box
 

Definition at line 41 of file notes.h.

Referenced by NotesControl(), populateBox(), slotBeamButton(), slotDeleteButton(), and slotSearch().

QPushButton * NotesControl::deleteButton
 

Definition at line 42 of file notes.h.

Referenced by NotesControl().

DocLnk* NotesControl::doc [private]
 

Definition at line 52 of file notes.h.

Referenced by save().

bool NotesControl::doPopulate
 

Definition at line 44 of file notes.h.

Referenced by NotesApplet::mousePressEvent(), NotesControl(), populateBox(), and save().

bool NotesControl::edited
 

Definition at line 44 of file notes.h.

Referenced by NotesControl(), save(), slotBoxSelected(), slotNewButton(), and slotViewEdited().

QString NotesControl::FileNamePath
 

Definition at line 43 of file notes.h.

bool NotesControl::isNew
 

Definition at line 44 of file notes.h.

Referenced by NotesControl(), and slotNewButton().

bool NotesControl::loaded
 

Definition at line 44 of file notes.h.

Referenced by focusOutEvent(), load(), NotesApplet::mousePressEvent(), NotesControl(), slotBoxSelected(), and slotViewEdited().

QTimer NotesControl::menuTimer [private]
 

Definition at line 51 of file notes.h.

Referenced by boxPressed(), and NotesControl().

QPushButton * NotesControl::newButton
 

Definition at line 42 of file notes.h.

Referenced by NotesControl().

QPixmap NotesControl::notes
 

Definition at line 39 of file notes.h.

QString NotesControl::oldDocName [private]
 

Definition at line 53 of file notes.h.

Referenced by load(), and save().

QPushButton* NotesControl::saveButton
 

Definition at line 42 of file notes.h.

Referenced by NotesControl().

bool NotesControl::showMax
 

Definition at line 45 of file notes.h.

Referenced by NotesApplet::mousePressEvent(), NotesControl(), and slotShowMax().

QMultiLineEdit* NotesControl::view
 

Definition at line 40 of file notes.h.

Referenced by loadDoc(), NotesApplet::mousePressEvent(), NotesControl(), save(), slotDeleteButton(), and slotNewButton().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:41:37 2005 for OPIE by  doxygen 1.4.2