SciDAVis  1.D4
Public Member Functions | Protected Attributes
Folder Class Reference

Folder for the project explorer. More...

#include <Folder.h>

List of all members.

Public Member Functions

MyWidgetactiveWindow ()
void addWindow (MyWidget *w)
QString birthDate ()
FolderfindSubfolder (const QString &s, bool caseSensitive=true, bool partialMatch=false)
 Pointer to the subfolder called s.
MyWidgetfindWindow (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)
FolderListItemfolderListItem ()
 Pointer to the corresponding QListViewItem in the main application.
QList< Folder * > folders () const
 The list of subfolders.
MultiLayergraph (const QString &name, bool recursive=false)
 Return graph named name or NULL.
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 (MyWidget *w)
FolderrootFolder ()
 The root of the hierarchy this folder belongs to.
void setActiveWindow (MyWidget *w)
void setBirthDate (const QString &s)
void setFolderListItem (FolderListItem *it)
void setModificationDate (const QString &s)
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.
MyWidgetwindow (const QString &name, const char *cls="myWidget", bool recursive=false)
 get a window by name
int windowCount (bool recursive=false) const
QList< MyWidget * > windowsList ()

Protected Attributes

QString birthdate
MyWidgetd_active_window
 Pointer to the active window in the folder.
QList< MyWidget * > 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

MyWidget* Folder::activeWindow ( )
inline
void Folder::addWindow ( MyWidget w)
inline
QString Folder::birthDate ( )
inline
Folder * Folder::findSubfolder ( const QString &  s,
bool  caseSensitive = true,
bool  partialMatch = false 
)
MyWidget * Folder::findWindow ( const QString &  s,
bool  windowNames,
bool  labels,
bool  caseSensitive,
bool  partialMatch 
)

Pointer to the first window matching the search criteria.

References lstWindows, MyWidget::name(), and MyWidget::windowLabel().

Referenced by ApplicationWindow::find().

FolderListItem* Folder::folderListItem ( )
inline
QList< Folder * > Folder::folders ( ) const

The list of subfolders.

Referenced by ApplicationWindow::rawSaveFolder(), and windowCount().

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

Return graph named name or NULL.

References window().

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 ( )

The complete path of the folder in the project tree.

Referenced by ApplicationWindow::folderProperties(), FindDialog::setStartPath(), and ApplicationWindow::windowProperties().

void Folder::removeWindow ( MyWidget w)
inline
Folder * Folder::rootFolder ( )

The root of the hierarchy this folder belongs to.

Referenced by MuParserScript::resolveColumnPath(), and MuParserScript::tableColumn__Function().

void Folder::setActiveWindow ( MyWidget w)
inline
void Folder::setBirthDate ( const QString &  s)
inline
void Folder::setFolderListItem ( FolderListItem it)
inline
void Folder::setModificationDate ( const QString &  s)
inline
QStringList Folder::subfolders ( )
Table* Folder::table ( const QString &  name,
bool  recursive = false 
)
inline

Return table named name or NULL.

References window().

Referenced by MuParserScript::resolveColumnPath(), and MuParserScript::tableColumn__Function().

MyWidget * Folder::window ( const QString &  name,
const char *  cls = "myWidget",
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, and MyWidget::name().

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

int Folder::windowCount ( bool  recursive = false) const
inline
QList<MyWidget *> Folder::windowsList ( )
inline

Member Data Documentation

QString Folder::birthdate
protected

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

MyWidget* Folder::d_active_window
protected

Pointer to the active window in the folder.

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

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

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