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

Widget to set log events and priority filter. More...

#include <PlotMSLoggerWidget.qo.h>

Inheritance diagram for casa::PlotMSLoggerWidget:
casa::QtEditingWidget

Public Member Functions

 PlotMSLoggerWidget (const casacore::String &filename, int events, casacore::LogMessage::Priority priority, int maxWidth, bool editFilename=true, bool editPriority=true, QWidget *parent=NULL)
 Constructor which takes the maximum width for the widget and an optional parent. More...
 
 ~PlotMSLoggerWidget ()
 Destructor. More...
 
casacore::String filename () const
 Gets/Sets the currently set filename. More...
 
void setFilename (const casacore::String &filename)
 
int events () const
 Gets/Sets the currently set events flag. More...
 
void setEvents (int events)
 
casacore::LogMessage::Priority priority () const
 Gets/Sets the currently set priority. More...
 
void setPriority (casacore::LogMessage::Priority priority)
 
- Public Member Functions inherited from casa::QtEditingWidget
 QtEditingWidget (QWidget *parent=NULL)
 Constructor which takes an optional parent widget. More...
 
virtual ~QtEditingWidget ()
 Destructor. More...
 
virtual void addRadioButtonsToGroup (QButtonGroup *group) const
 Adds any radio buttons in the widget to the given button group. More...
 

Private Slots

void widgetChanged ()
 Slot for when the widget changes. More...
 

Private Attributes

casacore::String itsFilename_
 Last set filename. More...
 
QtFileWidgetitsFilenameWidget_
 Widget for editing filename. More...
 
int itsEvents_
 Last set events flag. More...
 
QtComboCheckBoxitsEventsBox_
 Combo check box for events. More...
 
QList< int > itsEventsIndexValues_
 Event values for the combo box indices. More...
 
casacore::LogMessage::Priority itsPriority_
 Last set priority. More...
 
QComboBox * itsPriorityBox_
 Combo box. More...
 

Additional Inherited Members

- Signals inherited from casa::QtEditingWidget
void changed ()
 This signal should be emitted whenever the user changes any value settings in the GUI. More...
 
void differentFromSet ()
 This signal should be emitted when the user changes any value settings in the GUI AND the new value is different from the last set value. More...
 
void editDone ()
 to change widget focus when editing done More...
 

Detailed Description

Widget to set log events and priority filter.

Definition at line 42 of file PlotMSLoggerWidget.qo.h.

Constructor & Destructor Documentation

casa::PlotMSLoggerWidget::PlotMSLoggerWidget ( const casacore::String filename,
int  events,
casacore::LogMessage::Priority  priority,
int  maxWidth,
bool  editFilename = true,
bool  editPriority = true,
QWidget *  parent = NULL 
)

Constructor which takes the maximum width for the widget and an optional parent.

MUST be created after plotms' extended log types have already been registered with PlotLogger.

casa::PlotMSLoggerWidget::~PlotMSLoggerWidget ( )

Destructor.

Member Function Documentation

int casa::PlotMSLoggerWidget::events ( ) const

Gets/Sets the currently set events flag.

casacore::String casa::PlotMSLoggerWidget::filename ( ) const

Gets/Sets the currently set filename.

casacore::LogMessage::Priority casa::PlotMSLoggerWidget::priority ( ) const

Gets/Sets the currently set priority.

void casa::PlotMSLoggerWidget::setEvents ( int  events)
void casa::PlotMSLoggerWidget::setFilename ( const casacore::String filename)
void casa::PlotMSLoggerWidget::setPriority ( casacore::LogMessage::Priority  priority)
void casa::PlotMSLoggerWidget::widgetChanged ( )
privateslot

Slot for when the widget changes.

Member Data Documentation

int casa::PlotMSLoggerWidget::itsEvents_
private

Last set events flag.

Definition at line 83 of file PlotMSLoggerWidget.qo.h.

QtComboCheckBox* casa::PlotMSLoggerWidget::itsEventsBox_
private

Combo check box for events.

Definition at line 86 of file PlotMSLoggerWidget.qo.h.

QList<int> casa::PlotMSLoggerWidget::itsEventsIndexValues_
private

Event values for the combo box indices.

Definition at line 89 of file PlotMSLoggerWidget.qo.h.

casacore::String casa::PlotMSLoggerWidget::itsFilename_
private

Last set filename.

Definition at line 77 of file PlotMSLoggerWidget.qo.h.

QtFileWidget* casa::PlotMSLoggerWidget::itsFilenameWidget_
private

Widget for editing filename.

Definition at line 80 of file PlotMSLoggerWidget.qo.h.

casacore::LogMessage::Priority casa::PlotMSLoggerWidget::itsPriority_
private

Last set priority.

Definition at line 92 of file PlotMSLoggerWidget.qo.h.

QComboBox* casa::PlotMSLoggerWidget::itsPriorityBox_
private

Combo box.

Definition at line 95 of file PlotMSLoggerWidget.qo.h.


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