discoverpixy
Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph
[legend]
Collaboration diagram for MainWindow:
Collaboration graph
[legend]

Public Member Functions

 MainWindow (QWidget *parent=0)
 
void draw_line (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
 
void draw_pixel (uint16_t x, uint16_t y, uint16_t color)
 
void clear (uint16_t color)
 
void draw_rectangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
 
void fill_rectangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
 
void draw_bitmap_unscaled (uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint16_t *dat)
 
void draw_circle (uint16_t x, uint16_t y, uint16_t r, uint16_t color)
 
void draw_char (uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, QFont font, char c)
 

Protected Member Functions

void paintEvent (QPaintEvent *evt)
 
void mousePressEvent (QMouseEvent *evt)
 
void mouseReleaseEvent (QMouseEvent *evt)
 
void mouseMoveEvent (QMouseEvent *evt)
 
 ~MainWindow ()
 

Private Slots

void on_cboZoom_currentIndexChanged (int index)
 

Private Member Functions

void checkAndSendEvent (QPoint pos, bool down)
 

Private Attributes

QImage image
 
int currentScale
 
Ui::MainWindow * ui
 

Constructor & Destructor Documentation

MainWindow ( QWidget *  parent = 0)
explicit
~MainWindow ( )
protected

Member Function Documentation

void checkAndSendEvent ( QPoint  pos,
bool  down 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void clear ( uint16_t  color)

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_bitmap_unscaled ( uint16_t  x,
uint16_t  y,
uint16_t  width,
uint16_t  height,
const uint16_t *  dat 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_char ( uint16_t  x,
uint16_t  y,
uint16_t  color,
uint16_t  bgcolor,
QFont  font,
char  c 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_circle ( uint16_t  x,
uint16_t  y,
uint16_t  r,
uint16_t  color 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_line ( uint16_t  x1,
uint16_t  y1,
uint16_t  x2,
uint16_t  y2,
uint16_t  color 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_pixel ( uint16_t  x,
uint16_t  y,
uint16_t  color 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_rectangle ( uint16_t  x1,
uint16_t  y1,
uint16_t  x2,
uint16_t  y2,
uint16_t  color 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void fill_rectangle ( uint16_t  x1,
uint16_t  y1,
uint16_t  x2,
uint16_t  y2,
uint16_t  color 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void mouseMoveEvent ( QMouseEvent *  evt)
protected

Here is the call graph for this function:

void mousePressEvent ( QMouseEvent *  evt)
protected

Here is the call graph for this function:

void mouseReleaseEvent ( QMouseEvent *  evt)
protected

Here is the call graph for this function:

void on_cboZoom_currentIndexChanged ( int  index)
privateslot

Here is the call graph for this function:

void paintEvent ( QPaintEvent *  evt)
protected

Field Documentation

int currentScale
private
QImage image
private
Ui::MainWindow* ui
private

The documentation for this class was generated from the following files: