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

OpenEtext Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-gutenbrowser/openetext.h>

Collaboration diagram for OpenEtext:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OpenEtext (QWidget *parent, QString name)
 ~OpenEtext ()
void getTitles ()
void remFile ()
void removeSelection ()
QString titleFromLibrary (const QString fileName)
bool FindTitle (const QString filename)
bool checkConf ()

Public Attributes

QPushButton * RemoveButton
QPushButton * OpenFileButton
QPushButton * OpenButton
QPushButton * scanButton
QPushButton * editButton
QString title
QString file
QString selFile
QString s_numofFiles
QString fileName
QString name
QString openFileTitle
QStringList fileList
QString local_library
QString local_index
QString title_text

Protected Member Functions

void initDialog ()

Protected Attributes

QListBox * QListBox_1
QPushButton * QPushButton_OK
QPushButton * QPushButton_Cancel
QLabel * QLabel_1

Private Slots

virtual void select_title (int index)
virtual void remove ()
virtual void scan ()
virtual void open ()
virtual void OpenTitle ()
virtual void editTitle ()

Detailed Description

Author:
llornkcor

Definition at line 34 of file openetext.h.


Constructor & Destructor Documentation

OpenEtext::OpenEtext QWidget *  parent,
QString  name
 

Definition at line 40 of file openetext.cpp.

References getTitles(), QDir::homeDirPath(), initDialog(), local_index, local_library, QListBox_1, and select_title().

OpenEtext::~OpenEtext  ) 
 

Definition at line 50 of file openetext.cpp.


Member Function Documentation

bool OpenEtext::checkConf  ) 
 

Definition at line 359 of file openetext.cpp.

References fileName, i, Config::readEntry(), s_numofFiles, Config::setGroup(), QString::setNum(), and QString::toInt().

Referenced by FindTitle().

void OpenEtext::editTitle  )  [private, virtual, slot]
 

Definition at line 484 of file openetext.cpp.

References i, Edit_Title::newTitle, QListBox_1, QPEApplication::qpeDir(), Config::readEntry(), s_numofFiles, selFile, Config::setGroup(), QString::setNum(), title_text, QString::toInt(), TRUE, and Config::writeEntry().

Referenced by initDialog().

bool OpenEtext::FindTitle const QString  filename  ) 
 

Definition at line 216 of file openetext.cpp.

References checkConf(), QTextStream::eof(), FALSE, QFileInfo::fileName(), QString::find(), i, IO_ReadOnly, QString::left(), QString::length(), QString::mid(), name, odebug, oendl, QFile::open(), printf, Config::readEntry(), QTextStream::readLine(), s_numofFiles, Config::setGroup(), QString::setNum(), QString::stripWhiteSpace(), title, titleFromLibrary(), QString::toInt(), TRUE, and Config::writeEntry().

Referenced by open().

void OpenEtext::getTitles  ) 
 

Definition at line 54 of file openetext.cpp.

References i, QString::isEmpty(), QLabel_1, QListBox_1, QPEApplication::qpeDir(), Config::readEntry(), s_numofFiles, Config::setGroup(), QString::setNum(), title, QString::toInt(), and tr.

Referenced by open(), OpenEtext(), and remove().

void OpenEtext::initDialog  )  [protected]
 

Definition at line 23 of file openetextdata.cpp.

References editButton, editTitle(), local_index, local_library, open(), OpenButton, OpenFileButton, OpenTitle(), QLabel_1, QListBox_1, remove(), RemoveButton, scan(), scanButton, TabFocus, and TRUE.

Referenced by OpenEtext().

void OpenEtext::open  )  [private, virtual, slot]
 

Definition at line 105 of file openetext.cpp.

References QPEApplication::documentDir(), FALSE, fileName, QFileInfo::fileName(), FindTitle(), OFileDialog::getOpenFileName(), getTitles(), QDir::homeDirPath(), QMap< Key, T >::insert(), QString::isEmpty(), QString::latin1(), QString::left(), QString::length(), local_library, QString::null, odebug, oendl, OpenFileButton, QListBox_1, Config::readEntry(), QString::replace(), QString::right(), AppLnk::setComment(), AppLnk::setExec(), AppLnk::setFile(), AppLnk::setIcon(), AppLnk::setName(), AppLnk::setType(), str, text, title, tr, TRUE, and AppLnk::writeLink().

Referenced by initDialog().

void OpenEtext::OpenTitle  )  [private, virtual, slot]
 

Definition at line 78 of file openetext.cpp.

References message, QListBox_1, and select_title().

Referenced by initDialog().

void OpenEtext::remFile  ) 
 

Definition at line 444 of file openetext.cpp.

