casa
$Rev:20696$
|
Panel that can hold multiple TBViewArray widgets. More...
#include <TBViewArray.qo.h>
Public Slots | |
void | removeActionsAssociatedWithArrays () |
Removes any actions in the browser that are associated with any of the arrays in this panel. | |
Signals | |
void | allArraysClosed () |
This signal is emitted when the user presses "close" on all the currently opened arrays in this panel. | |
Public Member Functions | |
TBArrayPanel (TBTableTabs *tt) | |
Constructor that takes the table backend. | |
~TBArrayPanel () | |
bool | addArray (TBViewArray *array, int colIndex) |
Adds the given TBViewArray widget to this panel and returns whether it succeeded or not. | |
void | setShouldRelease (bool b) |
Calls setShouldRelease on all TBViewArrays in this panel. | |
void | applyFormat (TBFormat *format, int colIndex) |
Applies the given format to any TBViewArray with the given index. | |
Private Slots | |
void | closeRequested (QWidget *widget) |
Slot for when the user closes an individual array. | |
Private Member Functions | |
void | removeActionsAssociatedWithArray (TBViewArray *array) |
Removes any actions in the browser that are associate with the given array in this panel. | |
Private Attributes | |
TBTableTabs * | ttabs |
Table backend. | |
vector< TBViewArray * > | arrays |
List of opened arrays. | |
vector< QCloseableWidget * > | widgets |
List of wrapper widgets. | |
vector< int > | indices |
Array indices. | |
QSplitter | splitter |
Splitter to hold the opened arrays. |
Panel that can hold multiple TBViewArray widgets.
TBArrayPanel is the widget that is actually shown in the side panel and consists of one or more TBViewArray widgets. When the user double-clicks on another array, it is added to the TBArrayPanel. When the panel is closed, it closes all the TBViewArray widgets as well.
Definition at line 202 of file TBViewArray.qo.h.
Constructor that takes the table backend.
bool casa::TBArrayPanel::addArray | ( | TBViewArray * | array, |
int | colIndex | ||
) |
Adds the given TBViewArray widget to this panel and returns whether it succeeded or not.
If the given array is already being displayed (see TBArray::sameLocationAs(), false is returned.
void casa::TBArrayPanel::allArraysClosed | ( | ) | [signal] |
This signal is emitted when the user presses "close" on all the currently opened arrays in this panel.
The caller should then close the panel itself.
void casa::TBArrayPanel::applyFormat | ( | TBFormat * | format, |
int | colIndex | ||
) |
Applies the given format to any TBViewArray with the given index.
void casa::TBArrayPanel::closeRequested | ( | QWidget * | widget | ) | [private, slot] |
Slot for when the user closes an individual array.
void casa::TBArrayPanel::removeActionsAssociatedWithArray | ( | TBViewArray * | array | ) | [private] |
Removes any actions in the browser that are associate with the given array in this panel.
void casa::TBArrayPanel::removeActionsAssociatedWithArrays | ( | ) | [slot] |
Removes any actions in the browser that are associated with any of the arrays in this panel.
void casa::TBArrayPanel::setShouldRelease | ( | bool | b | ) |
Calls setShouldRelease on all TBViewArrays in this panel.
vector<TBViewArray*> casa::TBArrayPanel::arrays [private] |
List of opened arrays.
Definition at line 239 of file TBViewArray.qo.h.
vector<int> casa::TBArrayPanel::indices [private] |
Array indices.
Definition at line 245 of file TBViewArray.qo.h.
QSplitter casa::TBArrayPanel::splitter [private] |
Splitter to hold the opened arrays.
Definition at line 248 of file TBViewArray.qo.h.
TBTableTabs* casa::TBArrayPanel::ttabs [private] |
Table backend.
Definition at line 236 of file TBViewArray.qo.h.
vector<QCloseableWidget*> casa::TBArrayPanel::widgets [private] |
List of wrapper widgets.
Definition at line 242 of file TBViewArray.qo.h.