QtiPlot  0.9.8.2
Public Member Functions | Protected Attributes | List of all members
Folder Class Reference

Folder for the project explorer. More...

#include <Folder.h>

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.
Graph3Dplot3D (const QString &name, bool recursive=false)
 Return plot 3D named name or NULL.
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

Detailed Description

Folder for the project explorer.

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 ( )
Graph3D* Folder::plot3D ( const QString &  name,
bool  recursive = false 
)
inline

Return plot 3D named name or NULL.

References window().

void Folder::removeWindow ( MdiSubWindow w)
Folder * Folder::rootFolder ( )

The root of the hierarchy this folder belongs to.

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::folderProperties().

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

Return table named name or NULL.

References window().

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 graph(), matrix(), note(), plot3D(), and table().

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

Member Data Documentation

QString Folder::birthdate
protected

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

MdiSubWindow* Folder::d_active_window
protected

Pointer to the active window in the folder.

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

QString Folder::d_log_info
protected

Referenced by appendLogInfo(), and logInfo().

QList<MdiSubWindow *> Folder::lstWindows
protected
QString Folder::modifDate
protected
FolderListItem* Folder::myFolderListItem
protected

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