00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef CONEXUSMMTTYWIDGET_H
00020 #define CONEXUSMMTTYWIDGET_H
00021
00022 #include <gtkmm/table.h>
00023
00024 #include <conexusmm/serialcombobox.h>
00025 #include <conexusmm/ttybytesizeradio.h>
00026 #include <conexusmm/ttyflowcontrolcombobox.h>
00027 #include <conexusmm/ttyparitycombobox.h>
00028 #include <conexusmm/ttyparityerrorcombobox.h>
00029 #include <conexusmm/ttyspeedcombobox.h>
00030 #include <conexusmm/ttystopbitsradio.h>
00031
00032 namespace ConexusGtk {
00033
00037 class TTYWidget : public Gtk::Table
00038 {
00039 public:
00040 TTYWidget();
00041
00042 ~TTYWidget();
00043
00044 void connect( Conexus::TTY& tty );
00045 void disconnect( );
00046
00047 SerialComboBox& device_widget();
00048 TTYStopBitsRadio& stop_bits_widget();
00049 TTYByteSizeRadio& byte_size_widget();
00050 TTYFlowControlComboBox& flow_control_widget();
00051 TTYParityComboBox& parity_widget();
00052 TTYParityErrorComboBox& parity_error_widget();
00053 TTYSpeedComboBox& input_speed_widget();
00054 TTYSpeedComboBox& output_speed_widget();
00055 Gtk::CheckButton& carrier_detect_widget();
00056 Gtk::CheckButton& receiver_enable_button();
00057
00058 protected:
00059 Conexus::TTY* m_tty;
00060
00061 SerialComboBox m_serial_combobox;
00062 TTYStopBitsRadio m_stop_bits_radio;
00063 TTYByteSizeRadio m_byte_size_radio;
00064 TTYFlowControlComboBox m_flow_control_combobox;
00065 TTYParityComboBox m_parity_combobox;
00066 TTYParityErrorComboBox m_parity_error_combobox;
00067 TTYSpeedComboBox m_input_speed_combobox, m_output_speed_combobox;
00068 Gtk::Button m_link_speed_button;
00069 bool m_speed_linked;
00070 Glib::RefPtr<Gdk::Pixbuf> m_link_image, m_unlink_image;
00071 Gtk::CheckButton m_carrier_detect;
00072 Gtk::CheckButton m_receiver_enable_button;
00073
00074 void on_serial_device_changed();
00075 void on_byte_size_changed();
00076 void on_stop_bits_changed();
00077 void on_flow_control_changed();
00078 void on_parity_changed();
00079 void on_parity_error_changed();
00080 void on_input_speed_changed();
00081 void on_output_speed_changed();
00082 void on_speed_link_changed();
00083 void on_carrier_detect_changed();
00084 void on_receiver_enable_changed();
00085 };
00086
00087 }
00088
00089 #endif