46 self.qtAssistantButton.setChecked(True) |
46 self.qtAssistantButton.setChecked(True) |
47 elif hvId == 3: |
47 elif hvId == 3: |
48 self.webBrowserButton.setChecked(True) |
48 self.webBrowserButton.setChecked(True) |
49 else: |
49 else: |
50 self.customViewerButton.setChecked(True) |
50 self.customViewerButton.setChecked(True) |
51 self.customViewerEdit.setText(\ |
51 self.customViewerEdit.setText( |
52 Preferences.getHelp("CustomViewer")) |
52 Preferences.getHelp("CustomViewer")) |
53 |
53 |
54 def save(self): |
54 def save(self): |
55 """ |
55 """ |
56 Public slot to save the Help Viewers configuration. |
56 Public slot to save the Help Viewers configuration. |
70 @pyqtSlot() |
70 @pyqtSlot() |
71 def on_customViewerSelectionButton_clicked(self): |
71 def on_customViewerSelectionButton_clicked(self): |
72 """ |
72 """ |
73 Private slot to handle the custom viewer selection. |
73 Private slot to handle the custom viewer selection. |
74 """ |
74 """ |
75 file = QFileDialog.getOpenFileName(\ |
75 file = QFileDialog.getOpenFileName( |
76 self, |
76 self, |
77 self.trUtf8("Select Custom Viewer"), |
77 self.trUtf8("Select Custom Viewer"), |
78 self.customViewerEdit.text(), |
78 self.customViewerEdit.text(), |
79 "") |
79 "") |
80 |
80 |
84 @pyqtSlot() |
84 @pyqtSlot() |
85 def on_webbrowserButton_clicked(self): |
85 def on_webbrowserButton_clicked(self): |
86 """ |
86 """ |
87 Private slot to handle the Web browser selection. |
87 Private slot to handle the Web browser selection. |
88 """ |
88 """ |
89 file = QFileDialog.getOpenFileName(\ |
89 file = QFileDialog.getOpenFileName( |
90 self, |
90 self, |
91 self.trUtf8("Select Web-Browser"), |
91 self.trUtf8("Select Web-Browser"), |
92 self.webbrowserEdit.text(), |
92 self.webbrowserEdit.text(), |
93 "") |
93 "") |
94 |
94 |
98 @pyqtSlot() |
98 @pyqtSlot() |
99 def on_pdfviewerButton_clicked(self): |
99 def on_pdfviewerButton_clicked(self): |
100 """ |
100 """ |
101 Private slot to handle the PDF viewer selection. |
101 Private slot to handle the PDF viewer selection. |
102 """ |
102 """ |
103 file = QFileDialog.getOpenFileName(\ |
103 file = QFileDialog.getOpenFileName( |
104 self, |
104 self, |
105 self.trUtf8("Select PDF-Viewer"), |
105 self.trUtf8("Select PDF-Viewer"), |
106 self.pdfviewerEdit.text(), |
106 self.pdfviewerEdit.text(), |
107 "") |
107 "") |
108 |
108 |
112 @pyqtSlot() |
112 @pyqtSlot() |
113 def on_chmviewerButton_clicked(self): |
113 def on_chmviewerButton_clicked(self): |
114 """ |
114 """ |
115 Private slot to handle the CHM viewer selection. |
115 Private slot to handle the CHM viewer selection. |
116 """ |
116 """ |
117 file = QFileDialog.getOpenFileName(\ |
117 file = QFileDialog.getOpenFileName( |
118 self, |
118 self, |
119 self.trUtf8("Select CHM-Viewer"), |
119 self.trUtf8("Select CHM-Viewer"), |
120 self.chmviewerEdit.text(), |
120 self.chmviewerEdit.text(), |
121 "") |
121 "") |
122 |
122 |