Skip to content

Commit

Permalink
Show khelpcenter instead QWebView()
Browse files Browse the repository at this point in the history
  • Loading branch information
mdomlop committed Sep 4, 2018
1 parent 78bce4c commit dc2491e
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 293 deletions.
220 changes: 0 additions & 220 deletions README.md

This file was deleted.

2 changes: 1 addition & 1 deletion man/en/snapman.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DESCRIPTION
system to capture snapshots of subvolumes.

When you run ``snapman`` without options it will read the default
configuration file in ``/etc/snapman.ini`` and then it will make backups
configuration file in ``/etc/snapman.ini`` (see snapman(5)) and then it will make backups
(snapshots) of indicated subvolumes at desired frequency until reach a
defined quota. If quota were reached, then it will remove the older
backup before to make a new one to keep the number of backups indicated
Expand Down
56 changes: 0 additions & 56 deletions src/Snapman/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,59 +148,3 @@ def __init__(self, parent=None):
mainLayout.addWidget(mail1)
mainLayout.addStretch(1)
self.setLayout(mainLayout)

class HtmlHelp(QWidget):
def __init__(self, parent=None):
super(HtmlHelp, self).__init__(parent)
self.setWindowIcon(QIcon.fromTheme('help-about'))

#self.view = QWebEngineView()

btn1 = QPushButton(_("Application"), self)
btn1.setIcon(QIcon.fromTheme("help-about"))
btn1.setToolTip(_("Show application help"))
#btn1.clicked.connect(self.loadHtml1)

btn5 = QPushButton(_("Configuration"), self)
btn5.setIcon(QIcon.fromTheme("help-about"))
btn5.setToolTip(_("Show configuration help"))
#btn5.clicked.connect(self.loadHtml5)

btnUsage = QPushButton(_("Usage"), self)
btnUsage.setIcon(QIcon.fromTheme("help-about"))
btnUsage.setToolTip(_("Show usage help"))
#btnUsage.clicked.connect(self.loadHtmlUsage)

mainLayout =QGridLayout()
mainLayout.addWidget(btn1, 0, 0)
mainLayout.addWidget(btn5, 0, 1)
mainLayout.addWidget(btnUsage, 0, 2)
#mainLayout.addWidget(self.view, 1, 0, 1, 3)
self.setLayout(mainLayout)
#self.loadHtml1()
'''
def loadHtml1(self):
print('load')
f = open(os.path.join(docpath, 'snapman.1.html'), 'r')
html = f.read()
f.close()
self.view.setHtml(html)
self.view.show()
self.setWindowTitle(PROGRAM_NAME + _(": Application help"))
def loadHtml5(self):
f = open(os.path.join(docpath, 'snapman.5.html'), 'r')
html = f.read()
f.close()
self.view.setHtml(html)
self.view.show()
self.setWindowTitle(PROGRAM_NAME + _(": Configuration help"))
def loadHtmlUsage(self):
f = open(os.path.join(docpath, 'USAGE.html'), 'r')
html = f.read()
f.close()
self.view.setHtml(html)
self.view.show()
self.setWindowTitle(PROGRAM_NAME + _(": Usage help"))
'''
Loading

0 comments on commit dc2491e

Please sign in to comment.