]> www.fi.muni.cz Git - slotcarman.git/commitdiff
Make GUI fit 800x600
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 7 May 2011 22:08:14 +0000 (00:08 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 7 May 2011 22:08:14 +0000 (00:08 +0200)
FIXME: There should be a better way how to do this.

SCX/GUI.pm
slotcarman
slotcarman.glade

index a57c653de6fddd1b80dcd4ca247a86591aab4b03..fbdfa703bf37ae309722d1fe214aadbb96a29836 100755 (executable)
@@ -120,7 +120,7 @@ sub set_font_sizes {
 
        if ($self->{img_height} <= 80) {
                $self->{label_size} = 10;
-               $self->{value_size} = 18;
+               $self->{value_size} = 16;
                $self->{lap_size} = 24;
        } elsif ($self->{img_height} <= 100) {
                $self->{label_size} = 12;
index 776e2ad8a6b6d59c42ed5c90c376785cff24bb63..8aa6cbee661d47ca1cc46c7b956766b0c9123fed 100755 (executable)
@@ -25,7 +25,7 @@ if (($opt{t} && $opt{l})
        usage();
 }
 
-my $gui = SCX::GUI->new({ img_height => 100 });
+my $gui = SCX::GUI->new({ img_height => 70 });
 my $track = SCX::Track->new({ gui => $gui, no_semaphore => $opt{f} });
 
 my $logfile = 'log';
index 6b2f874917fa9f2bf64d63804f2aeea75c070aa4..57674a8a055299adc724b8d6bbbac2965bdee1b5 100644 (file)
                 <property name="visible">True</property>
                 <property name="tooltip_text" translatable="yes">Click to modify</property>
                 <property name="ellipsize">end</property>
-                <property name="width_chars">25</property>
+                <property name="width_chars">20</property>
                 <property name="single_line_mode">True</property>
               </object>
               <packing>
                 <property name="visible">True</property>
                 <property name="tooltip_text" translatable="yes">Click to modify</property>
                 <property name="ellipsize">end</property>
-                <property name="width_chars">25</property>
+                <property name="width_chars">20</property>
                 <property name="single_line_mode">True</property>
               </object>
               <packing>
                 <property name="visible">True</property>
                 <property name="tooltip_text" translatable="yes">Click to modify</property>
                 <property name="ellipsize">end</property>
-                <property name="width_chars">25</property>
+                <property name="width_chars">20</property>
                 <property name="single_line_mode">True</property>
               </object>
               <packing>
                 <property name="visible">True</property>
                 <property name="tooltip_text" translatable="yes">Click to modify</property>
                 <property name="ellipsize">end</property>
-                <property name="width_chars">25</property>
+                <property name="width_chars">20</property>
                 <property name="single_line_mode">True</property>
               </object>
               <packing>
                 <property name="visible">True</property>
                 <property name="tooltip_text" translatable="yes">Click to modify</property>
                 <property name="ellipsize">end</property>
-                <property name="width_chars">25</property>
+                <property name="width_chars">20</property>
                 <property name="single_line_mode">True</property>
               </object>
               <packing>
                 <property name="visible">True</property>
                 <property name="tooltip_text" translatable="yes">Click to modify</property>
                 <property name="ellipsize">end</property>
-                <property name="width_chars">25</property>
+                <property name="width_chars">20</property>
                 <property name="single_line_mode">True</property>
               </object>
               <packing>
                   <object class="GtkLabel" id="label_distance1">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">label</property>
-                    <property name="width_chars">24</property>
+                    <property name="width_chars">14</property>
                   </object>
                   <packing>
                     <property name="position">1</property>
                   <object class="GtkLabel" id="label_distance2">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">label</property>
-                    <property name="width_chars">24</property>
+                    <property name="width_chars">14</property>
                   </object>
                   <packing>
                     <property name="position">1</property>
                   <object class="GtkLabel" id="label_distance3">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">label</property>
-                    <property name="width_chars">24</property>
+                    <property name="width_chars">14</property>
                   </object>
                   <packing>
                     <property name="position">1</property>
                   <object class="GtkLabel" id="label_distance4">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">label</property>
-                    <property name="width_chars">24</property>
+                    <property name="width_chars">14</property>
                   </object>
                   <packing>
                     <property name="position">1</property>
                   <object class="GtkLabel" id="label_distance5">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">label</property>
-                    <property name="width_chars">24</property>
+                    <property name="width_chars">14</property>
                   </object>
                   <packing>
                     <property name="position">1</property>
                   <object class="GtkLabel" id="label_distance6">
                     <property name="visible">True</property>
                     <property name="label" translatable="yes">label</property>
-                    <property name="width_chars">24</property>
+                    <property name="width_chars">14</property>
                   </object>
                   <packing>
                     <property name="position">1</property>