Signals | Public Member Functions
RingBrowser Class Reference

Brief description of class still missing. More...

#include <RingBrowser.h>

List of all members.

Signals

void added (int index)
void currentChanged (int index)
void nameChanged (int index, QString name)
void removed (int index)

Public Member Functions

void add ()
const AutocorrRingat (int index) const
void clear ()
int count () const
int current () const
int indexOf (const AutocorrRing &ring)
 RingBrowser (QWidget *parent=0)
void setCurrent (int index)
void setEditable (bool e)
void setRing (int index, const AutocorrRing &ring)
 ~RingBrowser ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

RingBrowser::RingBrowser ( QWidget *  parent = 0)

Description of constructor still missing

References TRACE.

    : QWidget(parent)
{
  TRACE;
  setupUi(this);
}

Description of destructor still missing

References TRACE.

{
  TRACE;
}

Member Function Documentation

void RingBrowser::add ( )

References added(), nameChanged(), setCurrent(), str, and TRACE.

Referenced by AutocorrTargetWidget::load().

{
  TRACE;
  int index=_rings.count();
  _rings.append(AutocorrRing());
  if(index==0) setEnabled(true);
  emit added(index);
  QString str=name(index);
  currentRing->addItem(str);
  if(index>0) setCurrent(index);
  emit nameChanged(index, str);
}
void RingBrowser::added ( int  index) [signal]

Referenced by add().

const AutocorrRing& RingBrowser::at ( int  index) const [inline]

Referenced by AutocorrTargetWidget::curves().

{return _rings.at(index);}

References TRACE.

Referenced by AutocorrTargetWidget::clear().

{
  TRACE;
  _rings.clear();
  currentRing->clear();
  setEnabled(false);
}
int RingBrowser::count ( ) const [inline]

Referenced by AutocorrTargetWidget::curves(), and AutocorrTargetWidget::load().

{return _rings.count();}
int RingBrowser::current ( ) const

References TRACE.

Referenced by AutocorrTargetWidget::load().

{
  TRACE;
  return currentRing->currentIndex();
}
void RingBrowser::currentChanged ( int  index) [signal]
int RingBrowser::indexOf ( const AutocorrRing ring)

References TRACE.

{
  TRACE;
  for(int i=_rings.count() - 1; i >= 0;i-- ) {
    if(_rings.at(i)==ring) {
      return i;
    }
  }
  return -1;
}
void RingBrowser::nameChanged ( int  index,
QString  name 
) [signal]

Referenced by add().

void RingBrowser::removed ( int  index) [signal]
void RingBrowser::setCurrent ( int  index)

References TRACE.

Referenced by add().

{
  TRACE;
  currentRing->setCurrentIndex(index);
}
void RingBrowser::setEditable ( bool  e)

References TRACE.

Referenced by AutocorrTargetWidget::setEditable().

{
  TRACE;
  addRingBut->setEnabled(e);
  if(_rings.count()>0) setEnabled(e);
}
void RingBrowser::setRing ( int  index,
const AutocorrRing ring 
)

References QGpCoreWave::AutocorrRing::maxRadius(), QGpCoreWave::AutocorrRing::minRadius(), and TRACE.

{
  TRACE;
  _rings[index]=ring;
  blockSignals(true);
  minRadiusEdit->setValue(ring.minRadius());
  maxRadiusEdit->setValue(ring.maxRadius());
  blockSignals(false);
  setName(index);
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines