All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
QGpGuiTools::RegExpRowSelector Class Reference

Brief description of class still missing. More...

#include <RegExpRowSelector.h>

List of all members.

Public Member Functions

 RegExpRowSelector (QWidget *parent=0)
void setView (QAbstractItemView *view)
 ~RegExpRowSelector ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References QGpCoreTools::tr(), and TRACE.

    : QWidget(parent)
  {
    TRACE;
    QHBoxLayout * hboxLayout=new QHBoxLayout(this);
    hboxLayout->setSpacing(6);
    hboxLayout->setMargin(0);

    _pattern=new QComboBox(this);
    QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
    sizePolicy.setHorizontalStretch(0);
    sizePolicy.setVerticalStretch(0);
    sizePolicy.setHeightForWidth(_pattern->sizePolicy().hasHeightForWidth());
    _pattern->setSizePolicy(sizePolicy);
    _pattern->setEditable(true);
    _pattern->setToolTip(tr("All rows of the above view that contain this regular expression are selected.\n"
                            "Column joints are translated to TAB ('\\t')."));
    connect(_pattern, SIGNAL(editTextChanged(QString)), this, SLOT(patternChanged()));
    hboxLayout->addWidget(_pattern);

    _button=new QToolButton(this);
    _button->setText(tr("Select"));
    _button->setEnabled(false);
    connect(_button, SIGNAL(clicked()), this, SLOT(select()));
    hboxLayout->addWidget(_button);

    _view=0;
  }

Description of destructor still missing

References TRACE.

  {
    TRACE;
  }

Member Function Documentation

void QGpGuiTools::RegExpRowSelector::setView ( QAbstractItemView *  view)

References QGpGuiTools::Settings::getHistory(), and TRACE.

  {
    TRACE;
    ASSERT(!_view);
    _view=view;

    _pattern->addItems(Settings::getHistory(_view->objectName()));
  }

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