summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/test/FilePropsPageBase.java
blob: 4fd11d276fafae0e848fa6f557a9995b46f68fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/****************************************************************************
** Form interface generated from reading ui file 'filepropspagebase.ui'
**
** Created: Fri Nov 24 10:51:51 2000
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

import org.kde.qt.*;

public class FilePropsPageBase extends QWidget { 
    QGroupBox GroupBox7;
    QLabel TextLabel1_2;
    QLineEdit classname_edit;
    QLabel TextLabel2_2;
    QLineEdit baseclass_edit;
    QLineEdit headerfile_edit;
    QLabel implfile_label;
    QLabel headerfile_label;
    QLineEdit implfile_edit;
    QLabel TextLabel5;
    QLabel TextLabel6;
    QListBox classes_listbox;
    QMultiLineEdit desc_textview;

    QGridLayout grid;
    QGridLayout grid_2;


/* 
 *  Constructs a FilePropsPageBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
public FilePropsPageBase( QWidget parent, String name, int fl )
{
    super( parent, name, fl );
    if ( name == null )
	setName( "Form1" );
    resize( 414, 366 ); 
    setCaption( tr( "Form1"  ) );
    grid = new QGridLayout( this ); 
    grid.setSpacing( 6 );
    grid.setMargin( 11 );

    GroupBox7 = new QGroupBox( this, "GroupBox7" );
    GroupBox7.setTitle( tr( "Customize"  ) );
    GroupBox7.setColumnLayout(0, Qt.Vertical );
    GroupBox7.layout().setSpacing( 0 );
    GroupBox7.layout().setMargin( 0 );
    grid_2 = new QGridLayout( GroupBox7.layout() );
    grid_2.setAlignment( Qt.AlignTop );
    grid_2.setSpacing( 6 );
    grid_2.setMargin( 11 );

    TextLabel1_2 = new QLabel( GroupBox7, "TextLabel1_2" );
    TextLabel1_2.setText( tr( "Class name:"  ) );

    grid_2.addWidget( TextLabel1_2, 0, 0 );

    classname_edit = new QLineEdit( GroupBox7, "classname_edit" );

    grid_2.addWidget( classname_edit, 1, 0 );

    TextLabel2_2 = new QLabel( GroupBox7, "TextLabel2_2" );
    TextLabel2_2.setText( tr( "Base class:"  ) );

    grid_2.addWidget( TextLabel2_2, 2, 0 );

    baseclass_edit = new QLineEdit( GroupBox7, "baseclass_edit" );

    grid_2.addWidget( baseclass_edit, 3, 0 );

    headerfile_edit = new QLineEdit( GroupBox7, "headerfile_edit" );

    grid_2.addWidget( headerfile_edit, 1, 1 );

    implfile_label = new QLabel( GroupBox7, "implfile_label" );
    implfile_label.setText( tr( "Implementation file:"  ) );

    grid_2.addWidget( implfile_label, 2, 1 );

    headerfile_label = new QLabel( GroupBox7, "headerfile_label" );
    headerfile_label.setText( tr( "Header file:"  ) );

    grid_2.addWidget( headerfile_label, 0, 1 );

    implfile_edit = new QLineEdit( GroupBox7, "implfile_edit" );

    grid_2.addWidget( implfile_edit, 3, 1 );

    grid.addMultiCellWidget( GroupBox7, 2, 2, 0, 1 );

    TextLabel5 = new QLabel( this, "TextLabel5" );
    TextLabel5.setText( tr( "Classes:"  ) );

    grid.addWidget( TextLabel5, 0, 0 );

    TextLabel6 = new QLabel( this, "TextLabel6" );
    TextLabel6.setText( tr( "Description:"  ) );

    grid.addWidget( TextLabel6, 0, 1 );

    classes_listbox = new QListBox( this, "classes_listbox" );

    grid.addWidget( classes_listbox, 1, 0 );

    desc_textview = new QMultiLineEdit( this, "desc_textview" );
    desc_textview.setEnabled( true );
    desc_textview.setText( tr( ""  ) );
    desc_textview.setWordWrap( QMultiLineEdit.WidgetWidth );
    desc_textview.setReadOnly( true );

    grid.addWidget( desc_textview, 1, 1 );

    // signals and slots connections
    connect( classname_edit, SIGNAL( "textChanged(String)" ), this, SLOT( "slotClassnameChanged(String)" ) );
    connect( classes_listbox, SIGNAL( "mouseButtonClicked(int,QListBoxItem,QPoint)" ), this, SLOT( "slotSelectionChanged()" ) );

    // tab order
    setTabOrder( classes_listbox, classname_edit );
    setTabOrder( classname_edit, headerfile_edit );
    setTabOrder( headerfile_edit, baseclass_edit );
    setTabOrder( baseclass_edit, implfile_edit );
}

public void slotSelectionChanged()
{
    qWarning( "FilePropsPageBase.slotSelectionChanged(): Not implemented yet!" );
}

public void slotClassnameChanged(java.lang.String string)
{
    qWarning( "FilePropsPageBase.slotClassnameChanged(java.lang.String string): Not implemented yet!" );
}

}