WIP: Scrolling Image

This commit is contained in:
Jean Sirmai 2022-02-03 17:08:05 +01:00
parent 124b314271
commit be49924523
Signed by: jean
GPG Key ID: FB3115C340E057E3
5 changed files with 48 additions and 239 deletions

View File

@ -113,7 +113,7 @@ class SingleTransition:
ViewControls.execDo() ViewControls.execDo()
# doRepaint() # doRepaint()
if self.DO_UNDO_REDO_comment: if self.DO_UNDO_REDO_comment:
self.comment_do(formula_key) self.comment_do()
def prepare_undo(self, step_by_step): def prepare_undo(self, step_by_step):
# MonoTest.present-- return MonoTest.f[MonoTest.present] # MonoTest.present-- return MonoTest.f[MonoTest.present]
@ -198,7 +198,7 @@ class SingleTransition:
# "execute_do_undo_redo()").repaint() # "execute_do_undo_redo()").repaint()
pass pass
def comment_do(self, rank) : def comment_do(self) :
if self.present == 0: if self.present == 0:
self.present = self.undoStackSize self.present = self.undoStackSize
print(" do -----> ", self.present, print(" do -----> ", self.present,

View File

@ -1,9 +1,11 @@
# from ete2 import Tree # from ete2 import Tree
from anytree import RenderTree from anytree import RenderTree
import rules_tree import rules_tree
tree = rules_tree.get_tree() tree = rules_tree.get_tree()
for pre, fill, node in RenderTree(tree): for pre, fill, node in RenderTree(tree):
treestr = u"%s%s" % (pre, node.id) treestr = u"%s%s" % (pre, node.id)
print(treestr.ljust(0)) print(treestr.ljust(0))

View File

@ -1,221 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<!-- This file is temporary and meant to test graphic features -->
<interface>
<requires lib="gtk+" version="3.24"/>
<object class="GtkWindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">False</property>
<property name="vexpand">False</property>
<property name="window-position">center</property>
<property name="default-width">1860</property>
<property name="default-height">160</property>
<property name="gravity">static</property>
<property name="has-resize-grip">True</property>
<child>
<object class="GtkPaned">
<property name="name">tout ce qui est sous la 'header bar'</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkPaned">
<property name="name">Image 1D + contrôles</property>
<property name="height-request">100</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="shadow-type">in</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">espace 1D projet.jpg</property>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="height-request">18</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">center</property>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">Zoom</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">Filtres</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">Apparences</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">True</property>
</packing>
</child>
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child>
<child>
<object class="GtkPaned">
<property name="name">tout ce qui est sous l'image 1D et ses contrôles</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">transitions </property>
<property name="width-request">700</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">objets</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">True</property>
</packing>
</child>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">True</property>
</packing>
</child>
</object>
</child>
<child type="titlebar">
<object class="GtkHeaderBar">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="tooltip-text" translatable="yes">Salut ! Je suis la nouvelle barre de commandes.</property>
<property name="title" translatable="yes">Gem-graph</property>
<property name="has-subtitle">False</property>
<property name="spacing">2</property>
<property name="show-close-button">True</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="spacing">2</property>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">utilisateur (préférences)</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="mon_bouton">
<property name="label" translatable="yes">modèle (load / save)</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<signal name="toggled" handler="tilt" object="__glade_Hi" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">états / transitions</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">monitoring et contrôles / éditions</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>

View File

@ -27,11 +27,37 @@
<property name="can-focus">True</property> <property name="can-focus">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<placeholder/> <object class="GtkScrolledWindow">
<property name="height-request">60</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="shadow-type">in</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">1</property>
<property name="margin-end">1</property>
<property name="margin-top">1</property>
<property name="margin-bottom">1</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">espace 1D projet.jpg</property>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child> </child>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="height-request">18</property> <property name="height-request">32</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="halign">center</property> <property name="halign">center</property>

View File

@ -27,33 +27,35 @@
<property name="can-focus">True</property> <property name="can-focus">True</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkViewport"> <object class="GtkScrolledWindow">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">True</property>
<property name="margin-left">3</property> <property name="shadow-type">in</property>
<property name="margin-right">3</property>
<property name="hexpand">False</property>
<property name="vexpand">False</property>
<property name="resize-mode">immediate</property>
<property name="hscroll-policy">natural</property>
<property name="vscroll-policy">natural</property>
<property name="shadow-type">none</property>
<child> <child>
<object class="GtkImage"> <object class="GtkViewport">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="pixbuf">espace 1D projet.jpg</property> <property name="margin-start">1</property>
<property name="margin-end">1</property>
<property name="margin-top">1</property>
<property name="margin-bottom">1</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">espace 1D projet.jpg</property>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>
<packing> <packing>
<property name="resize">True</property> <property name="resize">False</property>
<property name="shrink">True</property> <property name="shrink">True</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="height-request">18</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="halign">center</property> <property name="halign">center</property>