Folder Class Reference

#include <Folder.h>

List of all members.


Detailed Description

Folder for the project explorer.

Public Member Functions

MdiSubWindowactiveWindow ()
void addWindow (MdiSubWindow *w)
void appendLogInfo (const QString &text)
QString birthDate ()
void clearLogInfo ()
int depth ()
 The depth of the folder in the project tree.
FolderfindSubfolder (const QString &s, bool caseSensitive=true, bool partialMatch=false)
 Pointer to the subfolder called s.
MdiSubWindowfindWindow (const QString &s, bool windowNames, bool labels, bool caseSensitive, bool partialMatch)
 Pointer to the first window matching the search criteria.
 Folder (Folder *parent, const QString &name)
FolderfolderBelow ()
FolderListItemfolderListItem ()
 Pointer to the corresponding QListViewItem in the main application.
QList< Folder * > folders ()
 The list of subfolders.
MultiLayergraph (const QString &name, bool recursive=false)
 Return graph named name or NULL.
QString logInfo ()
Matrixmatrix (const QString &name, bool recursive=false)
 Return matrix named name or NULL.
QString modificationDate ()
Notenote (const QString &name, bool recursive=false)
 Return note named name or NULL.
QString path ()
 The complete path of the folder in the project tree.
void removeWindow (MdiSubWindow *w)
FolderrootFolder ()
 The root of the hierarchy this folder belongs to.
void setActiveWindow (MdiSubWindow *w)
void setBirthDate (const QString &s)
void setFolderListItem (FolderListItem *it)
void setModificationDate (const QString &s)
QString sizeToString ()
 Size of the folder as a string.
QStringList subfolders ()
 The list of subfolder names, including first generation children only.
Tabletable (const QString &name, bool recursive=false)
 Return table named name or NULL.
MdiSubWindowwindow (const QString &name, const char *cls="MdiSubWindow", bool recursive=false)
 get a window by name
QList< MdiSubWindow * > windowsList ()

Protected Attributes

QString birthdate
MdiSubWindowd_active_window
 Pointer to the active window in the folder.
QString d_log_info
QList< MdiSubWindow * > lstWindows
QString modifDate
FolderListItemmyFolderListItem

Constructor & Destructor Documentation

Folder::Folder ( Folder parent,
const QString &  name 
)

References birthdate.


Member Function Documentation

MdiSubWindow* Folder::activeWindow (  )  [inline]

void Folder::addWindow ( MdiSubWindow w  ) 

void Folder::appendLogInfo ( const QString &  text  )  [inline]

QString Folder::birthDate (  )  [inline]

void Folder::clearLogInfo (  )  [inline]

int Folder::depth (  ) 

Folder * Folder::findSubfolder ( const QString &  s,
bool  caseSensitive = true,
bool  partialMatch = false 
)

MdiSubWindow * Folder::findWindow ( const QString &  s,
bool  windowNames,
bool  labels,
bool  caseSensitive,
bool  partialMatch 
)

Pointer to the first window matching the search criteria.

References lstWindows, and MdiSubWindow::windowLabel().

Referenced by ApplicationWindow::find().

Folder * Folder::folderBelow (  ) 

FolderListItem* Folder::folderListItem (  )  [inline]

QList< Folder * > Folder::folders (  ) 

The list of subfolders.

Referenced by folderBelow().

MultiLayer* Folder::graph ( const QString &  name,
bool  recursive = false 
) [inline]

Return graph named name or NULL.

References window().

QString Folder::logInfo (  )  [inline]

Matrix* Folder::matrix ( const QString &  name,
bool  recursive = false 
) [inline]

Return matrix named name or NULL.

References window().

QString Folder::modificationDate (  )  [inline]

Note* Folder::note ( const QString &  name,
bool  recursive = false 
) [inline]

Return note named name or NULL.

References window().

QString Folder::path (  ) 

void Folder::removeWindow ( MdiSubWindow w  ) 

Folder * Folder::rootFolder (  ) 

The root of the hierarchy this folder belongs to.

Referenced by muParserScript::tablecol().

void Folder::setActiveWindow ( MdiSubWindow w  )  [inline]

void Folder::setBirthDate ( const QString &  s  )  [inline]

void Folder::setFolderListItem ( FolderListItem it  )  [inline]

void Folder::setModificationDate ( const QString &  s  )  [inline]

QString Folder::sizeToString (  ) 

Size of the folder as a string.

References lstWindows.

Referenced by ApplicationWindow::addFolderListViewItem(), and ApplicationWindow::folderProperties().

QStringList Folder::subfolders (  ) 

Table* Folder::table ( const QString &  name,
bool  recursive = false 
) [inline]

Return table named name or NULL.

References window().

Referenced by muParserScript::tablecol().

MdiSubWindow * Folder::window ( const QString &  name,
const char *  cls = "MdiSubWindow",
bool  recursive = false 
)

get a window by name

Returns the first window with given name that inherits class cls; NULL on failure. If recursive is true, do a depth-first recursive search.

References lstWindows.

Referenced by ImportOPJ::createProjectTree(), graph(), matrix(), note(), and table().

QList<MdiSubWindow *> Folder::windowsList (  )  [inline]


Member Data Documentation

QString Folder::birthdate [protected]

Referenced by birthDate(), Folder(), and setBirthDate().

Pointer to the active window in the folder.

Referenced by activeWindow(), removeWindow(), and setActiveWindow().

QString Folder::d_log_info [protected]

Referenced by appendLogInfo(), and logInfo().

QList<MdiSubWindow *> Folder::lstWindows [protected]

QString Folder::modifDate [protected]


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

Generated on Sun Jun 15 21:32:22 2008 for QtiPlot by  doxygen 1.5.6