References i, QString::isEmpty(), QListBox_1, Config::readEntry(), Config::removeEntry(), s_numofFiles, selFile, Config::setGroup(), QString::setNum(), QString::toInt(), and Config::writeEntry().

void OpenEtext::remove  )  [private, virtual, slot]
 

Definition at line 380 of file openetext.cpp.

References getTitles(), QListBox_1, removeSelection(), QString::stripWhiteSpace(), title_text, and tr.

Referenced by initDialog().

void OpenEtext::removeSelection  ) 
 

Definition at line 400 of file openetext.cpp.

References i, QString::isEmpty(), Config::readEntry(), rem, Config::removeEntry(), s_numofFiles, selFile, Config::setGroup(), QString::setNum(), title_text, QString::toInt(), and Config::writeEntry().

Referenced by remove().

void OpenEtext::scan  )  [private, virtual, slot]
 

Definition at line 478 of file openetext.cpp.

References QListBox_1, and TRUE.

Referenced by initDialog().

void OpenEtext::select_title int  index  )  [private, virtual, slot]
 

Definition at line 89 of file openetext.cpp.

References OpenButton, openFileTitle, QListBox_1, Config::readEntry(), Config::setGroup(), QString::setNum(), title, and TRUE.

Referenced by OpenEtext(), and OpenTitle().

QString OpenEtext::titleFromLibrary const QString  fileName  ) 
 

Definition at line 312 of file openetext.cpp.

References QTextStream::atEnd(), FALSE, QString::find(), QString::findRev(), IO_ReadOnly, QString::left(), QString::length(), local_index, QString::mid(), odebug, oendl, QFile::open(), QTextStream::readLine(), QString::right(), QString::stripWhiteSpace(), title, QString::toInt(), and TRUE.

Referenced by FindTitle().


Member Data Documentation

QPushButton * OpenEtext::editButton
 

Definition at line 40 of file openetext.h.

Referenced by initDialog().

QString OpenEtext::file
 

Definition at line 43 of file openetext.h.

Referenced by Gutenbrowser::OpenBtn().

QStringList OpenEtext::fileList
 

Definition at line 49 of file openetext.h.

QString OpenEtext::fileName
 

Definition at line 46 of file openetext.h.

Referenced by checkConf(), and open().

QString OpenEtext::local_index
 

Definition at line 51 of file openetext.h.

Referenced by initDialog(), OpenEtext(), and titleFromLibrary().

QString OpenEtext::local_library
 

Definition at line 50 of file openetext.h.

Referenced by initDialog(), open(), and OpenEtext().

QString OpenEtext::name
 

Definition at line 47 of file openetext.h.

Referenced by FindTitle().

QPushButton * OpenEtext::OpenButton
 

Definition at line 40 of file openetext.h.

Referenced by initDialog(), and select_title().

QPushButton * OpenEtext::OpenFileButton
 

Definition at line 40 of file openetext.h.

Referenced by initDialog(), and open().

QString OpenEtext::openFileTitle
 

Definition at line 48 of file openetext.h.

Referenced by Gutenbrowser::OpenBtn(), and select_title().

QLabel* OpenEtext::QLabel_1 [protected]
 

Definition at line 66 of file openetext.h.

Referenced by getTitles(), and initDialog().

QListBox* OpenEtext::QListBox_1 [protected]
 

Definition at line 63 of file openetext.h.

Referenced by editTitle(), getTitles(), initDialog(), open(), OpenEtext(), OpenTitle(), remFile(), remove(), scan(), and select_title().

QPushButton* OpenEtext::QPushButton_Cancel [protected]
 

Definition at line 65 of file openetext.h.

QPushButton* OpenEtext::QPushButton_OK [protected]
 

Definition at line 64 of file openetext.h.

QPushButton* OpenEtext::RemoveButton
 

Definition at line 40 of file openetext.h.

Referenced by initDialog().

QString OpenEtext::s_numofFiles
 

Definition at line 45 of file openetext.h.

Referenced by checkConf(), editTitle(), FindTitle(), getTitles(), remFile(), and removeSelection().

QPushButton * OpenEtext::scanButton
 

Definition at line 40 of file openetext.h.

Referenced by initDialog().

QString OpenEtext::selFile
 

Definition at line 44 of file openetext.h.

Referenced by editTitle(), remFile(), and removeSelection().

QString OpenEtext::title
 

Definition at line 42 of file openetext.h.

Referenced by FindTitle(), getTitles(), open(), select_title(), and titleFromLibrary().

QString OpenEtext::title_text
 

Definition at line 52 of file openetext.h.

Referenced by editTitle(), remove(), and removeSelection().


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