casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
casa::TBArrayPanel Class Reference

Panel that can hold multiple TBViewArray widgets. More...

#include <TBViewArray.qo.h>

List of all members.

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

TBTableTabsttabs
 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.

Detailed Description

Panel that can hold multiple TBViewArray widgets.

Synopsis

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 & Destructor Documentation

Constructor that takes the table backend.


Member Function Documentation

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.

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.

Removes any actions in the browser that are associate with the given array in this panel.

Removes any actions in the browser that are associated with any of the arrays in this panel.

Calls setShouldRelease on all TBViewArrays in this panel.


Member Data Documentation

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.

Table backend.

Definition at line 236 of file TBViewArray.qo.h.

List of wrapper widgets.

Definition at line 242 of file TBViewArray.qo.h.


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