00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "openetext.h"
00019 #include <qtooltip.h>
00020 #include <qlayout.h>
00021 #include <qpe/config.h>
00022
00023 void OpenEtext::initDialog()
00024 {
00025 this->setCaption("gutenbrowser local library");
00026
00027 QGridLayout *layout = new QGridLayout( this );
00028 layout->setSpacing( 4 );
00029 layout->setMargin( 4 );
00030
00031
00032 local_index = local_library +"GUTINDEX.ALL";
00033
00034 QListBox_1= new QListBox(this,"ListBox");
00035 QListBox_1->setAutoUpdate( TRUE );
00036
00037 OpenButton = new QPushButton( this, "OpenButton" );
00038 OpenButton->setFocusPolicy( QWidget::TabFocus );
00039 OpenButton->setText("&Open");
00040 OpenFileButton = new QPushButton( this, "addButton" );
00041 OpenFileButton->setText("&Import");
00042
00043 RemoveButton = new QPushButton( this, "removeButton" );
00044 RemoveButton->setFocusPolicy( QWidget::TabFocus );
00045 RemoveButton->setText("&Delete");
00046
00047 QPushButton * scanButton;
00048 scanButton= new QPushButton( this, "scanButton" );
00049 scanButton->setFocusPolicy( QWidget::TabFocus );
00050
00051 scanButton->setText("&Sort");
00052 editButton= new QPushButton(this,"EditBtn");
00053 editButton->setText("&Edit");
00054
00055 QLabel_1= new QLabel(this,"label");
00056
00057 layout->addMultiCellWidget( OpenButton, 0, 0, 0, 0 );
00058 layout->addMultiCellWidget( OpenFileButton, 0, 0, 1, 1 );
00059 layout->addMultiCellWidget( RemoveButton, 0, 0, 2, 2 );
00060 layout->addMultiCellWidget( scanButton, 0, 0, 3, 3 );
00061 layout->addMultiCellWidget( editButton, 0, 0, 5, 5 );
00062
00063 layout->addMultiCellWidget( QLabel_1, 1, 1, 0, 5 );
00064 layout->addMultiCellWidget( QListBox_1, 2, 2, 0, 5 );
00065
00066 OpenButton->setFixedHeight(22);
00067 OpenFileButton->setFixedHeight(22);
00068 RemoveButton->setFixedHeight(22);
00069 scanButton->setFixedHeight(22);
00070 editButton->setFixedHeight(22);
00071
00072 connect( OpenButton, SIGNAL(released()), SLOT( OpenTitle()) );
00073 connect( OpenFileButton, SIGNAL(released()), SLOT(open()) );
00074 connect( RemoveButton, SIGNAL(released()), SLOT(remove()) );
00075 connect( scanButton, SIGNAL(released()), SLOT( scan()) );
00076 connect( editButton, SIGNAL(released()),SLOT(editTitle()));
00077 }