summaryrefslogtreecommitdiff
path: root/noncore
authorharlekin <harlekin>2003-03-21 22:29:00 (UTC)
committer harlekin <harlekin>2003-03-21 22:29:00 (UTC)
commit43b0fded770624c907aae043e88449f80040d7df (patch) (side-by-side diff)
tree37e92b5da66c34323a831586c21a9c23b0abe261 /noncore
parent07a03b603d964b07d2866e04f480014fadcf1570 (diff)
downloadopie-43b0fded770624c907aae043e88449f80040d7df.zip
opie-43b0fded770624c907aae043e88449f80040d7df.tar.gz
opie-43b0fded770624c907aae043e88449f80040d7df.tar.bz2
added a button for quicklaunch of a default profile
Diffstat (limited to 'noncore') (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
3 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
@@ -54,2 +54,3 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(
}
+
void MainWindow::initUI() {
@@ -121,2 +122,7 @@ void MainWindow::initUI() {
+ 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,
@@ -127,2 +133,4 @@ void MainWindow::initUI() {
+
+
/*
@@ -404,2 +412,12 @@ 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() {
@@ -461,2 +479,5 @@ void MainWindow::slotProfile( int id) {
}
+
+
+
void MainWindow::create( const Profile& prof ) {
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
@@ -69,2 +69,3 @@ private slots:
void slotFullscreen();
+ void slotQuickLaunch();
void slotWrap();
@@ -115,2 +116,3 @@ private:
QAction* m_disconnect;
+ QAction* m_quickLaunch;
QAction* m_terminate;
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
@@ -50,11 +50,11 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent,
- 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 );
@@ -63,11 +63,11 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent,
// 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 );