summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp21
1 files changed, 21 insertions, 0 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)