CycloBranch
Introduction
User's Guide
Tutorials
Download
Datasets
Publications
Classes
Files
GitHub
Contact
MassSpecBlocks
File List
File Members
cGraphWidget.h
Go to the documentation of this file.
1
7
#ifndef _CGRAPHWIDGET_H
8
#define _CGRAPHWIDGET_H
9
10
#include <string>
11
#include <fstream>
12
#include <QWidget>
13
#include <QDesktopServices>
14
#include <QUrl>
15
#include <QFileInfo>
16
#include "
core/utilities.h
"
17
18
19
using namespace
std;
20
21
22
// forward declaration
23
class
QTextBrowser;
24
class
QVBoxLayout;
25
26
30
class
cGraphWidget
:
public
QWidget
31
{
32
Q_OBJECT
33
34
public
:
35
36
40
cGraphWidget
();
41
42
46
~cGraphWidget
();
47
48
54
void
setHTML
(
string
html,
bool
reportisomers);
55
56
61
string
getHTML
();
62
63
68
void
updateView
(
bool
reportisomers);
69
70
75
void
closeEvent
(QCloseEvent *event);
76
77
82
void
store
(ofstream& os);
83
84
89
void
load
(ifstream& is);
90
91
92
private
:
93
94
QVBoxLayout* layout;
95
QTextBrowser* textbrowser;
96
string
htmlstring;
97
98
99
protected
:
100
101
106
void
keyPressEvent
(QKeyEvent *event);
107
108
109
};
110
111
#endif
cGraphWidget
The widget representing the dialog 'View->Graph'.
Definition:
cGraphWidget.h:31
cGraphWidget::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Handle a key press event.
Definition:
cGraphWidget.cpp:76
cGraphWidget::getHTML
string getHTML()
Get the HTML text from the widget.
Definition:
cGraphWidget.cpp:45
cGraphWidget::setHTML
void setHTML(string html, bool reportisomers)
Set the HTML text into the widget.
Definition:
cGraphWidget.cpp:39
cGraphWidget::~cGraphWidget
~cGraphWidget()
The destructor.
Definition:
cGraphWidget.cpp:32
cGraphWidget::closeEvent
void closeEvent(QCloseEvent *event)
Handle the window close event.
Definition:
cGraphWidget.cpp:59
cGraphWidget::load
void load(ifstream &is)
Load the content from an input stream.
Definition:
cGraphWidget.cpp:70
cGraphWidget::store
void store(ofstream &os)
Store the content into an output stream.
Definition:
cGraphWidget.cpp:65
cGraphWidget::updateView
void updateView(bool reportisomers)
Update HTML string if report isomers state is changed.
Definition:
cGraphWidget.cpp:50
cGraphWidget::cGraphWidget
cGraphWidget()
The constructor.
Definition:
cGraphWidget.cpp:9
utilities.h
Auxiliary funtions and structures.
gui
cGraphWidget.h
This site uses cookies only for its basic functionality. Generated on Mon Aug 7 2023 08:36:38 for CycloBranch by
1.9.4