mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-23 14:19:45 +12:00
Adds shortcut for fullscreen
This commit is contained in:
parent
9fe1cd938f
commit
417c3ccd88
|
@ -143,8 +143,7 @@ class editorWidget(QWidget, Ui_editorWidget_ui):
|
|||
self.setParent(None)
|
||||
mainWindow().hide()
|
||||
self.move(qApp.desktop().screenGeometry(currentScreen).topLeft())
|
||||
#print(str((qApp.desktop().screenGeometry(currentScreen).width() - 800) / 2))
|
||||
print(str((qApp.desktop().screenGeometry(currentScreen).width() - 800) / 2))
|
||||
|
||||
self.stack.setStyleSheet("""
|
||||
QTextEdit {{
|
||||
margin-left: {m}px;
|
||||
|
@ -158,7 +157,7 @@ class editorWidget(QWidget, Ui_editorWidget_ui):
|
|||
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
if event.key() == Qt.Key_Escape and self._fullscreen:
|
||||
if event.key() in [Qt.Key_Escape, Qt.Key_F11] and self._fullscreen:
|
||||
mainWindow().show()
|
||||
self.stack.setStyleSheet("")
|
||||
self.setGeometry(self._geometry)
|
||||
|
|
|
@ -1253,6 +1253,7 @@ class Ui_MainWindow(object):
|
|||
self.txtPlanSummarySentance.setPlaceholderText(_translate("MainWindow", "Résumé de la scène en une ligne"))
|
||||
self.label_9.setText(_translate("MainWindow", "Résumé en quelques phrases:"))
|
||||
self.tabMain.setTabText(self.tabMain.indexOf(self.lytTabOutline), _translate("MainWindow", "Plan"))
|
||||
self.btnRedacFullscreen.setShortcut(_translate("MainWindow", "F11"))
|
||||
self.groupBox_4.setTitle(_translate("MainWindow", "Propriétés"))
|
||||
self.lblRedacPOV.setText(_translate("MainWindow", "POV"))
|
||||
self.label_30.setText(_translate("MainWindow", "Status"))
|
||||
|
@ -1306,9 +1307,9 @@ class Ui_MainWindow(object):
|
|||
self.actSpellcheck.setShortcut(_translate("MainWindow", "F8"))
|
||||
self.actSpellcheckDict.setText(_translate("MainWindow", "Dictionnaire"))
|
||||
|
||||
from ui.cmbOutlineStatusChoser import cmbOutlineStatusChoser
|
||||
from ui.cmbOutlinePersoChoser import cmbOutlinePersoChoser
|
||||
from ui.editors.editorWidget import editorWidget
|
||||
from ui.chkOutlineCompile import chkOutlineCompile
|
||||
from ui.collapsibleGroupBox2 import collapsibleGroupBox2
|
||||
from ui.cmbOutlineStatusChoser import cmbOutlineStatusChoser
|
||||
from ui.sldImportance import sldImportance
|
||||
from ui.chkOutlineCompile import chkOutlineCompile
|
||||
from ui.editors.editorWidget import editorWidget
|
||||
from ui.collapsibleGroupBox2 import collapsibleGroupBox2
|
||||
|
|
|
@ -1710,6 +1710,9 @@
|
|||
<property name="icon">
|
||||
<iconset theme="view-fullscreen"/>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F11</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<outlineItem title="root" type="folder" compile="2" wordCount="577" setGoal="112">
|
||||
<outlineItem title="root" type="folder" compile="2" wordCount="573" setGoal="112">
|
||||
<outlineItem title="Nouveau" type="folder" compile="2" wordCount="15">
|
||||
<outlineItem title="Nouveau" type="scene" compile="2" text="return QTextEdit.resizeEvent(self, e) ad ad ad ad adaasd ad adsdasd ad e drset" wordCount="15"/>
|
||||
</outlineItem>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<outlineItem title="B" type="scene" compile="2" text="asd asd asd asd asd asd asd asd asd asd asd" wordCount="12" setGoal="10"/>
|
||||
<outlineItem title="Nouveau" type="folder" compile="2"/>
|
||||
</outlineItem>
|
||||
<outlineItem title="MOIMOIMOI" type="scene" summaryFull="Là ça joue, et on est content. Pas de raison de se plaindre. **OK**?" status="Second draft" compile="2" text="Là ça joue, et on est content. Pas de raison de se plaindre. **OK**? Ben voilà, suffisait de demander ! as dasd asda s" wordCount="25" setGoal="250"/>
|
||||
<outlineItem title="MOIMOIMOI" type="scene" summaryFull="Là ça joue, et on est content. Pas de raison de se plaindre. **OK**?" status="Second draft" compile="2" text="Là ça joue, et on est content. Pas de raison de se plaindre. **OK**? Ben voilà, suffisait de demander ! " wordCount="21" setGoal="250"/>
|
||||
<outlineItem title="A" type="scene" compile="2" text="asdasd asd asd asd asd asdasd asdaasd asdasdasdasd asd asd asd asd asdasd asdaasd asdasdasdasd asd asd asd asd asdasd asdaasd asdasdasdasd asd asd asd asd asdasd asdaasd asdasdasdasd asd asd asd asd asdasd asdaasd asdasdasdasd asd asd asd asd asdasd asdaasd asdasdasdasd asd asd asd asd asdasd asdaasd asdasd asd aasdasd asd asd asd asd asdasd asdaasd asdasdasdasd asd aasdas dasd asd s" wordCount="66" setGoal="50"/>
|
||||
<outlineItem title="Nouveau A" type="folder" compile="2" wordCount="217" setGoal="250">
|
||||
<outlineItem title="Nouveau" type="scene" compile="2" text="ASDASd ASD ASDASd ASD " wordCount="4"/>
|
||||
|
|
Loading…
Reference in a new issue