summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp21
-rw-r--r--noncore/apps/opie-console/mainwindow.h2
-rw-r--r--noncore/apps/opie-console/terminalwidget.cpp26
-rw-r--r--pics/console/konsole_mini.pngbin0 -> 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(
53 populateScripts(); 53 populateScripts();
54} 54}
55
55void MainWindow::initUI() { 56void MainWindow::initUI() {
56 setToolBarsMovable( FALSE ); 57 setToolBarsMovable( FALSE );
@@ -120,4 +121,9 @@ void MainWindow::initUI() {
120 m_console->insertSeparator(); 121 m_console->insertSeparator();
121 122
123 m_quickLaunch = new QAction( tr("QuickLaunch"), Resource::loadPixmap("console/konsole_mini"), QString::null, 0, this, 0 );
124 m_quickLaunch->addTo( m_icons );
125 connect( m_quickLaunch, SIGNAL( activated() ),
126 this, SLOT( slotQuickLaunch() ) );
127
122 m_transfer = new QAction( tr("Transfer file..."), Resource::loadPixmap("pass") , QString::null, 128 m_transfer = new QAction( tr("Transfer file..."), Resource::loadPixmap("pass") , QString::null,
123 0, this, 0 ); 129 0, this, 0 );
@@ -126,4 +132,6 @@ void MainWindow::initUI() {
126 this, SLOT(slotTransfer() ) ); 132 this, SLOT(slotTransfer() ) );
127 133
134
135
128 /* 136 /*
129 * immediate change of line wrap policy 137 * immediate change of line wrap policy
@@ -403,4 +411,14 @@ void MainWindow::slotTerminate() {
403} 411}
404 412
413void MainWindow::slotQuickLaunch() {
414 Profile prof = manager()->profile( "default" );
415 if ( prof.name() == "default" ) {
416 create( prof );
417 } else {
418 QMessageBox::warning(this, tr("Failure"),tr("please configure one profile named \"default\""));
419 }
420
421}
422
405void MainWindow::slotConfigure() { 423void MainWindow::slotConfigure() {
406 ConfigDialog conf( manager()->all(), factory() ); 424 ConfigDialog conf( manager()->all(), factory() );
@@ -460,4 +478,7 @@ void MainWindow::slotProfile( int id) {
460 create( prof ); 478 create( prof );
461} 479}
480
481
482
462void MainWindow::create( const Profile& prof ) { 483void MainWindow::create( const Profile& prof ) {
463 if(m_curSession) 484 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:
68 void slotRunScript(int); 68 void slotRunScript(int);
69 void slotFullscreen(); 69 void slotFullscreen();
70 void slotQuickLaunch();
70 void slotWrap(); 71 void slotWrap();
71 void slotSessionChanged( Session* ); 72 void slotSessionChanged( Session* );
@@ -114,4 +115,5 @@ private:
114 QAction* m_connect; 115 QAction* m_connect;
115 QAction* m_disconnect; 116 QAction* m_disconnect;
117 QAction* m_quickLaunch;
116 QAction* m_terminate; 118 QAction* m_terminate;
117 QAction* m_transfer; 119 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,
49 m_sizeLarge = new QRadioButton(tr("large"), m_groupSize ); 49 m_sizeLarge = new QRadioButton(tr("large"), m_groupSize );
50 50
51 m_groupConv = new QHGroupBox(tr("Line-break conversions"), this ); 51 m_groupConv = new QHGroupBox( tr("Line-break conversions"), this );
52 m_convInbound = new QCheckBox(tr("Inbound"), m_groupConv ); 52 m_convInbound = new QCheckBox( tr("Inbound"), m_groupConv );
53 m_convOutbound = new QCheckBox(tr("Outbound"), m_groupConv ); 53 m_convOutbound = new QCheckBox( tr("Outbound"), m_groupConv );
54 54
55 m_groupOptions = new QHGroupBox( tr("Options"), this ); 55 m_groupOptions = new QHGroupBox( tr("Options"), this );
56 m_optionEcho = new QCheckBox(tr("Local echo"), m_groupOptions ); 56 m_optionEcho = new QCheckBox( tr("Local echo"), m_groupOptions );
57 m_optionWrap = new QCheckBox(tr("Line wrap"), m_groupOptions ); 57 m_optionWrap = new QCheckBox( tr("Line wrap"), m_groupOptions );
58 58
59 m_lroot = new QVBoxLayout( this ); 59 m_lroot = new QVBoxLayout( this );
60 m_typeBox = new QVBoxLayout( m_lroot ); 60 m_typeBox = new QVBoxLayout( m_lroot );
61 m_colorBox = new QVBoxLayout( m_lroot ); 61 m_colorBox = new QVBoxLayout( m_lroot );
62 62
63 // Layout 63 // Layout
64 m_typeBox->add(m_terminal ); 64 m_typeBox->add( m_terminal );
65 m_typeBox->add(m_terminalBox ); 65 m_typeBox->add( m_terminalBox );
66 m_lroot->add(m_groupSize ); 66 m_lroot->add( m_groupSize );
67 67
68 m_colorBox->add( m_colorLabel ); 68 m_colorBox->add( m_colorLabel );
69 m_colorBox->add( m_colorCmb ); 69 m_colorBox->add( m_colorCmb );
70 70
71 m_lroot->add(m_groupConv ); 71 m_lroot->add( m_groupConv );
72 m_lroot->add(m_groupOptions ); 72 m_lroot->add( m_groupOptions );
73 m_lroot->addStretch( 0 ); 73 m_lroot->addStretch( 0 );
74 74
diff --git a/pics/console/konsole_mini.png b/pics/console/konsole_mini.png
new file mode 100644
index 0000000..590a417
--- a/dev/null
+++ b/pics/console/konsole_mini.png
Binary files differ