casa::TBView Class Reference
Current "view" or state of the browser that can be serialized.
More...
#include <TBView.h>
List of all members.
Detailed Description
Current "view" or state of the browser that can be serialized.
Synopsis
The TBView defines the state of the browser and includes: the last opened directory, and the TBTableViews of all currently opened tables. TBView has methods to save to and load from a file on disk.
Definition at line 105 of file TBView.h.
Constructor & Destructor Documentation
casa::TBView::~TBView |
( |
|
) |
|
Member Function Documentation
Adds the given table view to this view.
int casa::TBView::chooserHistoryLimit |
( |
|
) |
const |
Gets/Sets the file chooser history limit.
static String casa::TBView::defaultFile |
( |
|
) |
[static] |
static QFontColor* casa::TBView::fontElem |
( |
DOMElement * |
elem |
) |
[static, private] |
Creates a QFontColor based upon the given XML element.
static void casa::TBView::fontElem |
( |
DOMElement * |
elem, |
|
|
QFontColor * |
font | |
|
) |
| | [static, private] |
Creates an XML element based upon the given QFontColor.
String casa::TBView::getLastOpenedDirectory |
( |
|
) |
|
Returns the last opened directory for this view.
std::vector<TBTableView*>* casa::TBView::getTableViews |
( |
|
) |
|
Returns the list of table views in this view.
static TBView* casa::TBView::loadFromDefaultFile |
( |
|
) |
[static] |
static TBView* casa::TBView::loadFromFile |
( |
String |
file |
) |
[static] |
Loads the view saved in the given file and returns it.
If the file is invalid or there are other problems, NULL is returned.
bool casa::TBView::saveToDefaultFile |
( |
|
) |
|
bool casa::TBView::saveToFile |
( |
String |
file |
) |
|
Saves this view in XML format to the given file.
void casa::TBView::setChooserHistoryLimit |
( |
int |
histLimit |
) |
|
void casa::TBView::setLastOpenedDirectory |
( |
String |
str |
) |
|
Sets the last opened directory for this view.
Member Data Documentation
File chooser history limit.
Definition at line 155 of file TBView.h.
Last opened directory.
Definition at line 152 of file TBView.h.
The documentation for this class was generated from the following file: