Changeset 1ef797e1d80e…
Parent 3607bb3d8d34…
by
Changes to 4 files · Browse files at 1ef797e1d80e Showing diff from parent 3607bb3d8d34 Diff from another changeset...
|
@@ -1,66 +0,0 @@ - <ui version="4.0" >
- <class>Dialog</class>
- <widget class="QDialog" name="Dialog" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>400</width>
- <height>300</height>
- </rect>
- </property>
- <property name="windowTitle" >
- <string>Dialog</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout" >
- <item>
- <widget class="QTextBrowser" name="textBrowser" />
- </item>
- <item>
- <widget class="QDialogButtonBox" name="buttonBox" >
- <property name="orientation" >
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="standardButtons" >
- <set>QDialogButtonBox::Close</set>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <resources/>
- <connections>
- <connection>
- <sender>buttonBox</sender>
- <signal>accepted()</signal>
- <receiver>Dialog</receiver>
- <slot>accept()</slot>
- <hints>
- <hint type="sourcelabel" >
- <x>248</x>
- <y>254</y>
- </hint>
- <hint type="destinationlabel" >
- <x>157</x>
- <y>274</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>buttonBox</sender>
- <signal>rejected()</signal>
- <receiver>Dialog</receiver>
- <slot>reject()</slot>
- <hints>
- <hint type="sourcelabel" >
- <x>316</x>
- <y>260</y>
- </hint>
- <hint type="destinationlabel" >
- <x>286</x>
- <y>274</y>
- </hint>
- </hints>
- </connection>
- </connections>
-</ui>
|
|
@@ -1,34 +0,0 @@ - # -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'C:\Users\adi\hgrepos\thg-qt\tortoisehg\hgqt\HelpDialog.ui'
-#
-# Created: Sun May 02 13:55:03 2010
-# by: PyQt4 UI code generator 4.7.3
-#
-# WARNING! All changes made in this file will be lost!
-
-from PyQt4 import QtCore, QtGui
-
-class Ui_Dialog(object):
- def setupUi(self, Dialog):
- Dialog.setObjectName("Dialog")
- Dialog.resize(400, 300)
- self.verticalLayout = QtGui.QVBoxLayout(Dialog)
- self.verticalLayout.setObjectName("verticalLayout")
- self.textBrowser = QtGui.QTextBrowser(Dialog)
- self.textBrowser.setObjectName("textBrowser")
- self.verticalLayout.addWidget(self.textBrowser)
- self.buttonBox = QtGui.QDialogButtonBox(Dialog)
- self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
- self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
- self.buttonBox.setObjectName("buttonBox")
- self.verticalLayout.addWidget(self.buttonBox)
-
- self.retranslateUi(Dialog)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Dialog.accept)
- QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject)
- QtCore.QMetaObject.connectSlotsByName(Dialog)
-
- def retranslateUi(self, Dialog):
- Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
-
|
|
@@ -1,46 +0,0 @@ - # -*- coding: iso-8859-1 -*-
-#!/usr/bin/env python
-#
-# Copyright (C) 2007-2010 Logilab. All rights reserved.
-#
-# This software may be used and distributed according to the terms
-# of the GNU General Public License, incorporated herein by reference.
-"""
-Help window
-"""
-import sys, os
-import re
-
-from PyQt4 import QtCore, QtGui, Qsci
-
-from tortoisehg.hgqt import icon as geticon
-from tortoisehg.hgqt.dialogmixin import HgDialogMixin
-from tortoisehg.hgqt.helpmessages import help_msg, get_options_helpmsg
-
-Qt = QtCore.Qt
-bold = QtGui.QFont.Bold
-connect = QtCore.QObject.connect
-SIGNAL = QtCore.SIGNAL
-
-from docutils.core import publish_string
-
-class HelpDialog(QtGui.QDialog, HgDialogMixin):
- """hgview simple help viewer"""
- _uifile = 'HelpDialog.ui'
- def __init__(self, repo, parent=None):
- self.repo = repo
- QtGui.QDialog.__init__(self, parent)
- HgDialogMixin.__init__(self)
- data = help_msg + get_options_helpmsg(rest=True)
-
- html = publish_string(data, writer_name='html')
- self.textBrowser.setText(html)
-
- # must be redefined cause it's a QDialog
- def accept(self):
- QtGui.QDialog.accept(self)
-
- def reject(self):
- QtGui.QDialog.reject(self)
-
-
|
@@ -27,7 +27,6 @@ from tortoisehg.hgqt import icon as geticon
from tortoisehg.hgqt.dialogmixin import HgDialogMixin
from tortoisehg.hgqt.quickbar import FindInGraphlogQuickBar
-from tortoisehg.hgqt.helpdialog import HelpDialog
from tortoisehg.hgqt.repowidget import RepoWidget
from tortoisehg.util import paths
@@ -394,10 +393,7 @@ QtGui.QMessageBox.about(self, "About %s" % modname, msg)
def on_help(self, *args):
- w = HelpDialog(self.repo, self)
- w.show()
- w.raise_()
- w.activateWindow()
+ pass
def okToContinue(self):
'''
|
Loading...