Browse Source

Correction sur le moniteur pour prendre an charge les messages de timeout et d'erreur de communication + suppression du timer et bouton getbattery

Sébastien DI MERCURIO 5 years ago
parent
commit
cd9534f04d

+ 73
- 107
software/monitor/monitor/MonitorUI.cs View File

@@ -25,6 +25,11 @@
25 25
 // 15/10/2019 dimercur
26 26
 // Demande #43: Migrer le code lié à la gestion des images dans sa propre classe widget
27 27
 
28
+// 11/04/2019 dimercur
29
+// Suppression du timer battery
30
+// suppression de la case à cocher getbattery
31
+// Prise en charge des messages ANSWER_TIMEOUT et ANSWER_COM_ERROR dans OnCommandReceivedEvent
32
+
28 33
 using System;
29 34
 using Gtk;
30 35
 using Gdk;
@@ -69,11 +74,6 @@ public partial class MainWindow : Gtk.Window
69 74
     private ImageWidget imageWidget;
70 75
 
71 76
     /// <summary>
72
-    /// Timer for battery request
73
-    /// </summary>
74
-    private System.Timers.Timer batteryTimer;
75
-
76
-    /// <summary>
77 77
     /// Counter for image reception and detecting bad picture ratio
78 78
     /// </summary>
79 79
     private int imageReceivedCounter = 0;
@@ -91,10 +91,6 @@ public partial class MainWindow : Gtk.Window
91 91
         // Init of image widget
92 92
         imageWidget = new ImageWidget(drawingAreaCamera);
93 93
 
94
-        // create new timer for battery request, every 10s
95
-        batteryTimer = new System.Timers.Timer(10000.0);
96
-        batteryTimer.Elapsed += OnBatteryTimerElapsed;
97
-
98 94
         // Customize controls
99 95
         AdjustControls();
100 96
     }
@@ -145,7 +141,6 @@ public partial class MainWindow : Gtk.Window
145 141
 
146 142
                 if (cmdManager != null) cmdManager.Close();
147 143
 
148
-                batteryTimer.Stop();
149 144
                 break;
150 145
             case SystemState.ServerConnected:
151 146
                 buttonServerConnection.Label = "Disconnect";
@@ -159,14 +154,12 @@ public partial class MainWindow : Gtk.Window
159 154
                 labelRobotControl.Sensitive = false;
160 155
                 gtkAlignmentRobotControl.Sensitive = false;
161 156
 
162
-                batteryTimer.Stop();
163 157
                 break;
164 158
             case SystemState.RobotConnected:
165 159
                 buttonRobotActivation.Label = "Reset";
166 160
                 labelRobotControl.Sensitive = true;
167 161
                 gtkAlignmentRobotControl.Sensitive = true;
168 162
 
169
-                batteryTimer.Start();
170 163
                 break;
171 164
             default:
172 165
                 labelRobot.Sensitive = false;
@@ -259,64 +252,81 @@ public partial class MainWindow : Gtk.Window
259 252
             // Depending on message received (based on header), launch correponding action
260 253
             header = header.ToUpper();
261 254
 
