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

mainWindowWidget Class Reference

#include </home/clem/local/src/opie/core/pim/notes/mainwindow.h>

Inheritance diagram for mainWindowWidget:

Inheritance graph
[legend]
Collaboration diagram for mainWindowWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void openFile ()
void deleteFile ()

Public Member Functions

 mainWindowWidget (QWidget *parent=0, const char *name=0, WFlags fl=0)
void refreshList ()

Public Attributes

QListBox * notesList
QDir fileList

Protected Slots

void flush ()
void reload ()
int create ()
bool remove (int uid)
void beam (int uid)
void show (int uid)
void edit (int uid)
void add (const Opie::OPimRecord &)

Private Slots

void slotItemNew ()
void slotItemEdit ()
void slotItemDuplicate ()
void slotItemDelete ()
void slotItemBeam ()
void slotItemFind ()
void slotConfigure ()

Private Member Functions

void editFile (QString filename, int create)
void toBeDone (void)

Private Attributes

int selected
QString fileName
QString documentsDirName

Constructor & Destructor Documentation

mainWindowWidget::mainWindowWidget QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 38 of file mainwindow.cpp.

References QDir::absPath(), QPEApplication::documentDir(), documentsDirName, QDir::exists(), fileList, QDir::mkdir(), notesList, refreshList(), selected, QDir::setPath(), slotItemEdit(), QString::sprintf(), text, and tr.


Member Function Documentation

void mainWindowWidget::add const Opie::OPimRecord  )  [protected, slot]
 

Definition at line 279 of file mainwindow.cpp.

References toBeDone().

void mainWindowWidget::beam int  uid  )  [protected, virtual, slot]
 

beam the record with UID = uid

Implements Opie::OPimMainWindow.

Definition at line 276 of file mainwindow.cpp.

References toBeDone().

int mainWindowWidget::create  )  [protected, virtual, slot]
 

create a new Records and return the uid

Implements Opie::OPimMainWindow.

Definition at line 121 of file mainwindow.cpp.

References documentsDirName, editFile(), name, QString::sprintf(), and true.

Referenced by slotItemNew().

void mainWindowWidget::deleteFile  )  [slot]
 

Definition at line 81 of file mainwindow.cpp.

References documentsDirName, fileList, notesList, refreshList(), QFile::remove(), selected, tr, and warning().

Referenced by slotItemDelete().

void mainWindowWidget::edit int  uid  )  [protected, virtual, slot]
 

edit the record

Implements Opie::OPimMainWindow.

Definition at line 278 of file mainwindow.cpp.

References toBeDone().

void mainWindowWidget::editFile QString  filename,
int  create
[private]
 

Definition at line 101 of file mainwindow.cpp.

References QPEApplication::execDialog(), editWindowWidget::loadFile(), notesList, refreshList(), and selected.

Referenced by create(), and openFile().

void mainWindowWidget::flush  )  [protected, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 273 of file mainwindow.cpp.

References toBeDone().

void mainWindowWidget::openFile  )  [slot]
 

Definition at line 183 of file mainwindow.cpp.

References documentsDirName, editFile(), fileList, notesList, and selected.

Referenced by slotItemEdit().

void mainWindowWidget::refreshList  ) 
 

Definition at line 194 of file mainwindow.cpp.

References QTextStream::atEnd(), QDir::count(), documentsDirName, fileList, QDir::Files, IO_ReadOnly, QString::length(), QDir::Name, notesList, QFile::open(), QTextStream::readLine(), selected, QTextStream::setEncoding(), QDir::setFilter(), QDir::setPath(), QDir::setSorting(), QString::sprintf(), title, tr, QTextStream::UnicodeUTF8, and warning().

Referenced by deleteFile(), editFile(), mainWindowWidget(), and slotItemDuplicate().

void mainWindowWidget::reload  )  [protected, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 274 of file mainwindow.cpp.

References toBeDone().

bool mainWindowWidget::remove int  uid  )  [protected, virtual, slot]
 

remove a record with UID == uid

Implements Opie::OPimMainWindow.

Definition at line 275 of file mainwindow.cpp.

References toBeDone().

void mainWindowWidget::show int  uid  )  [protected, virtual, slot]
 

show the record with UID == uid

Implements Opie::OPimMainWindow.

Definition at line 277 of file mainwindow.cpp.

References toBeDone().

void mainWindowWidget::slotConfigure  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 272 of file mainwindow.cpp.

References toBeDone().

void mainWindowWidget::slotItemBeam  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 264 of file mainwindow.cpp.

References documentsDirName, fileList, notesList, and Ir::send().

void mainWindowWidget::slotItemDelete  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 136 of file mainwindow.cpp.

References deleteFile().

void mainWindowWidget::slotItemDuplicate  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 146 of file mainwindow.cpp.

References documentsDirName, QFile::exists(), fileList, fileName, IO_ReadOnly, IO_WriteOnly, notesList, QFile::open(), QTextStream::read(), refreshList(), QTextStream::setEncoding(), QString::sprintf(), tr, QTextStream::UnicodeUTF8, and warning().

void mainWindowWidget::slotItemEdit  )  [private, virtual, slot]
 

Implements Opie::OPimMainWindow.

Definition at line 131 of file mainwindow.cpp.

References openFile().

Referenced by mainWindowWidget().

void mainWindowWidget::slotItemFind  )  [private, slot]
 

Definition at line 271 of file mainwindow.cpp.

References toBeDone().

void mainWindowWidget::slotItemNew  )  [private, virtual, slot]
 

UI-related slots

Implements Opie::OPimMainWindow.

Definition at line 141 of file mainwindow.cpp.

References create().

void mainWindowWidget::toBeDone void   )  [private]
 

Definition at line 281 of file mainwindow.cpp.

References tr.

Referenced by add(), beam(), edit(), flush(), reload(), remove(), show(), slotConfigure(), and slotItemFind().


Member Data Documentation

QString mainWindowWidget::documentsDirName [private]
 

Definition at line 29 of file mainwindow.h.

Referenced by create(), deleteFile(), mainWindowWidget(), openFile(), refreshList(), slotItemBeam(), and slotItemDuplicate().

QDir mainWindowWidget::fileList
 

Definition at line 17 of file mainwindow.h.

Referenced by deleteFile(), mainWindowWidget(), openFile(), refreshList(), slotItemBeam(), and slotItemDuplicate().

QString mainWindowWidget::fileName [private]
 

Definition at line 28 of file mainwindow.h.

Referenced by slotItemDuplicate().

QListBox* mainWindowWidget::notesList
 

Definition at line 13 of file mainwindow.h.

Referenced by deleteFile(), editFile(), mainWindowWidget(), openFile(), refreshList(), slotItemBeam(), and slotItemDuplicate().

int mainWindowWidget::selected [private]
 

Definition at line 27 of file mainwindow.h.

Referenced by deleteFile(), editFile(), mainWindowWidget(), openFile(), and refreshList().


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