summaryrefslogtreecommitdiff
path: root/core/apps/embeddedkonsole/konsole.h
authorwaspe <waspe>2004-02-22 12:57:58 (UTC)
committer waspe <waspe>2004-02-22 12:57:58 (UTC)
commit5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8 (patch) (side-by-side diff)
treeb97f5281b807b4218f437150a4e9082694e7a642 /core/apps/embeddedkonsole/konsole.h
parent908f9c9f0c68d1c3e5a620a69bbf0d05684e2ab3 (diff)
downloadopie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.zip
opie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.tar.gz
opie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.tar.bz2
merged changes form qkonsole back into opie-embeddedkonsole (most likely not bugfree !)
Diffstat (limited to 'core/apps/embeddedkonsole/konsole.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/konsole.h224
1 files changed, 143 insertions, 81 deletions
diff --git a/core/apps/embeddedkonsole/konsole.h b/core/apps/embeddedkonsole/konsole.h
index 7d5a908..37babbb 100644
--- a/core/apps/embeddedkonsole/konsole.h
+++ b/core/apps/embeddedkonsole/konsole.h
@@ -46,97 +46,159 @@ class Konsole : public QMainWindow
Q_OBJECT
public:
- static QString appName() { return QString::fromLatin1("embeddedkonsole"); }
-
- Konsole(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
- ~Konsole();
- void setColLin(int columns, int lines);
- QToolBar *secondToolBar;
- void show();
- void setColor();
- int lastSelectedMenu;
- int startUp;
+
+ static QString appName()
+ {
+ return QString::fromLatin1("embeddedkonsole");
+ }
+
+ Konsole(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
+ Konsole(const char * name, const char* pgm, QStrList & _args, int histon);
+ ~Konsole();
+ void setColLin(int columns, int lines);
+ QToolBar *secondToolBar;
+ void show();
+ void setColor(int);
+ int lastSelectedMenu;
+ int startUp;
+
+public slots:
+ void changeFontSize(int);
+ void toggleFullScreen();
+ void setFullScreen(bool);
+ void changeSession(int);
+ void cycleZoom();
+ void newSession();
+
private slots:
- void setDocument(const QString &);
- void doneSession(TESession*,int);
- void changeColumns(int);
- void fontChanged(int);
- void configMenuSelected(int );
- void colorMenuSelected(int);
- void colorMenuIsSelected(int);
- void enterCommand(int);
- void hitEnter();
- void hitSpace();
- void hitTab();
- void hitPaste();
- void hitUp();
- void hitDown();
- void switchSession(QWidget *);
- void newSession();
- void changeCommand(const QString &, int);
- void initCommandList();
- void scrollMenuSelected(int);
- void editCommandListMenuSelected(int);
- void parseCommandLine();
+ void setDocument(const QString &);
+ void doneSession(TEWidget*,int);
+ void changeTitle(TEWidget*,QString);
+ void changeColumns(int);
+ void setFont(int);
+ // void fontChanged(int);
+ void configMenuSelected(int );
+ void colorMenuSelected(int);
+ void colorMenuIsSelected(int);
+ void tabMenuSelected(int);
+ void sessionListSelected(int);
+
+ void enterCommand(int);
+ void hitEnter();
+ void hitSpace();
+ void hitTab();
+ void hitPaste();
+ void hitUp();
+ void hitDown();
+ void switchSession(QWidget *);
+ void changeCommand(const QString &, int);
+ void initCommandList();
+ void scrollMenuSelected(int);
+ void editCommandListMenuSelected(int);
+ void parseCommandLine();
void changeForegroundColor(const QColor &);
void changeBackgroundColor(const QColor &);
+
+ void historyDialog();
+ void fullscreenTimeout();
+
private:
void doWrap();
- void init(const char* _pgm, QStrList & _args);
- void initSession(const char* _pgm, QStrList & _args);
- void runSession(TESession* s);
- void setColorPixmaps();
- void setHistory(bool);
- QSize calcSize(int columns, int lines);
- TEWidget* getTe();
- QStringList commands;
- QLabel * msgLabel;
- QColor foreground, background;
-bool fromMenu;
-private:
- class VTFont
- {
- public:
- VTFont(QString name, QFont& font)
- {
- this->name = name;
- this->font = font;
- }
-
- QFont& getFont()
- {
- return font;
- }
+ void init(const char* _pgm, QStrList & _args);
+ void initSession(const char* _pgm, QStrList & _args);
+ void runSession(TESession* s);
+ void setColorPixmaps();
+ void setHistory(bool);
+ void setColors(QColor foreground, QColor background);
+ int findFont(QString name, int size, bool exact = false);
+ QSize calcSize(int columns, int lines);
+ TEWidget* getTe();
+ QStringList commands;
+ QLabel * msgLabel;
+ QColor foreground, background;
+ bool fromMenu;
+
+ bool fullscreen;
- QString getName()
+private:
+ class VTFont
{
- return name;
- }
-
- private:
- QString name;
- QFont font;
- };
+ public:
+ VTFont(QString name, QFont& font, QString family, int familyNum, int size)
+ {
+ this->name = name;
+ this->font = font;
+ this->family = family;
+ this->size = size;
+ this->familyNum = familyNum;
+ }
+
+ QFont& getFont()
+ {
+ return font;
+ }
+ QString getName()
+ {
+ return name;
+ }
+ int getSize()
+ {
+ return(size);
+ }
+ QString getFamily()
+ {
+ return(family);
+ }
+ int getFamilyNum()
+ {
+ return(familyNum);
+ }
+
+ private:
+ QFont font;
+ QString name;
+ QString family;
+ int familyNum;
+ int size;
+ };
+
+ EKNumTabWidget* tab;
+ int tabPos;
+ int nsessions;
+ QList<VTFont> fonts;
+ int cfont;
+ QCString se_pgm;
+ QStrList se_args;
+
+ QToolBar *menuToolBar;
+ QToolBar *toolBar;
+ QComboBox *commonCombo;
+
+ QPopupMenu *fontList,*configMenu,*colorMenu,*scrollMenu,*editCommandListMenu;
+ QPopupMenu *sessionList, *tabMenu;
+
+ int sm_none, sm_left, sm_right;
+ int cm_beep, cm_wrap;
+ int cm_default;
+ int cm_bw, cm_wb, cm_gb, cm_bt, cm_br, cm_rb, cm_gy, cm_bm, cm_mb, cm_cw, cm_wc, cm_bb, cm_ab;
+ int tm_top, tm_bottom, tm_hidden;
+ int ec_edit, ec_cmdlist, ec_quick;
+
+ bool show_fullscreen_msg;
+ QTimer *fullscreen_timer;
+ QLabel *fullscreen_msg;
- EKNumTabWidget* tab;
- int nsessions;
- QList<VTFont> fonts;
- int cfont;
- QCString se_pgm;
- QStrList se_args;
- QPopupMenu *fontList,*configMenu,*colorMenu,*scrollMenu,*editCommandListMenu;
- QComboBox *commonCombo;
// history scrolling I think
- bool b_scroll;
-
- int n_keytab;
- int n_scroll;
- int n_render;
- QString pmPath; // pixmap path
- QString dropText;
- QFont defaultFont;
- QSize defaultSize;
+ bool b_scroll;
+
+ int n_keytab;
+ int n_scroll;
+ int n_render;
+ QString pmPath; // pixmap path
+ QString dropText;
+ QFont defaultFont;
+ QSize defaultSize;
};