262
-            if (header == DestijlCommandList.ROBOT_BATTERY_LEVEL)
255
+            switch (header)
263 256
             {
264
-                string batLevel = "";
257
+                case DestijlCommandList.ANSWER_TIMEOUT:
258
+                case DestijlCommandList.ANSWER_COM_ERROR:
259
+                    Console.WriteLine("Communication lost with robot");
260
+                    Gtk.Application.Invoke(delegate
261
+                    {
262
+                        MessagePopup(MessageType.Error, ButtonsType.Ok, "Robot lost", "Communication with robot lost !");
263
+                    });
265 264
 
266
-                switch (data[0])
267
-                {
268
-                    case '2':
269
-                        batLevel = "High";
270
-                        break;
271
-                    case '1':
272
-                        batLevel = "Low";
273
-                        break;
274
-                    case '0':
275
-                        batLevel = "Empty";
276
-                        break;
277
-                    default:
278
-                        batLevel = "Invalid value";
279
-                        break;
280
-                }
265
+                    ChangeState(SystemState.ServerConnected);
281 266
 
282
-                Gtk.Application.Invoke(delegate
283
-                {
284
-                    labelBatteryLevel.Text = batLevel;
285
-                });
286
-            }
287
-            else if (header == DestijlCommandList.CAMERA_IMAGE)
288
-            {
289
-                imageReceivedCounter++;
267
+                    break;
268
+                case DestijlCommandList.ROBOT_BATTERY_LEVEL:
269
+                    string batLevel = "";
290 270
 
291
-                byte[] image = new byte[2];
292
-                try
293
-                {
294
-                    image = Convert.FromBase64String(data);
295
-                }
296
-                catch (FormatException)
297
-                {
298
-                    badImageReceivedCounter++;
299
-                    Console.WriteLine("Unable to convert from base64 ");
300
-                }
271
+                    switch (data[0])
272
+                    {
273
+                        case '2':
274
+                            batLevel = "High";
275
+                            break;
276
+                        case '1':
277
+                            batLevel = "Low";
278
+                            break;
279
+                        case '0':
280
+                            batLevel = "Empty";
281
+                            break;
282
+                        default:
283
+                            batLevel = "Invalid value";
284
+                            break;
285
+                    }
301 286
 
302
-                try
303
-                {
304
-                    imageWidget.ShowImage(image);
305
-                }
306
-                catch (GLib.GException)
307
-                {
308
-                    badImageReceivedCounter++;
287
+                    Gtk.Application.Invoke(delegate
288
+                    {
289
+                        labelBatteryLevel.Text = batLevel;
290
+                    });
291
+
292
+                    break;
293
+                case DestijlCommandList.CAMERA_IMAGE:
294
+                    imageReceivedCounter++;
295
+
296
+                    byte[] image = new byte[2];
297
+                    try
298
+                    {
299
+                        image = Convert.FromBase64String(data);
300
+                    }
301
+                    catch (FormatException)
302
+                    {
303
+                        badImageReceivedCounter++;
304
+                        Console.WriteLine("Unable to convert from base64 ");
305
+                    }
306
+
307
+                    try
308
+                    {
309
+                        imageWidget.ShowImage(image);
310
+                    }
311
+                    catch (GLib.GException)
312
+                    {
313
+                        badImageReceivedCounter++;
309 314
 #if DEBUG
310
-                    Console.WriteLine("Bad Image: " + badImageReceivedCounter +
311
-                                      " / " + imageReceivedCounter +
312
-                                      " (" + badImageReceivedCounter * 100 / imageReceivedCounter + "%)");
315
+                        Console.WriteLine("Bad Image: " + badImageReceivedCounter +
316
+                                          " / " + imageReceivedCounter +
317
+                                          " (" + badImageReceivedCounter * 100 / imageReceivedCounter + "%)");
313 318
 #endif
314
-                }
315
-                //}
316
-            }
317
-            else if (header == DestijlCommandList.CAMERA_POSITION)
318
-            {
319
-                imageWidget.Position = DestijlCommandManager.DecodePosition(data);
319
+                    }
320
+
321
+                    break;
322
+                case DestijlCommandList.CAMERA_POSITION:
323
+                    imageWidget.Position = DestijlCommandManager.DecodePosition(data);
324
+
325
+                    break;
326
+                default:
327
+                    Console.WriteLine("Untreated message from supervisor: " + header + ": " + data);
328
+
329
+                    break;
320 330
             }
321 331
         }
322 332
     }
@@ -527,50 +537,6 @@ public partial class MainWindow : Gtk.Window
527 537
     }
528 538
 
529 539
     /// <summary>
