7 #include "qwt_counter.h"
9 #include "qwt_plot_grid.h"
10 #include "qwt_plot_picker.h"
11 #include "qwt_plot_curve.h"
29 US_Widgets(
bool =
true, QWidget*
p = 0, Qt::WindowFlags f = 0 );
47 QLabel* us_label (
const QString&,
int = 0,
int = QFont::Bold );
52 QLabel* us_textlabel (
const QString&,
int = -1,
int = QFont::Bold );
59 QLabel* us_banner (
const QString&,
int = 0,
int = QFont::Bold );
68 QPushButton* us_pushbutton(
const QString&,
bool =
true,
int = 0 );
75 QTextEdit* us_textedit (
void );
80 QLineEdit* us_lineedit (
const QString& = 0,
int = -1,
bool =
false );
84 void us_setReadOnly( QLineEdit*,
bool =
true );
88 void us_setReadOnly( QTextEdit*,
bool =
true );
92 QListWidget* us_listwidget (
int = 0 );
99 QGridLayout* us_checkbox (
const QString&, QCheckBox*&,
bool =
false );
108 QGridLayout* us_radiobutton(
109 const QString& text, QRadioButton*& rb,
bool state =
false );
115 QProgressBar* us_progressBar(
int,
int,
int = 0 );
118 QComboBox* us_comboBox(
void );
124 QLCDNumber* us_lcd(
int,
int = 0 );
131 QwtCounter* us_counter(
int,
double,
double,
double = 0.0 );
138 QwtPlot* us_plot(
const QString&,
const QString& = QString(),
139 const QString& = QString() );
144 QwtPlotGrid* us_grid( QwtPlot* );
149 QwtPlotCurve* us_curve( QwtPlot*,
const QString& );
154 QwtPlotPicker* us_picker( QwtPlot* );
157 static QFont fixedFont(
void);
162 QTabWidget* us_tabwidget(
int = 0,
168 void write_plot(
const QString&,
const QwtPlot* );
173 int clean_etc_dir(
bool =
false );
185 setAutoFillBackground(
true );
190 setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
197 return QSize( -1, -1 );
202 void mousePressEvent( QMouseEvent* );
207 void rightClick(
void );
219 enum type { Default, DB, Disk };
232 void set_disk(
void );
235 void set_db (
void );
239 void changed(
bool );
245 QGridLayout* us_radiobutton(
246 const QString& text, QRadioButton*& rb,
bool state =
false );
249 void rb_changed(
bool );