author | josef <josef> | 2002-10-07 13:32:35 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-07 13:32:35 (UTC) |
commit | fa8df8b9d316f15bc089df5bde7eafb2ef10b36d (patch) (side-by-side diff) | |
tree | 8e450fb00ea73504573a35fa782a2a1735aea355 /noncore/apps/opie-console/profileeditorplugins.h | |
parent | 68d98791b05217163f97d7c233952df8075416bb (diff) | |
download | opie-fa8df8b9d316f15bc089df5bde7eafb2ef10b36d.zip opie-fa8df8b9d316f15bc089df5bde7eafb2ef10b36d.tar.gz opie-fa8df8b9d316f15bc089df5bde7eafb2ef10b36d.tar.bz2 |
- finish factorization :)
- does not work yet, but only minor bugs are left
Diffstat (limited to 'noncore/apps/opie-console/profileeditorplugins.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditorplugins.h | 62 |
1 files changed, 61 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/profileeditorplugins.h b/noncore/apps/opie-console/profileeditorplugins.h index 7e0219b..caec7ba 100644 --- a/noncore/apps/opie-console/profileeditorplugins.h +++ b/noncore/apps/opie-console/profileeditorplugins.h @@ -2,12 +2,15 @@ #define PROFILE_EDITOR_PLUGINS_H #include "profile.h" +#include "qobject.h" + class QWidget; -class ProfileEditorPlugin +class ProfileEditorPlugin : public QObject { + Q_OBJECT public: ProfileEditorPlugin(QWidget *parent, Profile p); virtual ~ProfileEditorPlugin(); @@ -15,11 +18,68 @@ class ProfileEditorPlugin virtual void save() = 0; virtual QWidget *widget() = 0; + QWidget *connection_widget(); + QWidget *terminal_widget(); + + public slots: + void slotConnFlow(int id); + void slotConnParity(int id); + void slotConnSpeed(int id); + void slotTermTerm(int id); + void slotTermColour(int id); + void slotTermFont(int id); + void slotTermEcho(bool on); + void slotTermWrap(bool on); + void slotTermInbound(bool on); + void slotTermOutbound(bool on); + protected: QWidget *m_parent, *m_widget; Profile m_profile; + + private: + enum ParityIds + { + id_parity_odd, + id_parity_even + }; + + enum FlowIds + { + id_flow_hw, + id_flow_sw + }; + + enum SpeedIds + { + id_baud_115200, + id_baud_57600, + id_baud_38400, + id_baud_19200, + id_baud_9600 + }; + + enum TermIds + { + id_term_vt100, + id_term_vt220, + id_term_ansi + }; + + enum ColourIds + { + id_term_black, + id_term_white + }; + + enum FontIds + { + id_size_small, + id_size_medium, + id_size_large + }; }; //#ifdef __cplusplus //extern "C" { |