530
-    /// Callback called when battery timer expired
531
-    /// </summary>
532
-    /// <param name="sender">Sender object</param>
533
-    /// <param name="e">Event</param>
534
-    void OnBatteryTimerElapsed(object sender, System.Timers.ElapsedEventArgs e)
535
-    {
536
-        DestijlCommandManager.CommandStatus status;
537
-        batteryTimer.Stop();
538
-
539
-        // if battery checkbox is checked, a request for battery level is done
540
-        if (checkButtonGetBattery.Active)
541
-        {
542
-            status = cmdManager.RobotGetBattery();
543
-
544
-            // if status is not ok, show appropriate message and print "Unknown" for battery level
545
-            switch (status)
546
-            {
547
-                case DestijlCommandManager.CommandStatus.Success:
548
-                    batteryTimer.Start();
549
-                    break;
550
-                case DestijlCommandManager.CommandStatus.CommunicationLostWithServer:
551
-                    Console.WriteLine("Error: Connection lost with server");
552
-                    batteryTimer.Stop();
553
-                    labelBatteryLevel.Text = "Unknown";
554
-
555
-                    ChangeState(SystemState.NotConnected);
556
-                    break;
557
-                case DestijlCommandManager.CommandStatus.CommunicationLostWithRobot:
558
-                    Console.WriteLine("Error: Connection lost with robot");
559
-                    batteryTimer.Stop();
560
-                    labelBatteryLevel.Text = "Unknown";
561
-
562
-                    ChangeState(SystemState.ServerConnected);
563
-                    break;
564
-                default:
565
-                    labelBatteryLevel.Text = "Unknown";
566
-                    batteryTimer.Start();
567
-                    break;
568
-            }
569
-        }
570
-        else batteryTimer.Start();
571
-    }
572
-
573
-    /// <summary>
574 540
     /// Callback called when checkbutton for camera is clicked
575 541
     /// </summary>
576 542
     /// <param name="sender">Sender object</param>

+ 81
- 97
software/monitor/monitor/gtk-gui/MainWindow.cs View File

@@ -125,8 +125,6 @@ public partial class MainWindow
125 125
 
126 126
 	private global::Gtk.Label labelBatteryLevel;
127 127
 
128
-	private global::Gtk.CheckButton checkButtonGetBattery;
129
-
130 128
 	protected virtual void Build()
131 129
 	{
132 130
 		global::Stetic.Gui.Initialize(this);
@@ -530,92 +528,91 @@ public partial class MainWindow
530 528
 		this.table4.ColumnSpacing = ((uint)(6));
531 529
 		// Container child table4.Gtk.Table+TableChild
532 530
 		this.buttonDown = new global::Gtk.Button();
533
-		global::Gtk.Tooltips w40 = new Gtk.Tooltips();
534
-		w40.SetTip(this.buttonDown, "Move robot backward", "Move robot backward");
531
+		this.buttonDown.TooltipMarkup = "Move robot backward";
535 532
 		this.buttonDown.CanFocus = true;
536 533
 		this.buttonDown.Name = "buttonDown";
537 534
 		this.buttonDown.UseUnderline = true;
538
-		global::Gtk.Image w41 = new global::Gtk.Image();
539
-		w41.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.pan-down-symbolic.symbolic.png");
540
-		this.buttonDown.Image = w41;
535
+		global::Gtk.Image w40 = new global::Gtk.Image();
536
+		w40.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.pan-down-symbolic.symbolic.png");
537
+		this.buttonDown.Image = w40;
541 538
 		this.table4.Add(this.buttonDown);
542
-		global::Gtk.Table.TableChild w42 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonDown]));
543
-		w42.TopAttach = ((uint)(2));
544
-		w42.BottomAttach = ((uint)(3));
545
-		w42.LeftAttach = ((uint)(1));
546
-		w42.RightAttach = ((uint)(2));
547
-		w42.XOptions = ((global::Gtk.AttachOptions)(4));
548
-		w42.YOptions = ((global::Gtk.AttachOptions)(4));
539
+		global::Gtk.Table.TableChild w41 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonDown]));
540
+		w41.TopAttach = ((uint)(2));
541
+		w41.BottomAttach = ((uint)(3));
542
+		w41.LeftAttach = ((uint)(1));
543
+		w41.RightAttach = ((uint)(2));
544
+		w41.XOptions = ((global::Gtk.AttachOptions)(4));
545
+		w41.YOptions = ((global::Gtk.AttachOptions)(4));
549 546
 		// Container child table4.Gtk.Table+TableChild
