Public Member Functions | Protected Member Functions
PointageWidget Class Reference

Brief description of class still missing. More...

#include <PointageWidget.h>

List of all members.

Public Member Functions

 PointageWidget (QWidget *parent=0)
 ~PointageWidget ()

Protected Member Functions

void moveEvent (QMoveEvent *)
void resizeEvent (QResizeEvent *)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

PointageWidget::PointageWidget ( QWidget *  parent = 0)

Description of constructor still missing

References QGpCoreTools::PackageInfo::shareDir(), QGpCoreTools::tr(), and TRACE.

  : QWidget(parent)
{
  TRACE;
  setupUi(this);
  const PackageInfo * info=PackageInfo::package("pointage");
  suppliers->setText(info->shareDir()+"/pointage"+tr("/supplier_equivalences.txt"));

  connect(file1, SIGNAL(textChanged(QString)), this, SLOT(readFile1()));
  connect(fileType1, SIGNAL(currentIndexChanged(int)), this, SLOT(readFile1()));
  connect(file2, SIGNAL(textChanged(QString)), this, SLOT(readFile2()));
  connect(fileType2, SIGNAL(currentIndexChanged(int)), this, SLOT(readFile2()));
  connect(suppliers, SIGNAL(textChanged(QString)), this, SLOT(readFile1()));
  connect(suppliers, SIGNAL(textChanged(QString)), this, SLOT(readFile2()));
  connect(&_readers[0], SIGNAL(finished()), this, SLOT(fileReady()));
  connect(&_readers[1], SIGNAL(finished()), this, SLOT(fileReady()));

  // Save last current contract, getWidget does not work because combo box
  // is not yet initialized with the list of contracts, we have to wait
  // fileReady().
  QSettings reg;
  _currentContract=reg.value("DialogOptions/pointage/groupBox_2/contract").toString();
  Settings::getWidget(this, "pointage");

  readFile1();
  readFile2();

  _saveFileOverwriteConfirmed=false;
}

Description of destructor still missing

References TRACE.

{
  TRACE;
  Settings::setWidget(this, "pointage");
}

Member Function Documentation

void PointageWidget::moveEvent ( QMoveEvent *  ) [protected]
{
  Settings::setRect(this, "pointage");
}
void PointageWidget::resizeEvent ( QResizeEvent *  ) [protected]
{
  Settings::setRect(this, "pointage");
}

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