Ejemplo n.º 1
0
//-----------------------------------------------------------------------------
DigitalClock::DigitalClock(QWidget *parent)
: KGameLCDClock(parent, "digital_clock")
{
    setFrameStyle(Panel | Sunken);
    setDefaultBackgroundColor(black);
    setDefaultColor(white);
}
Ejemplo n.º 2
0
Preferences::Preferences(QWidget* parent)
: QDialog(parent), lastDirectory("."), m_Data(), m_TemporaryCycleSettings()
{
  this->resetTemporaryCycleSettingsData();
  this->setupUi(this);
  
  connect(this->defaultConfigurationButton, SIGNAL(clicked()), this, SLOT(setDefaultConfiguration()));
  connect(this->defaultBackgroundColorButton, SIGNAL(clicked()), this, SLOT(setDefaultBackgroundColor()));
  connect(this->defaultGridFrontColorButton, SIGNAL(clicked()), this, SLOT(setDefaultGridFrontColor()));
  connect(this->defaultGridBackColorButton, SIGNAL(clicked()), this, SLOT(setDefaultGridBackColor()));
  connect(this->defaultSegmentColorButton, SIGNAL(clicked()), this, SLOT(setDefaultSegmentColor()));
  connect(this->defaultMarkerColorButton, SIGNAL(clicked()), this, SLOT(setDefaultMarkerColor()));
  connect(this->defaultForcePlateColorButton, SIGNAL(clicked()), this, SLOT(setDefaultForcePlateColor()));
  connect(this->defaultForceVectorColorButton, SIGNAL(clicked()), this, SLOT(setDefaultForceVectorColor()));
  connect(this->chartCycleSettingsList, SIGNAL(currentRowChanged(int)), this, SLOT(enableChartCycleButtons(int)));
  connect(this->addChartCycleButton, SIGNAL(clicked()), this, SLOT(addChartCycleSetting()));
  connect(this->removeChartCycleButton, SIGNAL(clicked()), this, SLOT(removeChartCycleSetting()));
  connect(this->editChartCycleButton, SIGNAL(clicked()), this, SLOT(editChartCycleSetting()));
  connect(this->layoutTable, SIGNAL(userLayoutRemoved(int)), this, SLOT(removeUserLayout(int)));
  connect(this->layoutTable, SIGNAL(userLayoutLabelChanged(int, QString)), this, SLOT(relabelUserLayout(int, QString)));
  connect(this->layoutTable, SIGNAL(userLayoutDropped(int, int)), this, SLOT(updateDroppedUserLayouts(int, int)));
  connect(this->defaultTimeBarEventDisplayComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(forceChartUnitAxisX(int)));
  
  this->m_Data[DefaultConfigurationUse] = false;
  this->m_Data[DefaultConfigurationPath] = "";
  this->m_Data[EventEditorWhenInserting] = false;
  this->m_Data[DefaultGroundOrientation] = -1;
  this->m_Data[DefaultTimeBarEventDisplay] = -1;
  this->m_Data[DefaultBackgroundColor] = QColor();
  this->m_Data[DefaultGridBackColor] = QColor();
  this->m_Data[DefaultGridFrontColor] = QColor();
  this->m_Data[DefaultSegmentColor] = QColor();
  this->m_Data[DefaultMarkerColor] = QColor();
  this->m_Data[DefaultMarkerRadius] = -1;
  this->m_Data[DefaultTrajectoryLength] = -1;
  this->m_Data[ForcePlatformAxesDisplay] = -1;
  this->m_Data[ForcePlatformIndexDisplay] = -1;
  this->m_Data[DefaultForcePlateColor] = QColor();
  this->m_Data[DefaultForceVectorColor] = QColor();
  this->m_Data[DefaultGRFButterflyActivation] = -1;
  this->m_Data[ForcePathDisplay] = -1;
  this->m_Data[UserLayoutIndex] = -1;
  this->m_Data[UserLayouts] = QList<QVariant>();
  this->m_Data[AutomaticCheckUpdateUse] = false;
  this->m_Data[DevelopmentChannelSubscriptionUsed] = false;
  this->m_Data[DefaultPlotLineWidth] = -1;
  this->m_Data[ChartEventDisplay] = -1;
  this->m_Data[chartUnitAxisX] = -1;

  // Force the General tab to be the current.
  this->tabWidget->setCurrentIndex(0);
};