summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-02-04 00:49:31 (UTC)
committer llornkcor <llornkcor>2002-02-04 00:49:31 (UTC)
commit946f23d8cdb9a02175ba173ebed9a0aeb9c7c677 (patch) (side-by-side diff)
tree2b8c927cb1b0064f89c182fc0587fcb693e7a773
parent0c60039ffbd115dc09431722d105dfce4319e187 (diff)
downloadopie-946f23d8cdb9a02175ba173ebed9a0aeb9c7c677.zip
opie-946f23d8cdb9a02175ba173ebed9a0aeb9c7c677.tar.gz
opie-946f23d8cdb9a02175ba173ebed9a0aeb9c7c677.tar.bz2
*** empty log message ***
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/Makefile.in124
-rw-r--r--core/apps/embeddedkonsole/TEWidget.cpp0
-rw-r--r--core/apps/embeddedkonsole/commandeditdialog.cpp1
-rw-r--r--core/apps/embeddedkonsole/commandeditdialogbase.cpp101
-rw-r--r--core/apps/embeddedkonsole/commandeditdialogbase.h46
5 files changed, 259 insertions, 13 deletions
diff --git a/core/apps/embeddedkonsole/Makefile.in b/core/apps/embeddedkonsole/Makefile.in
index 1c24ded..44310a6 100644
--- a/core/apps/embeddedkonsole/Makefile.in
+++ b/core/apps/embeddedkonsole/Makefile.in
@@ -23,60 +23,84 @@ TARGET1 = lib$(TARGET).so.$(VER_MAJ)
####### Files
HEADERS = TEWidget.h \
TEScreen.h \
TECommon.h \
TEHistory.h \
TEmulation.h \
TEmuVt102.h \
session.h \
keytrans.h \
konsole.h \
+ commandeditdialog.h \
+ commandeditwidget.h \
+ playlistselection.h \
MyPty.h
SOURCES = TEScreen.cpp \
TEWidget.cpp \
TEHistory.cpp \
TEmulation.cpp \
TEmuVt102.cpp \
session.cpp \
keytrans.cpp \
konsole.cpp \
- main.cpp \
- MyPty.cpp
+ commandeditdialog.cpp \
+ commandeditwidget.cpp \
+ playlistselection.cpp \
+ MyPty.cpp \
+ main.cpp
OBJECTS = TEScreen.o \
TEWidget.o \
TEHistory.o \
TEmulation.o \
TEmuVt102.o \
session.o \
keytrans.o \
konsole.o \
+ commandeditdialog.o \
+ commandeditwidget.o \
+ playlistselection.o \
+ MyPty.o \
main.o \
- MyPty.o
-INTERFACES =
-UICDECLS =
-UICIMPLS =
+ commandeditdialogbase.o \
+ smallcommandeditdialogbase.o
+INTERFACES = commandeditdialogbase.ui \
+ smallcommandeditdialogbase.ui
+UICDECLS = commandeditdialogbase.h \
+ smallcommandeditdialogbase.h
+UICIMPLS = commandeditdialogbase.cpp \
+ smallcommandeditdialogbase.cpp
SRCMOC = moc_TEWidget.cpp \
moc_TEmulation.cpp \
moc_TEmuVt102.cpp \
moc_session.cpp \
moc_konsole.cpp \
- moc_MyPty.cpp
+ moc_commandeditdialog.cpp \
+ moc_commandeditwidget.cpp \
+ moc_playlistselection.cpp \
+ moc_MyPty.cpp \
+ moc_commandeditdialogbase.cpp \
+ moc_smallcommandeditdialogbase.cpp
OBJMOC = moc_TEWidget.o \
moc_TEmulation.o \
moc_TEmuVt102.o \
moc_session.o \
moc_konsole.o \
- moc_MyPty.o
+ moc_commandeditdialog.o \
+ moc_commandeditwidget.o \
+ moc_playlistselection.o \
+ moc_MyPty.o \
+ moc_commandeditdialogbase.o \
+ moc_smallcommandeditdialogbase.o
####### Implicit rules
.SUFFIXES: .cpp .cxx .cc .C .c
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
@@ -138,25 +162,26 @@ TEScreen.o: TEScreen.cpp \
TECommon.h \
TEHistory.h
TEWidget.o: TEWidget.cpp \
TEWidget.h \
TECommon.h \
session.h \
MyPty.h \
TEmuVt102.h \
TEScreen.h \
TEHistory.h \
TEmulation.h \
- keytrans.h
+ keytrans.h \
+ $(OPIEDIR)/include/qpe/config.h
TEHistory.o: TEHistory.cpp \
TEHistory.h \
TECommon.h
TEmulation.o: TEmulation.cpp \
TEmulation.h \
TEWidget.h \
TECommon.h \
TEScreen.h \
TEHistory.h \
keytrans.h
@@ -191,42 +216,85 @@ konsole.o: konsole.cpp \
$(OPIEDIR)/include/qpe/qpetoolbar.h \
$(OPIEDIR)/include/qpe/qpemenubar.h \
$(OPIEDIR)/include/qpe/config.h \
konsole.h \
MyPty.h \
TEWidget.h \
TECommon.h \
TEmuVt102.h \
TEScreen.h \
TEHistory.h \
TEmulation.h \
keytrans.h \
- session.h
+ session.h \
+ commandeditdialog.h \
+ commandeditdialogbase.h
+
+commandeditdialog.o: commandeditdialog.cpp \
+ commandeditdialog.h \
+ commandeditdialogbase.h \
+ playlistselection.h \
+ $(OPIEDIR)/include/qpe/applnk.h \
+ $(OPIEDIR)/include/qpe/config.h \
+ $(OPIEDIR)/include/qpe/qpetoolbar.h \
+ $(OPIEDIR)/include/qpe/qpemenubar.h \
+ $(OPIEDIR)/include/qpe/resource.h \
+ smallcommandeditdialogbase.h
+
+commandeditwidget.o: commandeditwidget.cpp \
+ commandeditwidget.h \
+ playlistselection.h \
+ $(OPIEDIR)/include/qpe/applnk.h
+
+playlistselection.o: playlistselection.cpp \
+ $(OPIEDIR)/include/qpe/applnk.h \
+ $(OPIEDIR)/include/qpe/resource.h \
+ playlistselection.h
+
+MyPty.o: MyPty.cpp \
+ MyPty.h
main.o: main.cpp \
konsole.h \
$(OPIEDIR)/include/qpe/qpetoolbar.h \
MyPty.h \
TEWidget.h \
TECommon.h \
TEmuVt102.h \
TEScreen.h \
TEHistory.h \
TEmulation.h \
keytrans.h \
session.h \
$(OPIEDIR)/include/qpe/qpeapplication.h
-MyPty.o: MyPty.cpp \
- MyPty.h
+commandeditdialogbase.h: commandeditdialogbase.ui
+ $(UIC) commandeditdialogbase.ui -o $(INTERFACE_DECL_PATH)/commandeditdialogbase.h
+
+commandeditdialogbase.cpp: commandeditdialogbase.ui
+ $(UIC) commandeditdialogbase.ui -i commandeditdialogbase.h -o commandeditdialogbase.cpp
+
+smallcommandeditdialogbase.h: smallcommandeditdialogbase.ui
+ $(UIC) smallcommandeditdialogbase.ui -o $(INTERFACE_DECL_PATH)/smallcommandeditdialogbase.h
+
+smallcommandeditdialogbase.cpp: smallcommandeditdialogbase.ui
+ $(UIC) smallcommandeditdialogbase.ui -i smallcommandeditdialogbase.h -o smallcommandeditdialogbase.cpp
+
+commandeditdialogbase.o: commandeditdialogbase.cpp \
+ commandeditdialogbase.h \
+ playlistselection.h \
+ $(OPIEDIR)/include/qpe/applnk.h
+
+smallcommandeditdialogbase.o: smallcommandeditdialogbase.cpp \
+ smallcommandeditdialogbase.h
moc_TEWidget.o: moc_TEWidget.cpp \
TEWidget.h \
TECommon.h
moc_TEmulation.o: moc_TEmulation.cpp \
TEmulation.h \
TEWidget.h \
TECommon.h \
TEScreen.h \
TEHistory.h \
keytrans.h
@@ -255,34 +323,66 @@ moc_konsole.o: moc_konsole.cpp \
konsole.h \
$(OPIEDIR)/include/qpe/qpetoolbar.h \
MyPty.h \
TEWidget.h \
TECommon.h \
TEmuVt102.h \
TEScreen.h \
TEHistory.h \
TEmulation.h \
keytrans.h \
session.h
+moc_commandeditdialog.o: moc_commandeditdialog.cpp \
+ commandeditdialog.h \
+ commandeditdialogbase.h
+
+moc_commandeditwidget.o: moc_commandeditwidget.cpp \
+ commandeditwidget.h
+
+moc_playlistselection.o: moc_playlistselection.cpp \
+ playlistselection.h \
+ $(OPIEDIR)/include/qpe/applnk.h
+
moc_MyPty.o: moc_MyPty.cpp \
MyPty.h
+moc_commandeditdialogbase.o: moc_commandeditdialogbase.cpp \
+ commandeditdialogbase.h
+
+moc_smallcommandeditdialogbase.o: moc_smallcommandeditdialogbase.cpp \
+ smallcommandeditdialogbase.h
+
moc_TEWidget.cpp: TEWidget.h
$(MOC) TEWidget.h -o moc_TEWidget.cpp
moc_TEmulation.cpp: TEmulation.h
$(MOC) TEmulation.h -o moc_TEmulation.cpp
moc_TEmuVt102.cpp: TEmuVt102.h
$(MOC) TEmuVt102.h -o moc_TEmuVt102.cpp
moc_session.cpp: session.h
$(MOC) session.h -o moc_session.cpp
moc_konsole.cpp: konsole.h
$(MOC) konsole.h -o moc_konsole.cpp
+moc_commandeditdialog.cpp: commandeditdialog.h
+ $(MOC) commandeditdialog.h -o moc_commandeditdialog.cpp
+
+moc_commandeditwidget.cpp: commandeditwidget.h
+ $(MOC) commandeditwidget.h -o moc_commandeditwidget.cpp
+
+moc_playlistselection.cpp: playlistselection.h
+ $(MOC) playlistselection.h -o moc_playlistselection.cpp
+
moc_MyPty.cpp: MyPty.h
$(MOC) MyPty.h -o moc_MyPty.cpp
+moc_commandeditdialogbase.cpp: commandeditdialogbase.h
+ $(MOC) commandeditdialogbase.h -o moc_commandeditdialogbase.cpp
+
+moc_smallcommandeditdialogbase.cpp: smallcommandeditdialogbase.h
+ $(MOC) smallcommandeditdialogbase.h -o moc_smallcommandeditdialogbase.cpp
+
diff --git a/core/apps/embeddedkonsole/TEWidget.cpp b/core/apps/embeddedkonsole/TEWidget.cpp
index a56dc50..dab0ea3 100644
--- a/core/apps/embeddedkonsole/TEWidget.cpp
+++ b/core/apps/embeddedkonsole/TEWidget.cpp
diff --git a/core/apps/embeddedkonsole/commandeditdialog.cpp b/core/apps/embeddedkonsole/commandeditdialog.cpp
index e8ef858..ce21c47 100644
--- a/core/apps/embeddedkonsole/commandeditdialog.cpp
+++ b/core/apps/embeddedkonsole/commandeditdialog.cpp
@@ -212,13 +212,12 @@ if ((i==1) && (!(d->commandEdit->text()).isEmpty()))
}
void CommandEditDialog::showAddDialog()
{
editCommandBase *d = new editCommandBase(this,"smalleditdialog", TRUE);
int i = d->exec();
if ((i==1) && (!(d->commandEdit->text()).isEmpty()))
m_PlayListSelection->addStringToSelection(d->commandEdit->text());
}
-
diff --git a/core/apps/embeddedkonsole/commandeditdialogbase.cpp b/core/apps/embeddedkonsole/commandeditdialogbase.cpp
new file mode 100644
index 0000000..f25edb4
--- a/dev/null
+++ b/core/apps/embeddedkonsole/commandeditdialogbase.cpp
@@ -0,0 +1,101 @@
+/****************************************************************************
+** Form implementation generated from reading ui file 'commandeditdialogbase.ui'
+**
+** Created: Sun Feb 3 15:23:58 2002
+** by: The User Interface Compiler (uic)
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+#include "commandeditdialogbase.h"
+
+#include <qheader.h>
+#include <qlabel.h>
+#include <qlistview.h>
+#include <qpushbutton.h>
+#include <qtoolbutton.h>
+#include "playlistselection.h"
+#include <qlayout.h>
+#include <qvariant.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+
+/*
+ * Constructs a CommandEditDialogBase which is a child of 'parent', with the
+ * name 'name' and widget flags set to 'f'
+ *
+ * The dialog will by default be modeless, unless you set 'modal' to
+ * TRUE to construct a modal dialog.
+ */
+CommandEditDialogBase::CommandEditDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
+ : QDialog( parent, name, modal, fl )
+{
+ if ( !name )
+ setName( "CommandEditDialogBase" );
+ resize( 196, 414 );
+ setCaption( tr( "Commands" ) );
+ CommandEditDialogBaseLayout = new QGridLayout( this );
+ CommandEditDialogBaseLayout->setSpacing( 6 );
+ CommandEditDialogBaseLayout->setMargin( 11 );
+
+ TextLabel1 = new QLabel( this, "TextLabel1" );
+ TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
+ TextLabel1->setText( tr( "<B>Commands</B>:" ) );
+
+ CommandEditDialogBaseLayout->addWidget( TextLabel1, 0, 0 );
+
+ Layout2 = new QVBoxLayout;
+ Layout2->setSpacing( 6 );
+ Layout2->setMargin( 0 );
+
+ ToolButton1 = new QToolButton( this, "ToolButton1" );
+ ToolButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton1->sizePolicy().hasHeightForWidth() ) );
+ Layout2->addWidget( ToolButton1 );
+
+ ToolButton2 = new QToolButton( this, "ToolButton2" );
+ ToolButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton2->sizePolicy().hasHeightForWidth() ) );
+ Layout2->addWidget( ToolButton2 );
+
+ ToolButton3 = new QToolButton( this, "ToolButton3" );
+ ToolButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton3->sizePolicy().hasHeightForWidth() ) );
+ Layout2->addWidget( ToolButton3 );
+
+ ToolButton4 = new QToolButton( this, "ToolButton4" );
+ ToolButton4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton4->sizePolicy().hasHeightForWidth() ) );
+ Layout2->addWidget( ToolButton4 );
+
+ ToolButton5 = new QToolButton( this, "ToolButton5" );
+ ToolButton5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton5->sizePolicy().hasHeightForWidth() ) );
+ Layout2->addWidget( ToolButton5 );
+
+ CommandEditDialogBaseLayout->addLayout( Layout2, 1, 2 );
+ QSpacerItem* spacer = new QSpacerItem( 21, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
+ CommandEditDialogBaseLayout->addItem( spacer, 0, 2 );
+
+ TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
+ TextLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, TextLabel1_2->sizePolicy().hasHeightForWidth() ) );
+ TextLabel1_2->setText( tr( "<B>Suggested Commands</B>:" ) );
+
+ CommandEditDialogBaseLayout->addWidget( TextLabel1_2, 2, 0 );
+
+ m_PlayListSelection = new PlayListSelection( this, "m_PlayListSelection" );
+ m_PlayListSelection->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, m_PlayListSelection->sizePolicy().hasHeightForWidth() ) );
+
+ CommandEditDialogBaseLayout->addMultiCellWidget( m_PlayListSelection, 1, 1, 0, 1 );
+ QSpacerItem* spacer_2 = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Fixed );
+ CommandEditDialogBaseLayout->addItem( spacer_2, 2, 1 );
+ QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed );
+ CommandEditDialogBaseLayout->addItem( spacer_3, 2, 2 );
+
+ m_SuggestedCommandList = new QListView( this, "m_SuggestedCommandList" );
+
+ CommandEditDialogBaseLayout->addMultiCellWidget( m_SuggestedCommandList, 3, 3, 0, 1 );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+CommandEditDialogBase::~CommandEditDialogBase()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
diff --git a/core/apps/embeddedkonsole/commandeditdialogbase.h b/core/apps/embeddedkonsole/commandeditdialogbase.h
new file mode 100644
index 0000000..6a37ec9
--- a/dev/null
+++ b/core/apps/embeddedkonsole/commandeditdialogbase.h
@@ -0,0 +1,46 @@
+/****************************************************************************
+** Form interface generated from reading ui file 'commandeditdialogbase.ui'
+**
+** Created: Sun Feb 3 15:23:28 2002
+** by: The User Interface Compiler (uic)
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+#ifndef COMMANDEDITDIALOGBASE_H
+#define COMMANDEDITDIALOGBASE_H
+
+#include <qvariant.h>
+#include <qdialog.h>
+class QVBoxLayout;
+class QHBoxLayout;
+class QGridLayout;
+class PlayListSelection;
+class QLabel;
+class QListView;
+class QListViewItem;
+class QToolButton;
+
+class CommandEditDialogBase : public QDialog
+{
+ Q_OBJECT
+
+public:
+ CommandEditDialogBase( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ ~CommandEditDialogBase();
+
+ QLabel* TextLabel1;
+ QToolButton* ToolButton1;
+ QToolButton* ToolButton2;
+ QToolButton* ToolButton3;
+ QToolButton* ToolButton4;
+ QToolButton* ToolButton5;
+ QLabel* TextLabel1_2;
+ PlayListSelection* m_PlayListSelection;
+ QListView* m_SuggestedCommandList;
+
+protected:
+ QGridLayout* CommandEditDialogBaseLayout;
+ QVBoxLayout* Layout2;
+};
+
+#endif // COMMANDEDITDIALOGBASE_H