UltraScan III
us_widgets_dialog.h
Go to the documentation of this file.
1 #ifndef US_WIDGETS_DIALOG_H
3 #define US_WIDGETS_DIALOG_H
4 
5 #include <QtGui>
6 
7 #include "qwt_counter.h"
8 #include "qwt_plot.h"
9 #include "qwt_plot_grid.h"
10 #include "qwt_plot_picker.h"
11 #include "qwt_plot_curve.h"
12 
13 #include "us_global.h"
14 #include "us_extern.h"
15 
23 class US_GUI_EXTERN US_WidgetsDialog : public QDialog
24 {
25  public:
28  US_WidgetsDialog( QWidget*, Qt::WindowFlags );
29 
32 
34  QPalette vlgray;
35 
42  QLabel* us_label ( const QString&, int = 0, int = QFont::Bold );
43 
47  QLabel* us_textlabel ( const QString&, int = -1, int = QFont::Bold );
48 
55  QLabel* us_banner ( const QString&, int = 0, int = QFont::Bold );
56 
64  QPushButton* us_pushbutton( const QString&, bool = true, int = 0 );
65 
71  QTextEdit* us_textedit ( void );
72 
76  QLineEdit* us_lineedit ( const QString& = 0, int = 0, bool = false );
77 
80  void us_setReadOnly( QLineEdit*, bool = true );
81 
84  void us_setReadOnly( QTextEdit*, bool = true );
85 
88  QListWidget* us_listwidget ( int = 0 );
89 
95  QGridLayout* us_checkbox ( const QString&, QCheckBox*&, bool = false );
96 
103  QGridLayout* us_radiobutton( const QString& text, QRadioButton*& rb,
104  bool state = false );
105 
111  QProgressBar* us_progressBar( int, int, int = 0 );
112 
114  QComboBox* us_comboBox( void );
115 
120  QLCDNumber* us_lcd( int, int = 0 );
121 
127  QwtCounter* us_counter( int, double, double, double = 0.0 );
128 
134  QwtPlot* us_plot( const QString&, const QString& = QString(),
135  const QString& = QString() );
136 
140  QwtPlotGrid* us_grid( QwtPlot* );
141 
145  QwtPlotCurve* us_curve( QwtPlot*, const QString& );
146 
150  QwtPlotPicker* us_picker( QwtPlot* );
151 
155  QTabWidget* us_tabwidget( int = 0,
156  int = QFont::Bold );
157 };
158 #endif