Skip to content

Commit

Permalink
Fechamento da versão v0.2.0.
Browse files Browse the repository at this point in the history
Método de compilação modificado para shared libs.

O subprojeto pgmodeler_ui foi renomeado para libpgmodeler_ui e o produto
da compilação não é mais o executável e sim uma biblioteca.

Foi criado o subprojeto main que reúne todas a bibliotecas e gera o
executável.
  • Loading branch information
rkhaotix committed Aug 31, 2012
1 parent 8e070f9 commit e9ba67b
Show file tree
Hide file tree
Showing 156 changed files with 36,480 additions and 71 deletions.
1 change: 1 addition & 0 deletions COMPILING.md
Expand Up @@ -10,6 +10,7 @@ Compiling Requirements
* Qt 4.7.x library or above (qt.nokia.com)
* LibXML2 library (www.xmlsoft.org)
* libpq library (www.postgresql.org)
* pgModeler source (github.com/pgmodeler/pgmodeler/tags)

Compiling
----------
Expand Down
14 changes: 7 additions & 7 deletions PLUGINS.md
@@ -1,16 +1,16 @@
PostgreSQL Database Modeler - pgModeler
---------------------------------------

This document describes a simple way how to create third party plugins on pgModeler. ATTENTION: Any plugin must be compiled using the most current source of pgModeler.
This document describes a simple way to create third party plugins on pgModeler. ATTENTION: Any plugin must be compiled using the most current source and libs of pgModeler.

Basic Rules
-----------

To be used as a plugin your class must:

1) Inherit the class "PgModelerPlugin"
2) Use the macro Q_INTERFACES in its declaration.
3) Overloadthe methods PgModelerPlugin::obterRotuloPlugin(void) and PgModelerPlugin::executarPlugin(ModeloWidget *model)
* Inherit the class "PgModelerPlugin"
* Use the macro Q_INTERFACES in its declaration.
* Overloadthe methods PgModelerPlugin::obterRotuloPlugin(void) and PgModelerPlugin::executarPlugin(ModeloWidget *model)

Plugin directory structure
--------------------------
Expand All @@ -23,8 +23,8 @@ The plugins in pgModeler must be within the "plugins" folder in its own director
+---(lib)*(pluginA.)(so|dylib|dll) (library)
+---pluginA.png (icon)

* Library: is the shared object that represents the plugin. The prefix (lib) and suffix (so|dylib|dll) are plataform dependent.
* Icon: It is a PNG image that represents the plugin on the plugins toolbar.
* Library: it is the shared object that represents the plugin. The prefix (lib) and suffix (so|dylib|dll) are plataform dependent.
* Icon: it is a PNG image that represents the plugin on the plugins toolbar.

The dummy plugin
----------------
Expand All @@ -36,4 +36,4 @@ Advanced plugins

To create advanced plugins you need to study the source code of pgModeler (particularly the headers). The code is well documented but in Portuguese. If you want to create a plugin and have questions please contact me via e-mail.