550 547
 		this.buttonForward = new global::Gtk.Button();
551
-		w40.SetTip(this.buttonForward, "Move robot forward", "Move robot forward");
548
+		this.buttonForward.TooltipMarkup = "Move robot forward";
552 549
 		this.buttonForward.CanFocus = true;
553 550
 		this.buttonForward.Name = "buttonForward";
554 551
 		this.buttonForward.UseUnderline = true;
555
-		global::Gtk.Image w43 = new global::Gtk.Image();
556
-		w43.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.pan-up-symbolic.symbolic.png");
557
-		this.buttonForward.Image = w43;
552
+		global::Gtk.Image w42 = new global::Gtk.Image();
553
+		w42.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.pan-up-symbolic.symbolic.png");
554
+		this.buttonForward.Image = w42;
558 555
 		this.table4.Add(this.buttonForward);
559
-		global::Gtk.Table.TableChild w44 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonForward]));
560
-		w44.LeftAttach = ((uint)(1));
561
-		w44.RightAttach = ((uint)(2));
562
-		w44.XOptions = ((global::Gtk.AttachOptions)(4));
563
-		w44.YOptions = ((global::Gtk.AttachOptions)(4));
556
+		global::Gtk.Table.TableChild w43 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonForward]));
557
+		w43.LeftAttach = ((uint)(1));
558
+		w43.RightAttach = ((uint)(2));
559
+		w43.XOptions = ((global::Gtk.AttachOptions)(4));
560
+		w43.YOptions = ((global::Gtk.AttachOptions)(4));
564 561
 		// Container child table4.Gtk.Table+TableChild
565 562
 		this.buttonLeft = new global::Gtk.Button();
566
-		w40.SetTip(this.buttonLeft, "Turn robot to the left", "Turn robot to the left");
563
+		this.buttonLeft.TooltipMarkup = "Turn robot to the left";
567 564
 		this.buttonLeft.CanFocus = true;
568 565
 		this.buttonLeft.Name = "buttonLeft";
569 566
 		this.buttonLeft.UseUnderline = true;
570
-		global::Gtk.Image w45 = new global::Gtk.Image();
571
-		w45.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.pan-start-symbolic.symbolic.png");
572
-		this.buttonLeft.Image = w45;
567
+		global::Gtk.Image w44 = new global::Gtk.Image();
568
+		w44.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.pan-start-symbolic.symbolic.png");
569
+		this.buttonLeft.Image = w44;
573 570
 		this.table4.Add(this.buttonLeft);
574
-		global::Gtk.Table.TableChild w46 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonLeft]));
575
-		w46.TopAttach = ((uint)(1));
576
-		w46.BottomAttach = ((uint)(2));
577
-		w46.XOptions = ((global::Gtk.AttachOptions)(4));
578
-		w46.YOptions = ((global::Gtk.AttachOptions)(4));
571
+		global::Gtk.Table.TableChild w45 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonLeft]));
572
+		w45.TopAttach = ((uint)(1));
573
+		w45.BottomAttach = ((uint)(2));
574
+		w45.XOptions = ((global::Gtk.AttachOptions)(4));
575
+		w45.YOptions = ((global::Gtk.AttachOptions)(4));
579 576
 		// Container child table4.Gtk.Table+TableChild
