summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-16 20:18:23 (UTC)
committer harlekin <harlekin>2002-10-16 20:18:23 (UTC)
commit948a3738421c579441a83dff4472ed5f99e3abb1 (patch) (unidiff)
treee46ba62b6d8340dbadafcfc53dbaf787bc3ff966
parent4595d49dcbdb6d5ea7c86aa4a2c4cb063777ca35 (diff)
downloadopie-948a3738421c579441a83dff4472ed5f99e3abb1.zip
opie-948a3738421c579441a83dff4472ed5f99e3abb1.tar.gz
opie-948a3738421c579441a83dff4472ed5f99e3abb1.tar.bz2
docu added
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp18
-rw-r--r--noncore/apps/opie-console/mainwindow.h2
-rw-r--r--noncore/apps/opie-console/opie-console.control2
3 files changed, 11 insertions, 11 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 9ccefa0..5295600 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -8,8 +8,9 @@
8#include <qpopupmenu.h> 8#include <qpopupmenu.h>
9#include <qtoolbar.h> 9#include <qtoolbar.h>
10#include <qmessagebox.h> 10#include <qmessagebox.h>
11#include <qpushbutton.h> 11#include <qpushbutton.h>
12#include <qwhatsthis.h>
12 13
13#include <qpe/resource.h> 14#include <qpe/resource.h>
14#include <opie/ofiledialog.h> 15#include <opie/ofiledialog.h>
15 16
@@ -49,9 +50,9 @@ static char * menu_xpm[] = {
49" .. ", 50" .. ",
50" "}; 51" "};
51 52
52 53
53MainWindow::MainWindow() { 54MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) {
54 KeyTrans::loadAll(); 55 KeyTrans::loadAll();
55 for (int i = 0; i < KeyTrans::count(); i++ ) { 56 for (int i = 0; i < KeyTrans::count(); i++ ) {
56 KeyTrans* s = KeyTrans::find(i ); 57 KeyTrans* s = KeyTrans::find(i );
57 assert( s ); 58 assert( s );
@@ -464,22 +465,21 @@ void MainWindow::slotFullscreen() {
464 m_fullscreen->setText( tr("Full screen") ); 465 m_fullscreen->setText( tr("Full screen") );
465 466
466 } else { 467 } else {
467 ( m_curSession->widgetStack() )->setFrameStyle( QFrame::NoFrame ); 468 ( m_curSession->widgetStack() )->setFrameStyle( QFrame::NoFrame );
468 ( m_curSession->widgetStack() )->reparent( 0,WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop, 469 ( m_curSession->widgetStack() )->reparent( 0,WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop
469 QPoint(0,0), false); 470 , QPoint(0,0), false);
470 ( m_curSession->widgetStack() )->resize(qApp->desktop()->width(), qApp->desktop()->height()); 471 ( m_curSession->widgetStack() )->resize(qApp->desktop()->width(), qApp->desktop()->height());
471 ( m_curSession->widgetStack() )->setFocus(); 472 ( m_curSession->widgetStack() )->setFocus();
472 ( m_curSession->widgetStack() )->show(); 473 ( m_curSession->widgetStack() )->show();
473 474
474 //QPushButton *cornerButton = new QPushButton( ); 475 QPushButton *cornerButton = new QPushButton( m_curSession->widgetStack() );
475 //cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) ); 476 cornerButton->setPixmap( QPixmap( (const char**)menu_xpm ) );
476 //connect( cornerButton, SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) ); 477 connect( cornerButton, SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) );
477 // need teh scrollbar 478 // would need a scrollview
478 // ( m_curSession->widgetStack() )->setCornerWidget( cornerButton ); 479 // ( m_curSession->widgetStack() )->setCornerWidget( cornerButton );
479 m_fullscreen->setText( tr("Stop full screen") ); 480 m_fullscreen->setText( tr("Stop full screen") );
480 } 481 }
481
482 m_isFullscreen = !m_isFullscreen; 482 m_isFullscreen = !m_isFullscreen;
483 483
484} 484}
485 485
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h
index 91ca147..35338b7 100644
--- a/noncore/apps/opie-console/mainwindow.h
+++ b/noncore/apps/opie-console/mainwindow.h
@@ -22,9 +22,9 @@ class Profile;
22class FunctionKeyboard; 22class FunctionKeyboard;
23class MainWindow : public QMainWindow { 23class MainWindow : public QMainWindow {
24 Q_OBJECT 24 Q_OBJECT
25public: 25public:
26 MainWindow(); 26 MainWindow( QWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
27 ~MainWindow(); 27 ~MainWindow();
28 28
29 /** 29 /**
30 * our factory to generate IOLayer and so on 30 * our factory to generate IOLayer and so on
diff --git a/noncore/apps/opie-console/opie-console.control b/noncore/apps/opie-console/opie-console.control
index aba2192..e307fef 100644
--- a/noncore/apps/opie-console/opie-console.control
+++ b/noncore/apps/opie-console/opie-console.control
@@ -3,8 +3,8 @@ Priority: optional
3Section: opie/applications 3Section: opie/applications
4Maintainer: Opie team <opie@handhelds.org> 4Maintainer: Opie team <opie@handhelds.org>
5Architecture: arm 5Architecture: arm
6Version: 0.6-$SUB_VERSION 6Version: 0.6-$SUB_VERSION
7Depends: qpe-base ($QPE_VERSION), libopie ($QPE_VERSION) 7Depends: qpe-base ($QPE_VERSION), libopie ($QPE_VERSION), opie-console-help-en
8License: GPL 8License: GPL
9Description: Opie terminal app 9Description: Opie terminal app
10 10