[chronojump] Fixed 647863 - better ports info
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed 647863 - better ports info
- Date: Mon, 18 Apr 2011 13:59:53 +0000 (UTC)
commit ceee3066dd33946fa5edf89166247592253336fb
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Apr 18 15:59:23 2011 +0200
Fixed 647863 - better ports info
glade/chronojump.glade | 444 ++++++++++++++++++++++++++++--------------------
src/gui/chronojump.cs | 32 +++--
src/gui/chronopic.cs | 45 +++++-
3 files changed, 325 insertions(+), 196 deletions(-)
---
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index 2696b0d..b23f339 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -23031,6 +23031,7 @@ Evaluator can use real name or nickname.</property>
<widget class="GtkWindow" id="chronopic_window">
<property name="border_width">10</property>
<property name="title" translatable="yes">Chronopic window</property>
+ <property name="window_position">center-always</property>
<signal name="delete_event" handler="on_delete_event"/>
<child>
<widget class="GtkVBox" id="vbox1">
@@ -23049,7 +23050,8 @@ Evaluator can use real name or nickname.</property>
<widget class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
+ <property name="label_yalign">0.69999998807907104</property>
+ <property name="shadow_type">out</property>
<child>
<widget class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
@@ -23159,262 +23161,285 @@ Evaluator can use real name or nickname.</property>
<widget class="GtkFrame" id="frame2">
<property name="visible">True</property>
<property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
+ <property name="label_yalign">0.69999998807907104</property>
+ <property name="shadow_type">out</property>
<child>
<widget class="GtkAlignment" id="alignment2">
<property name="visible">True</property>
<property name="top_padding">4</property>
<property name="left_padding">12</property>
<child>
- <widget class="GtkTable" id="table1">
+ <widget class="GtkVBox" id="vbox2">
<property name="visible">True</property>
- <property name="n_rows">3</property>
- <property name="n_columns">4</property>
- <property name="column_spacing">8</property>
- <property name="row_spacing">8</property>
+ <property name="spacing">4</property>
<child>
- <widget class="GtkHBox" id="hbox3">
+ <widget class="GtkCheckButton" id="checkbutton_multi_show">
+ <property name="label" translatable="yes">Show</property>
<property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="draw_indicator">True</property>
+ <signal name="clicked" handler="on_checkbutton_multi_show_clicked"/>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkTable" id="table_multi_chronopic">
+ <property name="visible">True</property>
+ <property name="n_rows">3</property>
+ <property name="n_columns">4</property>
+ <property name="column_spacing">8</property>
+ <property name="row_spacing">8</property>
<child>
- <widget class="GtkComboBox" id="combo_linux2">
+ <widget class="GtkHBox" id="hbox3">
<property name="visible">True</property>
- <property name="items">/dev/ttyUSB?
+ <child>
+ <widget class="GtkComboBox" id="combo_linux2">
+ <property name="visible">True</property>
+ <property name="items">/dev/ttyUSB?
</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkComboBox" id="combo_windows2">
+ <property name="visible">True</property>
+ <property name="items">COM?</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
- <property name="position">0</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
</packing>
</child>
<child>
- <widget class="GtkComboBox" id="combo_windows2">
+ <widget class="GtkHBox" id="hbox4">
<property name="visible">True</property>
- <property name="items">COM?</property>
+ <child>
+ <widget class="GtkComboBox" id="combo_linux3">
+ <property name="visible">True</property>
+ <property name="items">/dev/ttyUSB?
+</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkComboBox" id="combo_windows3">
+ <property name="visible">True</property>
+ <property name="items">COM?</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
- <property name="position">1</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
</packing>
</child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox4">
- <property name="visible">True</property>
<child>
- <widget class="GtkComboBox" id="combo_linux3">
+ <widget class="GtkHBox" id="hbox5">
<property name="visible">True</property>
- <property name="items">/dev/ttyUSB?
+ <child>
+ <widget class="GtkComboBox" id="combo_linux4">
+ <property name="visible">True</property>
+ <property name="items">/dev/ttyUSB?
</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkComboBox" id="combo_windows4">
+ <property name="visible">True</property>
+ <property name="items">COM?</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
- <property name="position">0</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
</packing>
</child>
<child>
- <widget class="GtkComboBox" id="combo_windows3">
+ <widget class="GtkVBox" id="vbox3">
<property name="visible">True</property>
- <property name="items">COM?</property>
+ <child>
+ <widget class="GtkImage" id="image_cp2_no">
+ <property name="visible">True</property>
+ <property name="stock">gtk-no</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkImage" id="image_cp2_yes">
+ <property name="visible">True</property>
+ <property name="stock">gtk-yes</property>
+ <property name="icon-size">5</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
- <property name="position">1</property>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
</packing>
</child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkHBox" id="hbox5">
- <property name="visible">True</property>
<child>
- <widget class="GtkComboBox" id="combo_linux4">
+ <widget class="GtkVBox" id="vbox4">
<property name="visible">True</property>
- <property name="items">/dev/ttyUSB?
-</property>
+ <child>
+ <widget class="GtkImage" id="image_cp3_no">
+ <property name="visible">True</property>
+ <property name="stock">gtk-no</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkImage" id="image_cp3_yes">
+ <property name="visible">True</property>
+ <property name="stock">gtk-yes</property>
+ <property name="icon-size">5</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
- <property name="position">0</property>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
</packing>
</child>
<child>
- <widget class="GtkComboBox" id="combo_windows4">
+ <widget class="GtkVBox" id="vbox7">
<property name="visible">True</property>
- <property name="items">COM?</property>
+ <child>
+ <widget class="GtkImage" id="image_cp4_no">
+ <property name="visible">True</property>
+ <property name="stock">gtk-no</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkImage" id="image_cp4_yes">
+ <property name="visible">True</property>
+ <property name="stock">gtk-yes</property>
+ <property name="icon-size">5</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
- <property name="position">1</property>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
</packing>
</child>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- </packing>
- </child>
- <child>
- <widget class="GtkVBox" id="vbox2">
- <property name="visible">True</property>
<child>
- <widget class="GtkImage" id="image_cp2_no">
+ <widget class="GtkLabel" id="label1">
<property name="visible">True</property>
- <property name="stock">gtk-no</property>
+ <property name="label">Chronopic 2</property>
</widget>
- <packing>
- <property name="position">0</property>
- </packing>
</child>
<child>
- <widget class="GtkImage" id="image_cp2_yes">
+ <widget class="GtkLabel" id="label2">
<property name="visible">True</property>
- <property name="stock">gtk-yes</property>
- <property name="icon-size">5</property>
+ <property name="label">Chronopic 3</property>
</widget>
<packing>
- <property name="position">1</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
</packing>
</child>
- </widget>
- <packing>
- <property name="left_attach">3</property>
- <property name="right_attach">4</property>
- </packing>
- </child>
- <child>
- <widget class="GtkVBox" id="vbox3">
- <property name="visible">True</property>
<child>
- <widget class="GtkImage" id="image_cp3_no">
+ <widget class="GtkLabel" id="label3">
<property name="visible">True</property>
- <property name="stock">gtk-no</property>
+ <property name="label">Chronopic 4</property>
</widget>
<packing>
- <property name="position">0</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
</packing>
</child>
<child>
- <widget class="GtkImage" id="image_cp3_yes">
+ <widget class="GtkButton" id="button_connect_cp2">
+ <property name="label" translatable="yes">Connect</property>
<property name="visible">True</property>
- <property name="stock">gtk-yes</property>
- <property name="icon-size">5</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked" handler="on_button_connect_cp_clicked"/>
</widget>
<packing>
- <property name="position">1</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
</packing>
</child>
- </widget>
- <packing>
- <property name="left_attach">3</property>
- <property name="right_attach">4</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkVBox" id="vbox4">
- <property name="visible">True</property>
<child>
- <widget class="GtkImage" id="image_cp4_no">
+ <widget class="GtkButton" id="button_connect_cp3">
+ <property name="label" translatable="yes">Connect</property>
<property name="visible">True</property>
- <property name="stock">gtk-no</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked" handler="on_button_connect_cp_clicked"/>
</widget>
<packing>
- <property name="position">0</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
</packing>
</child>
<child>
- <widget class="GtkImage" id="image_cp4_yes">
+ <widget class="GtkButton" id="button_connect_cp4">
+ <property name="label" translatable="yes">Connect</property>
<property name="visible">True</property>
- <property name="stock">gtk-yes</property>
- <property name="icon-size">5</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked" handler="on_button_connect_cp_clicked"/>
</widget>
<packing>
- <property name="position">1</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
</packing>
</child>
</widget>
<packing>
- <property name="left_attach">3</property>
- <property name="right_attach">4</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label1">
- <property name="visible">True</property>
- <property name="label">Chronopic 2</property>
- </widget>
- </child>
- <child>
- <widget class="GtkLabel" id="label2">
- <property name="visible">True</property>
- <property name="label">Chronopic 3</property>
- </widget>
- <packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label3">
- <property name="visible">True</property>
- <property name="label">Chronopic 4</property>
- </widget>
- <packing>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="button_connect_cp2">
- <property name="label" translatable="yes">Connect</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="on_button_connect_cp_clicked"/>
- </widget>
- <packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="button_connect_cp3">
- <property name="label" translatable="yes">Connect</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="on_button_connect_cp_clicked"/>
- </widget>
- <packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- <child>
- <widget class="GtkButton" id="button_connect_cp4">
- <property name="label" translatable="yes">Connect</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="on_button_connect_cp_clicked"/>
- </widget>
- <packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="position">1</property>
</packing>
</child>
</widget>
@@ -23440,19 +23465,72 @@ Evaluator can use real name or nickname.</property>
<widget class="GtkFrame" id="frame3">
<property name="visible">True</property>
<property name="label_xalign">0</property>
- <property name="shadow_type">none</property>
+ <property name="label_yalign">0.69999998807907104</property>
+ <property name="shadow_type">out</property>
<child>
- <widget class="GtkTextView" id="textview_ports_found">
+ <widget class="GtkVBox" id="vbox6">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="editable">False</property>
- <property name="cursor_visible">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <widget class="GtkHBox" id="hbox1">
+ <property name="visible">True</property>
+ <property name="spacing">12</property>
+ <child>
+ <widget class="GtkTextView" id="textview_ports_found">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="editable">False</property>
+ <property name="left_margin">4</property>
+ <property name="right_margin">4</property>
+ <property name="cursor_visible">False</property>
+ <property name="accepts_tab">False</property>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkButton" id="button_help">
+ <property name="label">gtk-help</property>
+ <property name="height_request">40</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="on_button_help_clicked"/>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkTextView" id="textview_ports_found_explanation">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="editable">False</property>
+ <property name="wrap_mode">word</property>
+ <property name="left_margin">4</property>
+ <property name="right_margin">4</property>
+ <property name="cursor_visible">False</property>
+ <property name="accepts_tab">False</property>
+ </widget>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
</child>
<child>
<widget class="GtkLabel" id="label4">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Chronopic is on one of this ports</b></property>
+ <property name="label" translatable="yes"><b>Chronopic is on one of these ports</b></property>
<property name="use_markup">True</property>
</widget>
<packing>
@@ -23469,13 +23547,13 @@ Evaluator can use real name or nickname.</property>
<property name="visible">True</property>
<property name="layout_style">spread</property>
<child>
- <widget class="GtkButton" id="button_help">
- <property name="label">gtk-help</property>
+ <widget class="GtkButton" id="button_reload">
+ <property name="label">gtk-refresh</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
- <signal name="clicked" handler="on_button_help_clicked"/>
+ <signal name="clicked" handler="on_button_reload_clicked"/>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 2ea8623..cd07b9e 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -495,16 +495,6 @@ public partial class ChronoJumpWindow
}
*/
- private void createChronopicWindow(bool recreate) {
- ArrayList cpd = new ArrayList();
- for(int i=1; i<=4;i++) {
- ChronopicPortData a = new ChronopicPortData(i,"",false);
- cpd.Add(a);
- }
- chronopicWin = ChronopicWindow.Create(cpd, recreate, volumeOn);
- chronopicLabels(0);
- }
-
private void putNonStandardIcons() {
Pixbuf pixbuf;
@@ -3929,11 +3919,31 @@ Console.WriteLine("X");
* --------------------------------------------------------
*/
+ //recreate is used when a Chronopic was disconnected
+ private void createChronopicWindow(bool recreate) {
+ ArrayList cpd = new ArrayList();
+ for(int i=1; i<=4;i++) {
+ ChronopicPortData a = new ChronopicPortData(i,"",false);
+ cpd.Add(a);
+ }
+ chronopicWin = ChronopicWindow.Create(cpd, recreate, volumeOn);
+ chronopicLabels(0);
+ }
+
private void on_chronopic_clicked (object o, EventArgs args) {
chronopicWin = ChronopicWindow.View(volumeOn);
+ chronopicWin.Button_reload.Clicked += new EventHandler(chronopicWindowReload);
chronopicWin.FakeWindowDone.Clicked += new EventHandler(on_chronopic_window_connected_or_done);
}
+ private void chronopicWindowReload(object o, EventArgs args) {
+ chronopicWin.Button_reload.Clicked -= new EventHandler(chronopicWindowReload);
+ //create chronopic window again (maybe new ports)
+ createChronopicWindow(true);
+ //show it
+ on_chronopic_clicked(o, args);
+ }
+
private void on_chronopic_window_connected_or_done (object o, EventArgs args) {
//chronopicWin.FakeWindowDone.Clicked -= new EventHandler(on_chronopic_window_connected_or_done);
int cps = chronopicWin.NumConnected();
@@ -3943,7 +3953,7 @@ Console.WriteLine("X");
chronopicLabels(cps);
}
-
+
private void chronopicLabels(int cps) {
label_connected_chronopics.Text = "<b>" + cps.ToString() + "</b>";
label_connected_chronopics.UseMarkup = true;
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index c60ec43..060ae2a 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -75,8 +75,13 @@ public class ChronopicWindow
[Widget] Gtk.Button button_connect_cp3;
[Widget] Gtk.Button button_connect_cp4;
+ [Widget] Gtk.CheckButton checkbutton_multi_show;
+ [Widget] Gtk.Table table_multi_chronopic;
+ [Widget] Gtk.Button button_reload;
+
[Widget] Gtk.Image chronopic_image;
[Widget] Gtk.TextView textview_ports_found;
+ [Widget] Gtk.TextView textview_ports_found_explanation;
//chronopic connection thread
Thread thread;
@@ -152,8 +157,12 @@ public class ChronopicWindow
}
//recreate is used when a Chronopic was disconnected
+ //port names com from gui/chronojump.cs to this method (myCpd)
static public ChronopicWindow Create (ArrayList myCpd, bool recreate, bool volumeOn)
{
+ if (ChronopicWindowBox != null && recreate) {
+ ChronopicWindowBox.chronopic_window.Hide();
+ }
if (ChronopicWindowBox == null || recreate) {
ChronopicWindowBox = new ChronopicWindow (myCpd);
}
@@ -177,13 +186,20 @@ public class ChronopicWindow
ChronopicWindowBox.volumeOn = volumeOn;
ChronopicWindowBox.checkChronopicDisconnected();
ChronopicWindowBox.createCombos();
+
+ //findPorts only puts info on textview
+ //ports info comes from gui/chronojump.cs to Create mehod
ChronopicWindowBox.findPorts();
+
ChronopicWindowBox.chronopic_window.Show();
return ChronopicWindowBox;
}
private void setDefaultValues() {
+ checkbutton_multi_show.Active = false;
+ table_multi_chronopic.Visible = false;
+
if(isWindows) {
combo_linux1.Hide();
combo_linux2.Hide();
@@ -375,7 +391,19 @@ public class ChronopicWindow
}
private void findPorts() {
- textview_ports_found.Buffer = UtilGtk.TextViewPrint(Util.StringArrayToString(SerialPort.GetPortNames(),"\n"));
+ string saferPorts = "";
+ if(Util.IsWindows())
+ saferPorts =
+ "\n\n" + Catalog.GetString("Note ports above COM4 may not work.") + "\n" +
+ Catalog.GetString("If you want a safer port, press help button below and press 'Force Chronopic to port COM1 or COM2'.");
+
+ textview_ports_found.Buffer = UtilGtk.TextViewPrint(
+ Util.StringArrayToString(SerialPort.GetPortNames(),"\n"));
+ textview_ports_found_explanation.Buffer = UtilGtk.TextViewPrint(
+ Catalog.GetString("These are USB devices like Chronopic but also pendrives, USB printers...") + "\n" +
+ Catalog.GetString("If you just connected Chronopic, refresh this window pressing 'Refresh'.") +
+ saferPorts
+ );
}
private void chronopicAtStart(object o, EventArgs args) {
@@ -487,6 +515,9 @@ public class ChronopicWindow
return myCp;
}
+ private void on_checkbutton_multi_show_clicked(object o, EventArgs args) {
+ table_multi_chronopic.Visible = checkbutton_multi_show.Active;
+ }
private void on_button_connect_cp_clicked (object o, EventArgs args) {
if (o == null)
@@ -529,7 +560,10 @@ public class ChronopicWindow
Log.WriteLine("HELP");
new HelpPorts();
}
-
+
+ private void on_button_reload_clicked (object o, EventArgs args) {
+ //event will be raised and managed on gui/chronojump.cs
+ }
public void SerialPortsClose() {
Console.WriteLine("Closing sp");
@@ -754,5 +788,12 @@ public class ChronopicWindow
public Button FakeWindowDone {
get { return fakeWindowDone; }
}
+
+ public Button Button_reload
+ {
+ set { button_reload = value; }
+ get { return button_reload; }
+ }
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]