580 577
 		this.buttonRight = new global::Gtk.Button();
581
-		w40.SetTip(this.buttonRight, "Turn robot to the right", "Turn robot to the right");
578
+		this.buttonRight.TooltipMarkup = "Turn robot to the right";
582 579
 		this.buttonRight.CanFocus = true;
583 580
 		this.buttonRight.Name = "buttonRight";
584 581
 		this.buttonRight.UseUnderline = true;
585
-		global::Gtk.Image w47 = new global::Gtk.Image();
586
-		w47.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.pan-end-symbolic.symbolic.png");
587
-		this.buttonRight.Image = w47;
582
+		global::Gtk.Image w46 = new global::Gtk.Image();
583
+		w46.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.pan-end-symbolic.symbolic.png");
584
+		this.buttonRight.Image = w46;
588 585
 		this.table4.Add(this.buttonRight);
589
-		global::Gtk.Table.TableChild w48 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonRight]));
590
-		w48.TopAttach = ((uint)(1));
591
-		w48.BottomAttach = ((uint)(2));
592
-		w48.LeftAttach = ((uint)(2));
593
-		w48.RightAttach = ((uint)(3));
594
-		w48.XOptions = ((global::Gtk.AttachOptions)(4));
595
-		w48.YOptions = ((global::Gtk.AttachOptions)(4));
586
+		global::Gtk.Table.TableChild w47 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonRight]));
587
+		w47.TopAttach = ((uint)(1));
588
+		w47.BottomAttach = ((uint)(2));
589
+		w47.LeftAttach = ((uint)(2));
590
+		w47.RightAttach = ((uint)(3));
591
+		w47.XOptions = ((global::Gtk.AttachOptions)(4));
592
+		w47.YOptions = ((global::Gtk.AttachOptions)(4));
596 593
 		// Container child table4.Gtk.Table+TableChild
597 594
 		this.buttonStop = new global::Gtk.Button();
598
-		w40.SetTip(this.buttonStop, "Stop robot movements", "Stop robot movements");
595
+		this.buttonStop.TooltipMarkup = "Stop robot movements";
599 596
 		this.buttonStop.CanFocus = true;
600 597
 		this.buttonStop.Name = "buttonStop";
601 598
 		this.buttonStop.UseUnderline = true;
602
-		global::Gtk.Image w49 = new global::Gtk.Image();
603
-		w49.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.hand-filled-32.png");
604
-		this.buttonStop.Image = w49;
599
+		global::Gtk.Image w48 = new global::Gtk.Image();
600
+		w48.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("monitor.ressources.hand-filled-32.png");
601
+		this.buttonStop.Image = w48;
605 602
 		this.table4.Add(this.buttonStop);
606
-		global::Gtk.Table.TableChild w50 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonStop]));
607
-		w50.TopAttach = ((uint)(1));
608
-		w50.BottomAttach = ((uint)(2));
609
-		w50.LeftAttach = ((uint)(1));
610
-		w50.RightAttach = ((uint)(2));
611
-		w50.XOptions = ((global::Gtk.AttachOptions)(4));
612
-		w50.YOptions = ((global::Gtk.AttachOptions)(4));
603
+		global::Gtk.Table.TableChild w49 = ((global::Gtk.Table.TableChild)(this.table4[this.buttonStop]));
604
+		w49.TopAttach = ((uint)(1));
605
+		w49.BottomAttach = ((uint)(2));
606
+		w49.LeftAttach = ((uint)(1));
607
+		w49.RightAttach = ((uint)(2));
608
+		w49.XOptions = ((global::Gtk.AttachOptions)(4));
609
+		w49.YOptions = ((global::Gtk.AttachOptions)(4));
613 610
 		this.alignment8.Add(this.table4);
614 611
 		this.vbox9.Add(this.alignment8);