In the near future all the code will be cataloged and online documentation in English will be available to developers (help wanted!).
In the near future all the code will be cataloged and online documentation in English will be available to developers (help wanted!).
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -18,7 +18,7 @@ For details about compilation and installation process see [COMPILING.md](https:
Warning
-------

Although this is first stable version of pgModeler it is recommended NOT EXPORT the models created directly to production environments. Not all possible code generation were tested in this way, is its your own risk export the models into environments that are not intended for testing. The project's author is not responsible for any possible loss of data due the inappropriate use of this tool.
Although this is a major upgrade version of pgModeler it is recommended NOT EXPORT the models created directly to production environments. Not all possible code generation were tested in this way, is its your own risk export the models into environments that are not intended for testing. The project's author is not responsible for any possible loss of data due the inappropriate use of this tool.

Change History
--------------
Expand Down
2 changes: 1 addition & 1 deletion build/conf/pgmodeler.conf
Expand Up @@ -9,7 +9,7 @@
-->
<pgmodeler>
<configuration op-list-size="500"
grid-size="20"
grid-size="20"
autosave-interval="10"
paper-type="4"
paper-orientation="landscape"
Expand Down
18 changes: 9 additions & 9 deletions libconexbd/libconexbd.pro
@@ -1,13 +1,13 @@
#include(../pgmodeler.pro)
include(../pgmodeler.pro)

#CONFIG += qt warn_on uitools uic4
#QT = core gui qt3support
#TEMPLATE = lib
#TARGET = conexbd
#DESTDIR = ../build/lib
#DEPENDPATH = ". src obj"
#OBJECTS_DIR = obj
#LIBS += $$DESTDIR/$$LIBUTIL
CONFIG += qt warn_on uitools uic4
QT = core gui qt3support
TEMPLATE = lib
TARGET = conexbd
DESTDIR = ../build/lib
DEPENDPATH = ". src obj"
OBJECTS_DIR = obj
LIBS += $$DESTDIR/$$LIBUTIL

HEADERS += $$PWD/src/conexaobd.h \
$$PWD/src/resultado.h
Expand Down
20 changes: 10 additions & 10 deletions libobjrenderer/libobjrenderer.pro
@@ -1,15 +1,15 @@
#include(../pgmodeler.pro)
include(../pgmodeler.pro)

#CONFIG += qt warn_on uitools uic4
#QT = core gui qt3support
#TEMPLATE = lib
#TARGET = objrenderer
#DESTDIR = ../build/lib
#DEPENDPATH = ". src obj"
#OBJECTS_DIR = obj
CONFIG += qt warn_on uitools uic4
QT = core gui qt3support
TEMPLATE = lib
TARGET = objrenderer
DESTDIR = ../build/lib
DEPENDPATH = ". src obj"
OBJECTS_DIR = obj

#LIBS += $$DESTDIR/$$LIBUTIL \
# $$DESTDIR/$$LIBPGMODELER
LIBS += $$DESTDIR/$$LIBUTIL \
$$DESTDIR/$$LIBPGMODELER

HEADERS += $$PWD/src/objetografico.h \
$$PWD/src/ogcaixatexto.h \
Expand Down
18 changes: 9 additions & 9 deletions libparsers/libparsers.pro
@@ -1,14 +1,14 @@
#include(../pgmodeler.pro)
include(../pgmodeler.pro)

#CONFIG += qt warn_on uitools uic4
#QT = core gui qt3support
#TEMPLATE = lib
#TARGET = parsers
#DESTDIR = ../build/lib
#DEPENDPATH = ". src obj"
#OBJECTS_DIR = obj
CONFIG += qt warn_on uitools uic4
QT = core gui qt3support
TEMPLATE = lib
TARGET = parsers
DESTDIR = ../build/lib
DEPENDPATH = ". src obj"
OBJECTS_DIR = obj

#LIBS += $$DESTDIR/$$LIBUTIL
LIBS += $$DESTDIR/$$LIBUTIL

HEADERS += $$PWD/src/parseresquema.h \
$$PWD/src/parserxml.h
Expand Down
20 changes: 10 additions & 10 deletions libpgmodeler/libpgmodeler.pro
@@ -1,15 +1,15 @@
#include(../pgmodeler.pro)
include(../pgmodeler.pro)

#CONFIG += qt warn_on uitools uic4
#QT = core gui qt3support
#TEMPLATE = lib
#TARGET = pgmodeler
#DESTDIR = ../build/lib
#DEPENDPATH = ". src obj"
#OBJECTS_DIR = obj
CONFIG += qt warn_on uitools uic4
QT = core gui qt3support
TEMPLATE = lib
TARGET = pgmodeler
DESTDIR = ../build/lib
DEPENDPATH = ". src obj"
OBJECTS_DIR = obj

#LIBS += $$DESTDIR/$$LIBUTIL \
# $$DESTDIR/$$LIBPARSERS
LIBS += $$DESTDIR/$$LIBUTIL \
$$DESTDIR/$$LIBPARSERS

HEADERS += $$PWD/src/caixatexto.h \
$$PWD/src/conversaotipo.h \
Expand Down
166 changes: 166 additions & 0 deletions libpgmodeler_ui/libpgmodeler_ui.pro
@@ -0,0 +1,166 @@
include(../pgmodeler.pro)

CONFIG += qt warn_on uitools uic4
QT = core gui qt3support
TEMPLATE = lib
TARGET = pgmodeler_ui

TRANSLATIONS = ../lang/pgmodeler.en_US.ts

DEPENDPATH = ". res src ui moc obj"
MOC_DIR = moc
OBJECTS_DIR = obj
UI_DIR = src
DESTDIR = ../build/lib
CODECFORTR = UTF-8
RESOURCES += res/resources.qrc

QMAKE_POST_LINK+= "cp res/icones/pgsqlModeler48x48.png ../build/pgmodeler.png"
QMAKE_DISTCLEAN+= "../build/pgmodeler.png"

LIBS = $$DESTDIR/$$LIBUTIL \
$$DESTDIR/$$LIBPARSERS \
$$DESTDIR/$$LIBCONEXBD \
$$DESTDIR/$$LIBOBJRENDERER \
$$DESTDIR/$$LIBPGMODELER

SOURCES += src/formprincipal.cpp \
src/modelowidget.cpp \
src/formsobre.cpp \
src/caixamensagem.cpp \
src/caixatextowidget.cpp \
src/objetobasewidget.cpp \
src/listaoperacoeswidget.cpp \
src/visaoobjetoswidget.cpp \
src/formbasico.cpp \
src/codigofontewidget.cpp \
src/destaquesintaxe.cpp \
src/bancodadoswidget.cpp \
src/esquemawidget.cpp \
src/tabelaobjetoswidget.cpp \
src/papelwidget.cpp \
src/permissaowidget.cpp \
src/espacotabelawidget.cpp \
src/linguagemwidget.cpp \
src/seletorobjetowidget.cpp \
src/funcaowidget.cpp \
src/tipopgsqlwidget.cpp \
src/parametrowidget.cpp \
src/conversaotipowidget.cpp \
src/conversaocodificacaowidget.cpp \
src/dominiowidget.cpp \
src/funcaoagregacaowidget.cpp \
src/sequenciawidget.cpp \
src/operadorwidget.cpp \
src/familiaoperadoreswidget.cpp \
src/classeoperadoreswidget.cpp \
src/tipowidget.cpp \
src/visaowidget.cpp \
src/colunawidget.cpp \
src/restricaowidget.cpp \
src/regrawidget.cpp \
src/gatilhowidget.cpp \
src/indicewidget.cpp \
src/relacionamentowidget.cpp \
src/tabelawidget.cpp \
src/progressotarefa.cpp \
src/listaobjetoswidget.cpp \
src/confgeralwidget.cpp \
src/confaparenciawidget.cpp \
src/confconexoeswidget.cpp \
src/formconfiguracao.cpp \
src/confbasewidget.cpp \
src/formexportacao.cpp

HEADERS += src/formprincipal.h \
src/modelowidget.h \
src/formsobre.h \
src/caixamensagem.h \
src/objetobasewidget.h \
src/caixatextowidget.h \
src/listaoperacoeswidget.h \
src/visaoobjetoswidget.h \
src/formbasico.h \
src/codigofontewidget.h \
src/destaquesintaxe.h \
src/bancodadoswidget.h \
src/esquemawidget.h \
src/tabelaobjetoswidget.h \
src/papelwidget.h \
src/permissaowidget.h \
src/espacotabelawidget.h \
src/linguagemwidget.h \
src/seletorobjetowidget.h \
src/funcaowidget.h \
src/tipopgsqlwidget.h \
src/parametrowidget.h \
src/conversaotipowidget.h \
src/conversaocodificacaowidget.h \
src/dominiowidget.h \
src/funcaoagregacaowidget.h \
src/sequenciawidget.h \
src/operadorwidget.h \
src/familiaoperadoreswidget.h \
src/classeoperadoreswidget.h \
src/tipowidget.h \
src/visaowidget.h \
src/colunawidget.h \
src/restricaowidget.h \
src/regrawidget.h \
src/gatilhowidget.h \
src/indicewidget.h \
src/relacionamentowidget.h \
src/tabelawidget.h \
src/progressotarefa.h \
src/listaobjetoswidget.h \
src/confgeralwidget.h \
src/formconfiguracao.h \
src/confconexoeswidget.h \
src/confaparenciawidget.h \
src/confbasewidget.h \
src/formexportacao.h \
src/pgmodelerplugin.h

FORMS += ui/formprincipal.ui \
ui/formsobre.ui \
ui/caixatextowidget.ui \
ui/caixamensagem.ui \
ui/listaoperacoeswidget.ui \
ui/visaoobjetoswidget.ui \
ui/formbasico.ui \
ui/codigofontewidget.ui \
ui/bancodadoswidget.ui \
ui/objetobasewidget.ui \
ui/tabelaobjetoswidget.ui \
ui/papelwidget.ui \
ui/permissaowidget.ui \
ui/espacotabelawidget.ui \
ui/linguagemwidget.ui \
ui/seletorobjetowidget.ui \
ui/funcaowidget.ui \
ui/tipopgsqlwidget.ui \
ui/parametrowidget.ui \
ui/conversaotipowidget.ui \
ui/conversaocodificacaowidget.ui \
ui/dominiowidget.ui \
ui/funcaoagregacaowidget.ui \
ui/sequenciawidget.ui \
ui/operadorwidget.ui \
ui/familiaoperadoreswidget.ui \
ui/classeoperadoreswidget.ui \
ui/tipowidget.ui \
ui/visaowidget.ui \
ui/colunawidget.ui \
ui/restricaowidget.ui \
ui/regrawidget.ui \
ui/gatilhowidget.ui \
ui/indicewidget.ui \
ui/relacionamentowidget.ui \
ui/tabelawidget.ui \
ui/progressotarefa.ui \
ui/listaobjetoswidget.ui \
ui/formexportacao.ui \
ui/formconfiguracao.ui \
ui/confgeralwidget.ui \
ui/confaparenciawidget.ui \
ui/confconexoeswidget.ui

0 comments on commit e9ba67b

Please sign in to comment.