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

chooserwidget.cpp

Go to the documentation of this file.
00001 /*
00002  *           kPPP: A pppd front end for the KDE project
00003  *
00004  * $Id: chooserwidget.cpp,v 1.2 2003/08/09 17:14:55 kergoth Exp $
00005  *
00006  *            Copyright (C) 1997 Bernd Johannes Wuebben
00007  *                   wuebben@math.cornell.edu
00008  *
00009  * based on EzPPP:
00010  * Copyright (C) 1997  Jay Painter
00011  *
00012  * This program is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Library General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2 of the License, or (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Library General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Library General Public
00023  * License along with this program; if not, write to the Free
00024  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00025  */
00026 
00027 #include <qdir.h>
00028 #include <stdlib.h>
00029 #include <qlayout.h>
00030 #include <qtabwidget.h>
00031 #include <qtabdialog.h>
00032 #include <qwhatsthis.h>
00033 #include <qmessagebox.h>
00034 
00035 #include <qapplication.h>
00036 #include <qbuttongroup.h>
00037 #include <qmessagebox.h>
00038 #include <qvgroupbox.h>
00039 #include <qwidget.h>
00040 
00041 #include "accounts.h"
00042 #include "authwidget.h"
00043 #include "pppdata.h"
00044 #include "edit.h"
00045 
00046 void parseargs(char* buf, char** args);
00047 
00048 ChooserWidget::ChooserWidget( PPPData *pd, QWidget *parent, const char *name, WFlags f )
00049     : QWidget( parent, name, f )
00050 {
00051     _pppdata = pd;
00052   QVBoxLayout *l1 = new QVBoxLayout(this, 10, 10);
00053   listListbox = new QListBox(this);
00054 
00055   connect(listListbox, SIGNAL(highlighted(int)),
00056           this, SLOT(slotListBoxSelect(int)));
00057   connect(listListbox, SIGNAL(selected(int)),this, SLOT(edit()));
00058   l1->addWidget(listListbox, 10);
00059 
00060   edit_b = new QPushButton(tr("&Edit..."), this);
00061   connect(edit_b, SIGNAL(clicked()), SLOT(edit()));
00062   l1->addWidget(edit_b);
00063 
00064   new_b = new QPushButton(tr("&New..."), this);
00065   connect(new_b, SIGNAL(clicked()), SLOT(create()));
00066   l1->addWidget(new_b);
00067 
00068 
00069   copy_b = new QPushButton(tr("Co&py"), this);
00070   connect(copy_b, SIGNAL(clicked()), SLOT(copy()));
00071   l1->addWidget(copy_b);
00072 
00073   delete_b = new QPushButton(tr("De&lete"), this);
00074   connect(delete_b, SIGNAL(clicked()), SLOT(remove()));
00075   l1->addWidget(delete_b);
00076 
00077 
00078   QHBoxLayout *l12 = new QHBoxLayout;
00079   l1->addStretch(1);
00080   l1->addLayout(l12);
00081 
00082   l1->activate();
00083 
00084 }
00085 

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