615
-		global::Gtk.Box.BoxChild w52 = ((global::Gtk.Box.BoxChild)(this.vbox9[this.alignment8]));
616
-		w52.Position = 0;
617
-		w52.Expand = false;
618
-		w52.Fill = false;
612
+		global::Gtk.Box.BoxChild w51 = ((global::Gtk.Box.BoxChild)(this.vbox9[this.alignment8]));
613
+		w51.Position = 0;
614
+		w51.Expand = false;
615
+		w51.Fill = false;
619 616
 		// Container child vbox9.Gtk.Box+BoxChild
620 617
 		this.table3 = new global::Gtk.Table(((uint)(1)), ((uint)(2)), false);
621 618
 		this.table3.Name = "table3";
@@ -628,10 +625,10 @@ public partial class MainWindow
628 625
 		this.label3.LabelProp = global::Mono.Unix.Catalog.GetString("Battery level:");
629 626
 		this.label3.Justify = ((global::Gtk.Justification)(1));
630 627
 		this.table3.Add(this.label3);
631
-		global::Gtk.Table.TableChild w53 = ((global::Gtk.Table.TableChild)(this.table3[this.label3]));
632
-		w53.YPadding = ((uint)(10));
633
-		w53.XOptions = ((global::Gtk.AttachOptions)(4));
634
-		w53.YOptions = ((global::Gtk.AttachOptions)(4));
628
+		global::Gtk.Table.TableChild w52 = ((global::Gtk.Table.TableChild)(this.table3[this.label3]));
629
+		w52.YPadding = ((uint)(10));
630
+		w52.XOptions = ((global::Gtk.AttachOptions)(4));
631
+		w52.YOptions = ((global::Gtk.AttachOptions)(4));
635 632
 		// Container child table3.Gtk.Table+TableChild
636 633
 		this.labelBatteryLevel = new global::Gtk.Label();
637 634
 		this.labelBatteryLevel.Name = "labelBatteryLevel";
@@ -639,49 +636,36 @@ public partial class MainWindow
639 636
 		this.labelBatteryLevel.Xalign = 0F;
640 637
 		this.labelBatteryLevel.LabelProp = global::Mono.Unix.Catalog.GetString("Unknown");
641 638
 		this.table3.Add(this.labelBatteryLevel);
642
-		global::Gtk.Table.TableChild w54 = ((global::Gtk.Table.TableChild)(this.table3[this.labelBatteryLevel]));
643
-		w54.LeftAttach = ((uint)(1));
644
-		w54.RightAttach = ((uint)(2));
645
-		w54.YOptions = ((global::Gtk.AttachOptions)(4));
639
+		global::Gtk.Table.TableChild w53 = ((global::Gtk.Table.TableChild)(this.table3[this.labelBatteryLevel]));
640
+		w53.LeftAttach = ((uint)(1));
641
+		w53.RightAttach = ((uint)(2));
642
+		w53.YOptions = ((global::Gtk.AttachOptions)(4));
646 643
 		this.vbox9.Add(this.table3);
647
-		global::Gtk.Box.BoxChild w55 = ((global::Gtk.Box.BoxChild)(this.vbox9[this.table3]));
648
-		w55.Position = 2;
649
-		w55.Expand = false;
650
-		w55.Fill = false;
651
-		// Container child vbox9.Gtk.Box+BoxChild
652
-		this.checkButtonGetBattery = new global::Gtk.CheckButton();
653
-		this.checkButtonGetBattery.CanFocus = true;
654
-		this.checkButtonGetBattery.Name = "checkButtonGetBattery";
655
-		this.checkButtonGetBattery.Label = global::Mono.Unix.Catalog.GetString("Get battery level");
656
-		this.checkButtonGetBattery.Active = true;
657
-		this.checkButtonGetBattery.DrawIndicator = true;
658
-		this.checkButtonGetBattery.UseUnderline = true;
659
-		this.vbox9.Add(this.checkButtonGetBattery);
660
-		global::Gtk.Box.BoxChild w56 = ((global::Gtk.Box.BoxChild)(this.vbox9[this.checkButtonGetBattery]));
661
-		w56.Position = 3;
662
-		w56.Expand = false;
663
-		w56.Fill = false;
644
+		global::Gtk.Box.BoxChild w54 = ((global::Gtk.Box.BoxChild)(this.vbox9[this.table3]));
645
+		w54.Position = 2;
646
+		w54.Expand = false;
647
+		w54.Fill = false;
664 648
 		this.gtkAlignmentRobotControl.Add(this.vbox9);
