2008-11-15 09:29:34 -05:00
|
|
|
#include "ui_TrustView.h"
|
2010-03-28 16:46:45 -04:00
|
|
|
#include <gui/RsAutoUpdatePage.h>
|
2008-11-15 09:29:34 -05:00
|
|
|
|
|
|
|
class QWheelEvent ;
|
2009-08-29 07:25:06 -04:00
|
|
|
class QShowEvent ;
|
2008-11-15 09:29:34 -05:00
|
|
|
|
2010-03-28 16:46:45 -04:00
|
|
|
class TrustView: public RsAutoUpdatePage, public Ui::TrustView
|
2008-11-15 09:29:34 -05:00
|
|
|
{
|
|
|
|
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
|
|
|
|
2010-03-28 16:46:45 -04:00
|
|
|
virtual void updateDisplay() ;
|
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 ;
|
|
|
|
};
|
|
|
|
|