author | harlekin <harlekin> | 2002-10-24 13:27:07 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-24 13:27:07 (UTC) |
commit | 22b0ba0100376c6406d3ee0ea65b013660ebaea0 (patch) (side-by-side diff) | |
tree | 32943709e115104d036a3b4bdbc030b90075b97f | |
parent | b007fdcf8708d377a25c93de49c4febb19651e1a (diff) | |
download | opie-22b0ba0100376c6406d3ee0ea65b013660ebaea0.zip opie-22b0ba0100376c6406d3ee0ea65b013660ebaea0.tar.gz opie-22b0ba0100376c6406d3ee0ea65b013660ebaea0.tar.bz2 |
set autoconnect by default for local console mode
-rw-r--r-- | noncore/apps/opie-console/BUGS | 14 | ||||
-rw-r--r-- | noncore/apps/opie-console/io_layer.h | 4 | ||||
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 10 |
3 files changed, 12 insertions, 16 deletions
diff --git a/noncore/apps/opie-console/BUGS b/noncore/apps/opie-console/BUGS index b9d8ca3..7fae567 100644 --- a/noncore/apps/opie-console/BUGS +++ b/noncore/apps/opie-console/BUGS @@ -1,42 +1,28 @@ Ok we all know we write perfect code but sometimes the compiler produces bad code and we need to work around some compiler bugs!! -zecke Send/receive: lrzsz behaves strange when trying to use --overwrite or --rename. -- console should autoconnect by default - - keys and buttonbar merge - keys really working mc is working but F11 on bar seems to be the F10 key and so on F9 is F8... -zecke Should be fixed -zecke - scripting with "direct subpopup" also: - an indication that it is currently recording, also change menu entry to "cancel recording" then -- kill more compiler warnings. - -- more colorshemes ( "orange is ugly" ) - -- irda and bluetooth out ( can be done with normal serial as long as the -connection is allready up, and extended stuff is a lot of work; maybe later -in again ). - -- new conntection -> configure -> use . does not end up in profile dialog, - -- disable tranfer file for console mode - - scripts need an extension and also an icon - help documentation needs to be extended - new connection and save connection - paste button - keys button diff --git a/noncore/apps/opie-console/io_layer.h b/noncore/apps/opie-console/io_layer.h index 97a1e1c..af61099 100644 --- a/noncore/apps/opie-console/io_layer.h +++ b/noncore/apps/opie-console/io_layer.h @@ -1,80 +1,80 @@ #ifndef OPIE_IO_LAYER_H #define OPIE_IO_LAYER_H #include <qbitarray.h> #include <qobject.h> #include <qpe/config.h> #include "profile.h" /** * This is the base class for IO Layers * It will used to sent and recv data( QByteArray ) * it */ class IOLayer : public QObject { Q_OBJECT public: enum Error { NoError = -1, Refuse = 0, CouldNotOpen =1, ClosedUnexpected =2, ClosedError =3, Terminate = 4 /* add more errors here */ }; enum Feature { AutoConnect = 0, - TransferFile =1, - Close =2 + TransferFile = 1, + Close = 2 }; /** * a small c'tor */ IOLayer(); /** * create an IOLayer instance from a config file * the currently set group stores the profile/session * information */ IOLayer( const Profile& ); /** * destructor */ virtual ~IOLayer(); /** * a small internal identifier */ virtual QString identifier() const = 0; /** * a short name */ virtual QString name() const = 0; /** * a file descriptor which opens * the device for io but does not * do any ioctling on it... * and it'll stop listening to the before opened * device */ virtual int rawIO()const; /** * will close the rawIO stuff * and will listen to it's data again... */ virtual void closeRawIO(int); /** * What does the IOLayer support? * Bits are related to features */ virtual QBitArray supports()const = 0; diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index 9890c3e..127009b 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp @@ -152,79 +152,89 @@ void ProfileEditorDialog::accept() QObject::tr("Please enter a profile name.")); return; } // Save profile and plugin profile //if(plugin_plugin) plugin_plugin->save(); // Save general values m_prof.setName( profName() ); m_prof.setIOLayer( m_fact->internal(m_conCmb ->currentText() ) ); m_prof.setTerminalName( m_fact->internal(m_termCmb->currentText() ) ); m_prof.setAutoConnect( m_autoConnect->isChecked() ); if (m_con ) m_con->save( m_prof ); if (m_term ) m_term->save( m_prof ); if (m_key) m_key->save( m_prof ); QDialog::accept(); } QString ProfileEditorDialog::profName()const { return m_name->text(); } QCString ProfileEditorDialog::profType()const { /*QStringList w = m_fact->configWidgets(); for(QStringList::Iterator it = w.begin(); it != w.end(); it++) if(device_box->currentText() == m_fact->name((*it))) return (*it); */ return QCString(); } /* * we need to switch the widget */ void ProfileEditorDialog::slotConActivated( const QString& str ) { delete m_con; m_con = m_fact->newConnectionPlugin( str, m_svCon->viewport() ); if ( !m_con ) { m_con = new NoOptions( str, m_svCon->viewport(), "name"); } + + // FIXME ugly hack right. Right solution would be to look into the layer and see if it + // supports auto connect and then set it as prefered + //if ( ( )->layer()->supports()[0] == 1 ) { + if ( m_conCmb ->currentText() == "local Console" ) { + m_autoConnect->setChecked( true ); + } else { + m_autoConnect->setChecked( false ); + } + m_con->load( m_prof ); m_svCon->addChild( m_con ); } /* * we need to switch the widget */ void ProfileEditorDialog::slotTermActivated( const QString& str ) { delete m_term; m_term = m_fact->newTerminalPlugin( str, m_svTerm->viewport() ); if (m_term) { m_term->load( m_prof ); m_svTerm->addChild( m_term ); } } void ProfileEditorDialog::slotKeyActivated(const QString &str) { delete m_key; m_key = m_fact->newKeyboardPlugin( str, m_tabKey ); if (m_key) { m_key->load(m_prof); m_layKey->addWidget(m_key); } } |