summaryrefslogtreecommitdiff
path: root/core/apps/embeddedkonsole/konsole.cpp
authorzecke <zecke>2004-03-14 17:56:46 (UTC)
committer zecke <zecke>2004-03-14 17:56:46 (UTC)
commit98bbe5561e8e1a862e19a3d0a0d49ed90ef15b54 (patch) (unidiff)
tree8a440150cc5f66ac5dfce1062b436d9878517779 /core/apps/embeddedkonsole/konsole.cpp
parentd69b11f67e3118f86d068c38c422984d754e13cc (diff)
downloadopie-98bbe5561e8e1a862e19a3d0a0d49ed90ef15b54.zip
opie-98bbe5561e8e1a862e19a3d0a0d49ed90ef15b54.tar.gz
opie-98bbe5561e8e1a862e19a3d0a0d49ed90ef15b54.tar.bz2
ODP and only ODP
Diffstat (limited to 'core/apps/embeddedkonsole/konsole.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index 281835e..c5df47f 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -28,48 +28,49 @@
28#include <unistd.h> 28#include <unistd.h>
29 29
30#ifdef QT_QWS_OPIE 30#ifdef QT_QWS_OPIE
31#include <opie2/ocolorpopupmenu.h> 31#include <opie2/ocolorpopupmenu.h>
32#endif 32#endif
33 33
34#include <qpe/resource.h> 34#include <qpe/resource.h>
35 35
36#include <qmenubar.h> 36#include <qmenubar.h>
37#include <qtabbar.h> 37#include <qtabbar.h>
38#include <qpe/config.h> 38#include <qpe/config.h>
39#include <qfontdatabase.h> 39#include <qfontdatabase.h>
40#include <qfile.h> 40#include <qfile.h>
41#include <qspinbox.h> 41#include <qspinbox.h>
42#include <qlayout.h> 42#include <qlayout.h>
43 43
44#include <sys/wait.h> 44#include <sys/wait.h>
45#include <stdio.h> 45#include <stdio.h>
46#include <stdlib.h> 46#include <stdlib.h>
47#include <assert.h> 47#include <assert.h>
48 48
49#include "konsole.h" 49#include "konsole.h"
50#include "commandeditdialog.h" 50#include "commandeditdialog.h"
51 51
52using namespace Opie;
52class EKNumTabBar : public QTabBar 53class EKNumTabBar : public QTabBar
53{ 54{
54public: 55public:
55 EKNumTabBar(QWidget *parent = 0, const char *name = 0) : 56 EKNumTabBar(QWidget *parent = 0, const char *name = 0) :
56 QTabBar(parent, name) 57 QTabBar(parent, name)
57 {} 58 {}
58 59
59 // QList<QTab> *getTabList() { return(tabList()); } 60 // QList<QTab> *getTabList() { return(tabList()); }
60 61
61 void numberTabs() 62 void numberTabs()
62 { 63 {
63 // Yes, it really is this messy. QTabWidget needs functions 64 // Yes, it really is this messy. QTabWidget needs functions
64 // that provide acces to tabs in a sequential way. 65 // that provide acces to tabs in a sequential way.
65 int m=INT_MIN; 66 int m=INT_MIN;
66 for (int i=0; i<count(); i++) 67 for (int i=0; i<count(); i++)
67 { 68 {
68 QTab* left=0; 69 QTab* left=0;
69 QListIterator<QTab> it(*tabList()); 70 QListIterator<QTab> it(*tabList());
70 int x=INT_MAX; 71 int x=INT_MAX;
71 for( QTab* t; (t=it.current()); ++it ) 72 for( QTab* t; (t=it.current()); ++it )
72 { 73 {
73 int tx = t->rect().x(); 74 int tx = t->rect().x();
74 if ( tx<x && tx>m ) 75 if ( tx<x && tx>m )
75 { 76 {