Skip to content

Commit 59697b0

Browse files
authored
Merge pull request #4131 from grandixximo/touchy-fit-monitor
touchy: fit the window to the monitor
2 parents 4d0eeed + 2c61f67 commit 59697b0

4 files changed

Lines changed: 322 additions & 5 deletions

File tree

docs/src/gui/touchy.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,27 @@ cut off, reduce the DPI setting.
9696

9797
All other font sizes can be changed on the Preferences tab.
9898

99+
=== Fitting the screen
100+
101+
Touchy bounds its window to the monitor and scrolls any tab whose content
102+
is larger than the screen, so the window never grows past the display
103+
edge (for example after loading a large tool table). The handwheel column
104+
is hidden on the Preferences tab so the settings have the full width.
105+
106+
If the interface is still too large for a small screen, Touchy offers,
107+
once, to shrink the display fonts to fit:
108+
109+
* *Shrink to fit and save* scales the fonts to the largest size that fits
110+
and saves them as your preference (the font selectors update to match).
111+
* *Not now* leaves the fonts unchanged and does not ask again for this
112+
screen size; it is offered again only if you move to a smaller screen.
113+
* *Never ask again* disables the offer on every screen.
114+
115+
To turn the offer back on, tick *Offer to shrink fonts to fit the screen*
116+
in Preferences / Display Options, or set `fit_fonts = ask` in
117+
`~/.touchy_preferences` (the *Never ask again* choice stores
118+
`fit_fonts = never`).
119+
99120
=== Macros
100121

101122
Touchy can invoke O-word macros using the MDI interface. To configure

src/emc/usr_intf/touchy/listing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def next(self,b,count=1):
103103
break
104104
self.show_line(self.start_line)
105105

106-
def on_select(self, b):
106+
def on_select(self, b, *args):
107107
pass
108108

109109
def clear_startline(self):

src/emc/usr_intf/touchy/touchy.glade

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3173,7 +3173,7 @@ F1 S1</property>
31733173
<object class="GtkTable" id="table3">
31743174
<property name="visible">True</property>
31753175
<property name="can-focus">False</property>
3176-
<property name="n-rows">5</property>
3176+
<property name="n-rows">6</property>
31773177
<property name="n-columns">3</property>
31783178
<child>
31793179
<placeholder/>
@@ -3402,6 +3402,27 @@ F1 S1</property>
34023402
<property name="x-padding">10</property>
34033403
</packing>
34043404
</child>
3405+
<child>
3406+
<object class="GtkCheckButton" id="fitfontscheck">
3407+
<property name="label" translatable="yes">Offer to shrink fonts to fit the screen</property>
3408+
<property name="visible">True</property>
3409+
<property name="can-focus">False</property>
3410+
<property name="receives-default">False</property>
3411+
<property name="focus-on-click">False</property>
3412+
<property name="draw-indicator">True</property>
3413+
<signal name="toggled" handler="on_fitfontscheck_toggled" swapped="no"/>
3414+
</object>
3415+
<packing>
3416+
<property name="left-attach">0</property>
3417+
<property name="right-attach">3</property>
3418+
<property name="top-attach">5</property>
3419+
<property name="bottom-attach">6</property>
3420+
<property name="x-options">GTK_FILL</property>
3421+
<property name="y-options"/>
3422+
<property name="x-padding">10</property>
3423+
<property name="y-padding">6</property>
3424+
</packing>
3425+
</child>
34053426
</object>
34063427
</child>
34073428
</object>

0 commit comments

Comments
 (0)