mise à jour de pagerender, netoyage de metabase
This commit is contained in:
@@ -69,7 +69,8 @@ from .tools.resources import (
|
||||
from .issues import CenRa_Issues
|
||||
from datetime import date
|
||||
last_select = None
|
||||
|
||||
maxV=210
|
||||
maxH=296
|
||||
EDITOR_CLASS = load_ui('CenRa_PageRender_base.ui')
|
||||
LOGGER = logging.getLogger('CenRa_PageRender')
|
||||
url_osm = 'https://osm.datagrandest.fr/mapcache/?crs=EPSG:2154&featureCount=10&format=image/png&layers=pure&maxHeight=256&maxWidth=256&styles=&url=https://osm.datagrandest.fr/mapcache'
|
||||
@@ -144,10 +145,14 @@ class PageRender_Editor(QDialog, EDITOR_CLASS):
|
||||
self.toolButton.clicked.connect(self.rotate)
|
||||
self.toolButton_2.clicked.connect(self.type_page)
|
||||
self.pushButton_2.clicked.connect(self.load)
|
||||
self.verticalScrollBar.valueChanged.connect(self.moveFrame)
|
||||
|
||||
def raise_(self):
|
||||
self.activateWindow()
|
||||
self.setNavigator()
|
||||
self.verticalScrollBar.setValue(self.frame.y())
|
||||
def moveFrame(self):
|
||||
self.frame.move(self.frame.x(),self.verticalScrollBar.value())
|
||||
|
||||
def select_file(self):
|
||||
options = QFileDialog.Options()
|
||||
@@ -328,6 +333,8 @@ def fletch_canvas(self):
|
||||
def type_page(self):
|
||||
all_children = self.frame.children()
|
||||
if self.toolButton_2.text() == 'Landscape':
|
||||
self.horizontalSlider.setMaximum(maxV)
|
||||
self.verticalSlider.setMaximum(maxH)
|
||||
last_children=0
|
||||
for children in all_children:
|
||||
selection = children
|
||||
@@ -347,6 +354,8 @@ def fletch_canvas(self):
|
||||
last_children = selection
|
||||
self.toolButton_2.setText('Portrait')
|
||||
elif self.toolButton_2.text() == 'Portrait':
|
||||
self.horizontalSlider.setMaximum(maxV)
|
||||
self.verticalSlider.setMaximum(maxH)
|
||||
last_children=0
|
||||
for children in all_children:
|
||||
selection = children
|
||||
|
||||
Reference in New Issue
Block a user