summaryrefslogtreecommitdiff
path: root/core/apps/embeddedkonsole/commandeditdialogbase.cpp
Unidiff
Diffstat (limited to 'core/apps/embeddedkonsole/commandeditdialogbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/commandeditdialogbase.cpp101
1 files changed, 101 insertions, 0 deletions
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 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'commandeditdialogbase.ui'
3**
4** Created: Sun Feb 3 15:23:58 2002
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "commandeditdialogbase.h"
10
11#include <qheader.h>
12#include <qlabel.h>
13#include <qlistview.h>
14#include <qpushbutton.h>
15#include <qtoolbutton.h>
16#include "playlistselection.h"
17#include <qlayout.h>
18#include <qvariant.h>
19#include <qtooltip.h>
20#include <qwhatsthis.h>
21
22/*
23 * Constructs a CommandEditDialogBase which is a child of 'parent', with the
24 * name 'name' and widget flags set to 'f'
25 *
26 * The dialog will by default be modeless, unless you set 'modal' to
27 * TRUE to construct a modal dialog.
28 */
29CommandEditDialogBase::CommandEditDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
30 : QDialog( parent, name, modal, fl )
31{
32 if ( !name )
33 setName( "CommandEditDialogBase" );
34 resize( 196, 414 );
35 setCaption( tr( "Commands" ) );
36 CommandEditDialogBaseLayout = new QGridLayout( this );
37 CommandEditDialogBaseLayout->setSpacing( 6 );
38 CommandEditDialogBaseLayout->setMargin( 11 );
39
40 TextLabel1 = new QLabel( this, "TextLabel1" );
41 TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
42 TextLabel1->setText( tr( "<B>Commands</B>:" ) );
43
44 CommandEditDialogBaseLayout->addWidget( TextLabel1, 0, 0 );
45
46 Layout2 = new QVBoxLayout;
47 Layout2->setSpacing( 6 );
48 Layout2->setMargin( 0 );
49
50 ToolButton1 = new QToolButton( this, "ToolButton1" );
51 ToolButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton1->sizePolicy().hasHeightForWidth() ) );
52 Layout2->addWidget( ToolButton1 );
53
54 ToolButton2 = new QToolButton( this, "ToolButton2" );
55 ToolButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton2->sizePolicy().hasHeightForWidth() ) );
56 Layout2->addWidget( ToolButton2 );
57
58 ToolButton3 = new QToolButton( this, "ToolButton3" );
59 ToolButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton3->sizePolicy().hasHeightForWidth() ) );
60 Layout2->addWidget( ToolButton3 );
61
62 ToolButton4 = new QToolButton( this, "ToolButton4" );
63 ToolButton4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton4->sizePolicy().hasHeightForWidth() ) );
64 Layout2->addWidget( ToolButton4 );
65
66 ToolButton5 = new QToolButton( this, "ToolButton5" );
67 ToolButton5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, ToolButton5->sizePolicy().hasHeightForWidth() ) );
68 Layout2->addWidget( ToolButton5 );
69
70 CommandEditDialogBaseLayout->addLayout( Layout2, 1, 2 );
71 QSpacerItem* spacer = new QSpacerItem( 21, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
72 CommandEditDialogBaseLayout->addItem( spacer, 0, 2 );
73
74 TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
75 TextLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, TextLabel1_2->sizePolicy().hasHeightForWidth() ) );
76 TextLabel1_2->setText( tr( "<B>Suggested Commands</B>:" ) );
77
78 CommandEditDialogBaseLayout->addWidget( TextLabel1_2, 2, 0 );
79
80 m_PlayListSelection = new PlayListSelection( this, "m_PlayListSelection" );
81 m_PlayListSelection->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, m_PlayListSelection->sizePolicy().hasHeightForWidth() ) );
82
83 CommandEditDialogBaseLayout->addMultiCellWidget( m_PlayListSelection, 1, 1, 0, 1 );
84 QSpacerItem* spacer_2 = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Fixed );
85 CommandEditDialogBaseLayout->addItem( spacer_2, 2, 1 );
86 QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed );
87 CommandEditDialogBaseLayout->addItem( spacer_3, 2, 2 );
88
89 m_SuggestedCommandList = new QListView( this, "m_SuggestedCommandList" );
90
91 CommandEditDialogBaseLayout->addMultiCellWidget( m_SuggestedCommandList, 3, 3, 0, 1 );
92}
93
94/*
95 * Destroys the object and frees any allocated resources
96 */
97CommandEditDialogBase::~CommandEditDialogBase()
98{
99 // no need to delete child widgets, Qt does it all for us
100}
101