2008-11-15 09:29:34 -05:00
|
|
|
#include "ui_TrustView.h"
|
|
|
|
|
|
|
|
class QWheelEvent ;
|
2009-08-29 07:25:06 -04:00
|
|
|
class QShowEvent ;
|
2008-11-15 09:29:34 -05:00
|
|
|
|
|
|
|
class TrustView: public QWidget, public Ui::TrustView
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
TrustView() ;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void wheelEvent(QWheelEvent *) ;
|
2009-08-29 07:25:06 -04:00
|
|
|
virtual void showEvent(QShowEvent *) ;
|
2008-11-15 09:29:34 -05:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void update() ;
|
|
|
|
void updateZoom(int) ;
|
|
|
|
void selectCell(int,int) ;
|
2008-11-29 12:55:13 -05:00
|
|
|
void hideShowPeers(int) ;
|
2008-11-15 09:29:34 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
void getCellSize(int z,int& cell_width,int& cell_height) const ;
|
|
|
|
int getRowColId(const std::string& name) ;
|
|
|
|
|
|
|
|
static const int _base_cell_width = 60 ;
|
|
|
|
static const int _base_cell_height = 30 ;
|
|
|
|
};
|
|
|
|
|