volcamwidgets  2019 march
volcamwidgets biblioteca
volcamlog.h
Ir a la documentación de este archivo.
1 
10 #ifndef VOLCAMLOG_H
11 #define VOLCAMLOG_H
12 
13 #include <QObject>
14 #include <QtWidgets>
15 #include "conf_volcam.h"
16 #include "conf_stndevices.h"
17 #include "conf_tags.h"
18 #include "conf_users.h"
19 #include "imagenes_wc.h"
20 #include "measure2d_imagenes_wc.h"
21 #include "tagged_imagenes_wc.h"
22 #include "volcamoldtransfer.h"
23 #include "volcamquery.h"
24 
25 class volcamlog : public QTextEdit
26 {
27  Q_OBJECT
28 public:
29  explicit volcamlog(QWidget *parent = 0);
30  ~volcamlog();
31 
32  void setShowDateTime(bool value);
33 
34  QString getFileName() const;
35  void setFileName(const QString &value);
36 
37  bool getSaveLogFile() const;
38  void setSaveLogFile(bool value);
39 
40  Config getConfig() const;
41  void setConfig(const Config &value);
42 
43 protected:
44  void keyPressEvent(QKeyEvent *keyEvent);
45 
46 private:
47  Config config;
48  QString fileName;
49  QFile *file;
50  bool showDateTime;
51  bool saveLogFile;
52 
53 
54 signals:
55  void written(QString);
56 
57 public slots:
58  void write(const QString &value);
59 
60  void write_helptext();
61 };
62 
63 #endif // VOLCAMLOG_H
~volcamlog()
Definition: volcamlog.cpp:18
void written(QString)
bool getSaveLogFile() const
Definition: volcamlog.cpp:41
Config getConfig() const
void write(const QString &value)
Definition: volcamlog.cpp:68
QString getFileName() const
Definition: volcamlog.cpp:26
void setSaveLogFile(bool value)
Definition: volcamlog.cpp:46
void keyPressEvent(QKeyEvent *keyEvent)
Definition: volcamlog.cpp:51
void setFileName(const QString &value)
Definition: volcamlog.cpp:31
Definition: volcamlog.h:25
void setConfig(const Config &value)
volcamlog(QWidget *parent=0)
Definition: volcamlog.cpp:3
void write_helptext()
Definition: volcamlog.cpp:115
void setShowDateTime(bool value)
Definition: volcamlog.cpp:22