moserial r12 - in trunk: . src
- From: mjc svn gnome org
- To: svn-commits-list gnome org
- Subject: moserial r12 - in trunk: . src
- Date: Thu, 12 Mar 2009 15:26:40 +0000 (UTC)
Author: mjc
Date: Thu Mar 12 15:26:40 2009
New Revision: 12
URL: http://svn.gnome.org/viewvc/moserial?rev=12&view=rev
Log:
2009-03-12 Michael J. Chudobiak <mjc svn gnome org>
[ moserial 1.0.5 released ]
* src/MainWindow.vala:
Switch outgoing view to HEX when send mode is HEX.
Modified:
trunk/ChangeLog
trunk/src/MainWindow.vala
Modified: trunk/src/MainWindow.vala
==============================================================================
--- trunk/src/MainWindow.vala (original)
+++ trunk/src/MainWindow.vala Thu Mar 12 15:26:40 2009
@@ -49,6 +49,7 @@
private Label stopRecordingLabel;
private Paned paned;
private Notebook incoming_notebook;
+ private Notebook outgoing_notebook;
private HexTextBuffer incomingHexTextBuffer;
private HexTextBuffer outgoingHexTextBuffer;
private TextBuffer incomingAsciiTextBuffer;
@@ -188,6 +189,9 @@
//setup incoming notebook
incoming_notebook = (Notebook)builder.get_object("incoming_notebook");
+ //setup outgoing notebook
+ outgoing_notebook = (Notebook)builder.get_object("outgoing_notebook");
+
//setup textBuffers;
incomingHexTextBuffer = new HexTextBuffer();
incomingAsciiTextBuffer = new TextBuffer(new TextTagTable());
@@ -230,6 +234,7 @@
entry.activate += sendString;
inputMode = (ComboBox)builder.get_object("input_mode");
inputMode.set_active(0);
+ inputMode.changed += inputModeChanged;
terminationMode = (ComboBox)builder.get_object("termination_mode");
terminationMode.set_active(0);
@@ -330,6 +335,7 @@
return;
sendChooserDialog.show(currentPaths.sendFrom);
}
+
private void doSend(SendChooserDialog dialog) {
Szwrapper.Protocol protocol;
string filename;
@@ -406,6 +412,7 @@
receiveProgressDialog.transferCanceled-=rz.transferCanceled;
receiveProgressDialog.hide(receiveProgressDialog);
}
+
public void record(ToggleToolButton button) {
if (button.get_active()) {
button.set_label_widget(stopRecordingLabel);
@@ -612,6 +619,13 @@
}
}
+ private void inputModeChanged (ComboBox inputMode) {
+ if (inputMode.get_active()==1)
+ outgoing_notebook.set_current_page(1); // HEX
+ else
+ outgoing_notebook.set_current_page(0); // ASCII
+ }
+
private void showHelpButton (ToolButton button) {
showHelp ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]