Logo Search packages:      
Sourcecode: qtdmm version File versions  Download package


// File:          configdlg.h
// Author:  Matthias Toussaint
// Created: Tue Apr 10 17:22:30 CEST 2001
// Permission to use, copy, modify, and distribute this software and its
// documentation  for any  purpose and  without fee is  hereby  granted,
// provided  that below copyright notice appear  in all copies  and that
// both  that  copyright  notice and  this permission  notice  appear in
// supporting documentation.
// This  file is  provided AS IS  with no  warranties  of any kind.  The
// author shall  have no liability  with respect  to the infringement of
// copyrights, trade  secrets  or any patents by  this file  or any part
// thereof.  In no event will the author be liable  for any lost revenue
// or profits or other special, indirect and consequential damages.
// (c) 2001 Matthias Toussaint


#include <uiconfigdlg.h>
#include <simplecfg.h>
#include <qcombobox.h>
#include <dmmgraph.h>
#include <readevent.h>

class QPrinter;

struct DMMInfo
  char *name;
  int   baud;
  int   protocol;
  int   bits;
  int   stopBits;
  int   numValues;
  int   parity;
  int   display;

class ConfigDlg : public UIConfigDlg
  ConfigDlg( QWidget *parent=0, const char *name=0 );
  virtual ~ConfigDlg();
  QString device() const { return port->currentText(); }
  int speed() const;
  int windowSeconds() const;
  int totalSeconds() const;
  QTime startTime() const;
  DMMGraph::SampleMode sampleMode() const;
  int sampleStep() const;
  int sampleLength() const;
  double raisingThreshold() const;
  double fallingThreshold() const;
  double scaleMin() const;
  double scaleMax() const;
  bool automaticScale() const;
  bool showMinMax() const;
  bool showBar() const;
  ReadEvent::DataFormat format() const;
  int parity() const;
  int display() const;
  int bits() const;
  int stopBits() const;
  int numValues() const;
  QColor bgColor() const;
  QColor gridColor() const;
  QColor dataColor() const;
  QColor cursorColor() const;
  QColor displayBgColor() const;
  QColor displayTextColor() const;
  QColor startColor() const;
  QColor externalColor() const;
  QColor intColor() const;
  QColor intThresholdColor() const;
  int lineWidth() const;
  int intLineWidth() const;
  int lineMode() const;
  int pointMode() const;
  int intLineMode() const;
  int intPointMode() const;
  void writePrinter( QPrinter * );
  void readPrinter( QPrinter * );
  void setWinRect( const QRect & );
  QRect winRect() const;
  bool saveWindowPosition() const;
  bool alertUnsavedData() const;
  bool useTextLabel() const;
  bool startExternal() const;
  bool externalFalling() const;
  double externalThreshold() const;
  QString externalCommand() const;
  bool disconnectExternal() const;
  bool crosshair() const;
  double intScale() const;
  double intThreshold() const;
  double intOffset() const;
  bool showIntegration() const;
  bool showTip() const;
  int currentTipId() const;
  QString dmmName() const;
public slots:
  void connectSLOT( bool );
  void applySLOT();
  void setSampleTimeSLOT( int );
  void setGraphSizeSLOT( int,int );
  void setShowTipsSLOT( bool );
  void setCurrentTipSLOT( int );
  void zoomInSLOT( double );
  void zoomOutSLOT( double );
  void accepted();
  void showTips( bool );
  SimpleCfg *m_cfg;
  QPrinter  *m_printer;
  QRect      m_winRect;
protected slots:
  void cancelSLOT();
  void helpSLOT();
  void modelSLOT( int );
  void recorderDefaultSLOT();
  void recorderFactorySLOT();
  void scaleDefaultSLOT();
  void scaleFactorySLOT();
  void dmmDefaultSLOT();
  void dmmFactorySLOT();
  void preferencesDefaultSLOT();
  void preferencesFactorySLOT();
  void executeDefaultSLOT();
  void executeFactorySLOT();
  void graphDefaultSLOT();
  void graphFactorySLOT();
  void browseExecSLOT();
  void descriptionSLOT( QWidget * );

#endif // CONFIGDLG_HH

Generated by  Doxygen 1.6.0   Back to index