-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 21 | ||||
-rw-r--r-- | noncore/apps/opie-console/mainwindow.h | 2 | ||||
-rw-r--r-- | noncore/apps/opie-console/terminalwidget.cpp | 26 | ||||
-rw-r--r-- | pics/console/konsole_mini.png | bin | 0 -> 783 bytes |
4 files changed, 36 insertions, 13 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index abcdb84..a6fc30b 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -53,4 +53,5 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow( populateScripts(); } + void MainWindow::initUI() { setToolBarsMovable( FALSE ); @@ -120,4 +121,9 @@ void MainWindow::initUI() { m_console->insertSeparator(); + m_quickLaunch = new QAction( tr("QuickLaunch"), Resource::loadPixmap("console/konsole_mini"), QString::null, 0, this, 0 ); + m_quickLaunch->addTo( m_icons ); + connect( m_quickLaunch, SIGNAL( activated() ), + this, SLOT( slotQuickLaunch() ) ); + m_transfer = new QAction( tr("Transfer file..."), Resource::loadPixmap("pass") , QString::null, 0, this, 0 ); @@ -126,4 +132,6 @@ void MainWindow::initUI() { this, SLOT(slotTransfer() ) ); + + /* * immediate change of line wrap policy @@ -403,4 +411,14 @@ void MainWindow::slotTerminate() { } +void MainWindow::slotQuickLaunch() { + Profile prof = manager()->profile( "default" ); + if ( prof.name() == "default" ) { + create( prof ); + } else { + QMessageBox::warning(this, tr("Failure"),tr("please configure one profile named \"default\"")); + } + +} + void MainWindow::slotConfigure() { ConfigDialog conf( manager()->all(), factory() ); @@ -460,4 +478,7 @@ void MainWindow::slotProfile( int id) { create( prof ); } + + + void MainWindow::create( const Profile& prof ) { if(m_curSession) diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h index 0fac38b..86939c1 100644 --- a/noncore/apps/opie-console/mainwindow.h +++ b/noncore/apps/opie-console/mainwindow.h @@ -68,4 +68,5 @@ private slots: void slotRunScript(int); void slotFullscreen(); + void slotQuickLaunch(); void slotWrap(); void slotSessionChanged( Session* ); @@ -114,4 +115,5 @@ private: QAction* m_connect; QAction* m_disconnect; + QAction* m_quickLaunch; QAction* m_terminate; QAction* m_transfer; diff --git a/noncore/apps/opie-console/terminalwidget.cpp b/noncore/apps/opie-console/terminalwidget.cpp index a8cee93..70f7c9b 100644 --- a/noncore/apps/opie-console/terminalwidget.cpp +++ b/noncore/apps/opie-console/terminalwidget.cpp @@ -49,26 +49,26 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, m_sizeLarge = new QRadioButton(tr("large"), m_groupSize ); - m_groupConv = new QHGroupBox(tr("Line-break conversions"), this ); - m_convInbound = new QCheckBox(tr("Inbound"), m_groupConv ); - m_convOutbound = new QCheckBox(tr("Outbound"), m_groupConv ); + m_groupConv = new QHGroupBox( tr("Line-break conversions"), this ); + m_convInbound = new QCheckBox( tr("Inbound"), m_groupConv ); + m_convOutbound = new QCheckBox( tr("Outbound"), m_groupConv ); m_groupOptions = new QHGroupBox( tr("Options"), this ); - m_optionEcho = new QCheckBox(tr("Local echo"), m_groupOptions ); - m_optionWrap = new QCheckBox(tr("Line wrap"), m_groupOptions ); + m_optionEcho = new QCheckBox( tr("Local echo"), m_groupOptions ); + m_optionWrap = new QCheckBox( tr("Line wrap"), m_groupOptions ); - m_lroot = new QVBoxLayout( this ); + m_lroot = new QVBoxLayout( this ); m_typeBox = new QVBoxLayout( m_lroot ); m_colorBox = new QVBoxLayout( m_lroot ); // Layout - m_typeBox->add(m_terminal ); - m_typeBox->add(m_terminalBox ); - m_lroot->add(m_groupSize ); + m_typeBox->add( m_terminal ); + m_typeBox->add( m_terminalBox ); + m_lroot->add( m_groupSize ); - m_colorBox->add( m_colorLabel ); - m_colorBox->add( m_colorCmb ); + m_colorBox->add( m_colorLabel ); + m_colorBox->add( m_colorCmb ); - m_lroot->add(m_groupConv ); - m_lroot->add(m_groupOptions ); + m_lroot->add( m_groupConv ); + m_lroot->add( m_groupOptions ); m_lroot->addStretch( 0 ); diff --git a/pics/console/konsole_mini.png b/pics/console/konsole_mini.png Binary files differnew file mode 100644 index 0000000..590a417 --- a/dev/null +++ b/pics/console/konsole_mini.png |