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

templatedialog.cpp

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (C) Opie Team <opie-devel@handhelds.org>
00005               =.
00006             .=l.
00007            .>+-=
00008  _;:,     .>    :=|.         This program is free software; you can
00009 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00010 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00011 .="- .-=="i,     .._         License as published by the Free Software
00012  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00013      ._= =}       :          or (at your option) any later version.
00014     .%`+i>       _;_.
00015     .i_,=:_.      -<s.       This program is distributed in the hope that
00016      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00017     : ..    .:,     . . .    without even the implied warranty of
00018     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00019   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00020 ..}^=.=       =       ;      Library General Public License for more
00021 ++=   -.     .`     .:       details.
00022 :     =  ...= . :.=-
00023  -.   .:....=;==+<;          You should have received a copy of the GNU
00024   -_. . .   )=.  =           Library General Public License along with
00025     --        :-=`           this library; see the file COPYING.LIB.
00026                              If not, write to the Free Software Foundation,
00027                              Inc., 59 Temple Place - Suite 330,
00028                              Boston, MA 02111-1307, USA.
00029 */
00030 
00031 #include <opie2/odebug.h>
00032 
00033 #include <qpushbutton.h>
00034 #include <qhbox.h>
00035 #include <qlayout.h>
00036 #include <qlistview.h>
00037 #include <qlineedit.h>
00038 
00039 #include "templatedialog.h"
00040 
00041 
00042 using namespace Todo;
00043 
00044 /* TRANSLATOR Todo::TemplateDialog */
00045 
00046 TemplateDialog::TemplateDialog( QWidget* widget )
00047     : QDialog( widget, "TemplateDialog", TRUE )
00048 {
00049     setCaption( QWidget::tr("Template Editor") );
00050     m_main = new QVBoxLayout(this );
00051 
00052     m_list = new QListView( this );
00053     m_main->addWidget( m_list, 100 );
00054 
00055     m_lne = new QLineEdit( this );
00056     m_main->addWidget( m_lne );
00057 
00058     m_btnBar = new QHBox( this );
00059     m_add = new QPushButton( QWidget::tr("Add"), m_btnBar );
00060     m_edit = new QPushButton( QWidget::tr("Edit"), m_btnBar );
00061     m_rem = new QPushButton( QWidget::tr("Remove"), m_btnBar );
00062     m_main->addWidget( m_btnBar );
00063 
00064     connect(m_add,  SIGNAL(clicked() ),
00065             this,   SLOT(slotAdd() ) );
00066     connect(m_edit, SIGNAL(clicked() ),
00067             this,   SLOT(slotEdit() ) );
00068     connect(m_rem,  SIGNAL(clicked() ),
00069             this,   SLOT(slotRemove() ) );
00070     connect(m_lne, SIGNAL(returnPressed() ),
00071             this,   SLOT(slotReturn() ) );
00072 
00073 }
00074 TemplateDialog::~TemplateDialog() {
00075     // Qt does delete our widgets
00076 }
00077 QListView* TemplateDialog::listView() {
00078     return m_list;
00079 }
00080 QLineEdit* TemplateDialog::edit() {
00081     return m_lne;
00082 }
00083 void TemplateDialog::slotAdd() {
00084 }
00085 void TemplateDialog::slotRemove() {
00086 }
00087 void TemplateDialog::slotEdit() {
00088 }
00089 void TemplateDialog::slotReturn() {
00090 }

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