ttywidget.h

00001 /***************************************************************************
00002 *   Copyright (C) 2001 by Rick L. Vinyard, Jr.                            *
00003 *   rvinyard@cs.nmsu.edu                                                  *
00004 *                                                                         *
00005 *   This program is free software; you can redistribute it and/or modify  *
00006 *   it under the terms of the GNU Lesser General Public License as        *
00007 *   published by the Free Software Foundation version 2.1.                *
00008 *                                                                         *
00009 *   This program is distributed in the hope that it will be useful,       *
00010 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012 *   GNU General Public License for more details.                          *
00013 *                                                                         *
00014 *   You should have received a copy of the GNU Lesser General Public      *
00015 *   License along with this library; if not, write to the                 *
00016 *   Free Software Foundation, Inc.,                                       *
00017 *   51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA              *
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

Generated on Sat Aug 26 17:35:29 2006 by  doxygen 1.4.6