source: trunk/examples/addressbook/centralwidget.h@ 168

Last change on this file since 168 was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1/****************************************************************************
2** $Id: centralwidget.h 2 2005-11-16 15:49:26Z dmik $
3**
4** Copyright ( C ) 1992-2000 Trolltech AS. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9*****************************************************************************/
10
11#ifndef AB_CENTRALWIDGET_H
12#define AB_CENTRALWIDGET_H
13
14#include <qwidget.h>
15#include <qstring.h>
16
17class QTabWidget;
18class QListView;
19class QGridLayout;
20class QLineEdit;
21class QPushButton;
22class QListViewItem;
23class QCheckBox;
24
25class ABCentralWidget : public QWidget
26{
27 Q_OBJECT
28
29public:
30 ABCentralWidget( QWidget *parent, const char *name = 0 );
31
32 void save( const QString &filename );
33 void load( const QString &filename );
34
35protected slots:
36 void addEntry();
37 void changeEntry();
38 void itemSelected( QListViewItem* );
39 void selectionChanged();
40 void toggleFirstName();
41 void toggleLastName();
42 void toggleAddress();
43 void toggleEMail();
44 void findEntries();
45
46protected:
47 void setupTabWidget();
48 void setupListView();
49
50 QGridLayout *mainGrid;
51 QTabWidget *tabWidget;
52 QListView *listView;
53 QPushButton *add, *change, *find;
54 QLineEdit *iFirstName, *iLastName, *iAddress, *iEMail,
55 *sFirstName, *sLastName, *sAddress, *sEMail;
56 QCheckBox *cFirstName, *cLastName, *cAddress, *cEMail;
57
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.