UltraScan III
us_associations_gui.h
Go to the documentation of this file.
1 #ifndef US_ASSOCIATIONS_GUI_H
3 #define US_ASSOCIATIONS_GUI_H
4 
5 #include <QtGui>
6 
7 #include "us_widgets_dialog.h"
8 #include "us_widgets.h"
9 #include "us_model.h"
10 #include "us_help.h"
11 #include "us_extern.h"
12 
14 
16 {
17  Q_OBJECT
18 
19  public:
22 
23  signals:
24 
26  void done( void );
27 
28  private:
32  QTableWidget* tw;
33 
34  QFontMetrics* fm;
35 
36  QList< QwtCounter* > keq;
37  QList< QwtCounter* > koff;
38 
39  void new_row ( void );
40  void populate ( void );
41  void set_component( int, int, int );
42  bool combine_reactants( US_Model::Association* );
43 
44  private slots:
45  void changed ( int, int );
46  void del ( int );
47  void complete ( void );
48 
49  void help ( void )
50  { showhelp.show_help( "associations.html" ); };
51 };
52 
56 class US_GUI_EXTERN US_PushButton : public QPushButton
57 {
58  Q_OBJECT
59 
60 public:
64  US_PushButton( const QString&, int );
67  void setIndex( int i ){ index = i; };
68 
69 signals:
71  void pushed( int );
72 
73 private:
74  int index;
75 
76 private slots:
77  void mousePressEvent( QMouseEvent* );
78 };
79 
80 #endif