Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

openetextdata.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002                           openetextdata.cpp  -  description
00003                              -------------------
00004     begin                : Sat Dec 4 1999
00005     begin                : Tue Jul 25 2000
00006     copyright            : (C) 2000 -2004 by llornkcor
00007     email                : ljp@llornkcor.com
00008  ***************************************************************************/
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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 //  local_index = local_library +"PGWHOLE.TXT";
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 }

Generated on Sat Nov 5 16:16:53 2005 for OPIE by  doxygen 1.4.2