/
ogtabelabase.h
59 lines (52 loc) · 2.15 KB
/
ogtabelabase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
# Projeto: Modelador de Banco de Dados PostgreSQL (pgModeler)
# Sub-projeto: Biblioteca libobjrenderer
# Classe: OGTabelaBase
# Descrição: Esta classe deriva a classe ObjetoGrafico e implementa um conjuto de métodos utilitáiros
# para serem usadas pelas classes OGTabela, OGVisao e OGRelacionamento. O sufixo OG foi
# adicionado ao nome da classe para evitar conflitos de nomes entra a classe Tabela da biblioteca
# libpgsqldbm e a classe abaixo definida.
#
# Copyleft 2006-2012 - Raphael Araújo e Silva <rkhaotix@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef OG_TABELABASE_H
#define OG_TABELABASE_H
#include "objetografico.h"
#include "tabelabase.h"
#include "ogtituloobjeto.h"
#include "ogsubitemobjeto.h"
//***********************************************************
class OGTabelaBase: public ObjetoGrafico {
private:
Q_OBJECT
protected:
//Objeto gráfico poligonal que define o corpo da tabela
QGraphicsPolygonItem *corpo;
//Objeto descritor de título da visão
OGTituloObjeto *titulo;
//Sobrecarga do método ObjetoGrafico::itemChange()
QVariant itemChange(GraphicsItemChange change, const QVariant &value);
public:
OGTabelaBase(TabelaBase *);
~OGTabelaBase(void);
signals:
/* Sinal emitido toda vez que a tabela é movida. Este sinal é usado
pela classe OGRelacionamento para monitorar quando ela precisa
atualiza a linha do relacionamento quando a tabela é movida */
void s_objetoMovido(void);
};
//***********************************************************
#endif