00001 #ifndef CLASS_SOFT_WIDGET_H
00002 #define CLASS_SOFT_WIDGET_H
00003
00004 #include <qapplication.h>
00005 #include <qhbox.h>
00006 #include <qvbox.h>
00007 #include <qlistview.h>
00008 #include <qtextedit.h>
00009 #include <qlineedit.h>
00010 #include <qpushbutton.h>
00011 #include <qlabel.h>
00012 #include "../header/database.h"
00013
00016
00018
00021 class Listing : public QListView
00022 {
00023 public:
00025
00031 Listing( QWidget *parent=0, const char *name=0, WFlags f=0 );
00032 };
00033
00034
00036
00039 class TextView : public QTextEdit
00040 {
00041 Q_OBJECT
00042 public:
00044
00049 TextView( QWidget *parent=0, const char *name=0 );
00050 public slots:
00052
00057 void showInfo( QListViewItem *qlvi_Item );
00058 };
00059
00060
00062
00065 class SearchButtons : public QHBox
00066 {
00067 public:
00069
00076 SearchButtons( QWidget *parent=0, const char *name=0, const char *searchName=0, const char *searchAgainName=0 );
00077
00079 QPushButton *qpb_Search;
00081 QPushButton *qpb_SearchAgain;
00082 };
00083
00084
00086
00089 class SearchInput : public QHBox
00090 {
00091 public:
00093
00101 SearchInput( QWidget *parent=0, const char *name=0, const char *labelName=0, const char *lineEditName=0, const char *labelText=0 );
00102
00104 QLabel *ql_Label;
00106 QLineEdit *qle_Edit;
00107 };
00108
00109
00111
00114 class SearchBox : public QVBox
00115 {
00116 public:
00118
00123 SearchBox( QWidget *parent=0, const char *name=0 );
00124
00126 SearchInput *si_Class;
00128 SearchButtons *sbs_Class;
00129
00130
00131
00132
00133 };
00134
00135
00137
00140 class RightBox : public QVBox
00141 {
00142 public:
00144
00149 RightBox( QWidget *parent=0, const char *name=0 );
00150
00152 TextView *tv_Text;
00154 SearchBox *sb_Search;
00155 };
00156
00157
00159
00162 class MainLayout : public QHBox
00163 {
00164 Q_OBJECT
00165 public:
00167
00172 MainLayout( QWidget *parent=0, const char *name=0 );
00173
00175 Listing *l_List;
00177 RightBox *rv_Box;
00178
00179 public slots:
00181
00184 void searchClass();
00185
00187
00190 void searchClassAgain();
00191
00192 };
00193
00196 #endif