665 649
 		this.vbox12.Add(this.gtkAlignmentRobotControl);
666
-		global::Gtk.Box.BoxChild w58 = ((global::Gtk.Box.BoxChild)(this.vbox12[this.gtkAlignmentRobotControl]));
667
-		w58.Position = 1;
650
+		global::Gtk.Box.BoxChild w56 = ((global::Gtk.Box.BoxChild)(this.vbox12[this.gtkAlignmentRobotControl]));
651
+		w56.Position = 1;
668 652
 		this.vbox5.Add(this.vbox12);
669
-		global::Gtk.Box.BoxChild w59 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.vbox12]));
670
-		w59.Position = 4;
653
+		global::Gtk.Box.BoxChild w57 = ((global::Gtk.Box.BoxChild)(this.vbox5[this.vbox12]));
654
+		w57.Position = 4;
671 655
 		this.alignment3.Add(this.vbox5);
672 656
 		this.hbox3.Add(this.alignment3);
673
-		global::Gtk.Box.BoxChild w61 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.alignment3]));
674
-		w61.Position = 1;
675
-		w61.Expand = false;
676
-		w61.Fill = false;
657
+		global::Gtk.Box.BoxChild w59 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.alignment3]));
658
+		w59.Position = 1;
659
+		w59.Expand = false;
660
+		w59.Fill = false;
677 661
 		this.hbox1.Add(this.hbox3);
678
-		global::Gtk.Box.BoxChild w62 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.hbox3]));
679
-		w62.Position = 1;
680
-		w62.Expand = false;
681
-		w62.Fill = false;
662
+		global::Gtk.Box.BoxChild w60 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.hbox3]));
663
+		w60.Position = 1;
664
+		w60.Expand = false;
665
+		w60.Fill = false;
682 666
 		this.vbox1.Add(this.hbox1);
683
-		global::Gtk.Box.BoxChild w63 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
684
-		w63.Position = 1;
667
+		global::Gtk.Box.BoxChild w61 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
668
+		w61.Position = 1;
685 669
 		this.Add(this.vbox1);
686 670
 		if ((this.Child != null))
687 671
 		{

+ 1
- 14
software/monitor/monitor/gtk-gui/gui.stetic View File

@@ -809,20 +809,7 @@
809 809
                                       </packing>
810 810
                                     </child>
811 811
                                     <child>
812
-                                      <widget class="Gtk.CheckButton" id="checkButtonGetBattery">
813
-                                        <property name="MemberName" />
814
-                                        <property name="CanFocus">True</property>
815
-                                        <property name="Label" translatable="yes">Get battery level</property>
816
-                                        <property name="DrawIndicator">True</property>
817
-                                        <property name="HasLabel">True</property>
818
-                                        <property name="UseUnderline">True</property>
819
-                                      </widget>
820
-                                      <packing>
821
-                                        <property name="Position">3</property>
822
-                                        <property name="AutoSize">True</property>
823
-                                        <property name="Expand">False</property>
824
-                                        <property name="Fill">False</property>
825
-                                      </packing>
812
+                                      <placeholder />
826 813
                                     </child>
827 814
                                   </widget>
828 815
                                 </child>

BIN
software/monitor/monitor/monitor View File


Loading…
Cancel
Save