casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
casa::TBArrayPanel Class Reference

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

#include <TBViewArray.qo.h>

Inheritance diagram for casa::TBArrayPanel:

Public Slots

void removeActionsAssociatedWithArrays ()
 Removes any actions in the browser that are associated with any of the arrays in this panel. More...
 

Signals

void allArraysClosed ()
 This signal is emitted when the user presses "close" on all the currently opened arrays in this panel. More...
 

Public Member Functions

 TBArrayPanel (TBTableTabs *tt)
 Constructor that takes the table backend. More...
 
 ~TBArrayPanel ()
 
bool addArray (TBViewArray *array, int colIndex)
 Adds the given TBViewArray widget to this panel and returns whether it succeeded or not. More...
 
void setShouldRelease (bool b)
 Calls setShouldRelease on all TBViewArrays in this panel. More...
 
void applyFormat (TBFormat *format, int colIndex)
 Applies the given format to any TBViewArray with the given index. More...
 

Private Slots

void closeRequested (QWidget *widget)
 Slot for when the user closes an individual array. More...
 

Private Member Functions

void removeActionsAssociatedWithArray (TBViewArray *array)
 Removes any actions in the browser that are associate with the given array in this panel. More...
 

Private Attributes

TBTableTabsttabs
 casacore::Table backend. More...
 
std::vector< TBViewArray * > arrays
 casacore::List of opened arrays. More...
 
std::vector< QCloseableWidget * > widgets
 casacore::List of wrapper widgets. More...
 
std::vector< int > indices
 casacore::Array indices. More...
 
QSplitter splitter
 Splitter to hold the opened arrays. More...
 

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 199 of file TBViewArray.qo.h.

Constructor & Destructor Documentation

casa::TBArrayPanel::TBArrayPanel ( TBTableTabs tt)

Constructor that takes the table backend.

casa::TBArrayPanel::~TBArrayPanel ( )

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.

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

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.

Member Data Documentation

std::vector<TBViewArray*> casa::TBArrayPanel::arrays
private

casacore::List of opened arrays.

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

std::vector<int> casa::TBArrayPanel::indices
private

casacore::Array indices.

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

QSplitter casa::TBArrayPanel::splitter
private

Splitter to hold the opened arrays.

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

TBTableTabs* casa::TBArrayPanel::ttabs
private

casacore::Table backend.

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

std::vector<QCloseableWidget*> casa::TBArrayPanel::widgets
private

casacore::List of wrapper widgets.

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


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