Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Preparação do FormPrincipal para carregamento de plugins de terceiros

  • Loading branch information...
commit 3d9701fdef442a318857fea65c3fb57c000f1fd3 1 parent 29dd504
@rkhaotix rkhaotix authored
Showing with 11,501 additions and 116 deletions.
  1. +27 −35 README.md
  2. +0 −1  build/conf
  3. +16 −0 build/conf/connections.conf
  4. +16 −0 build/conf/defaults/connections.conf
  5. +160 −0 build/conf/defaults/example.pgmodel
  6. +57 −0 build/conf/defaults/objects-style.conf
  7. +27 −0 build/conf/defaults/pgmodeler.conf
  8. +391 −0 build/conf/defaults/sql-highlight.conf
  9. +59 −0 build/conf/defaults/xml-highlight.conf
  10. +27 −0 build/conf/dtd/connections.dtd
  11. +29 −0 build/conf/dtd/objects-style.dtd
  12. +31 −0 build/conf/dtd/pgmodeler.dtd
  13. +36 −0 build/conf/dtd/source-code-highlight.dtd
  14. +160 −0 build/conf/example.pgmodel
  15. +57 −0 build/conf/objects-style.conf
  16. +27 −0 build/conf/pgmodeler.conf
  17. +52 −0 build/conf/schemas/connections.sch
  18. +10 −0 build/conf/schemas/file.sch
  19. +66 −0 build/conf/schemas/objects-style.sch
  20. +42 −0 build/conf/schemas/pgmodeler.sch
  21. +10 −0 build/conf/schemas/widget.sch
  22. +391 −0 build/conf/sql-highlight.conf
  23. +59 −0 build/conf/xml-highlight.conf
  24. +0 −1  build/lang
  25. BIN  build/lang/pgmodeler.en_US.qm
  26. +5,241 −0 build/lang/pgmodeler.en_US.ts
  27. +0 −1  build/schemas
  28. +24 −0 build/schemas/sql/8.0/aggregate.sch
  29. +40 −0 build/schemas/sql/8.0/comment.sch
  30. +35 −0 build/schemas/sql/8.0/database.sch
  31. +44 −0 build/schemas/sql/8.0/function.sch
  32. +18 −0 build/schemas/sql/8.0/idxelement.sch
  33. +36 −0 build/schemas/sql/8.0/index.sch
  34. +28 −0 build/schemas/sql/8.0/language.sch
  35. +25 −0 build/schemas/sql/8.0/opclass.sch
  36. +69 −0 build/schemas/sql/8.0/operator.sch
  37. +13 −0 build/schemas/sql/8.0/parameter.sch
  38. +45 −0 build/schemas/sql/8.0/role.sch
  39. +45 −0 build/schemas/sql/8.0/sequence.sch
  40. +45 −0 build/schemas/sql/8.0/usertype.sch
  41. +25 −0 build/schemas/sql/8.1/aggregate.sch
  42. +44 −0 build/schemas/sql/8.1/function.sch
  43. +18 −0 build/schemas/sql/8.1/idxelement.sch
  44. +36 −0 build/schemas/sql/8.1/index.sch
  45. +26 −0 build/schemas/sql/8.1/opclass.sch
  46. +69 −0 build/schemas/sql/8.1/operator.sch
  47. +45 −0 build/schemas/sql/8.1/sequence.sch
  48. +45 −0 build/schemas/sql/8.1/usertype.sch
  49. +44 −0 build/schemas/sql/8.2/function.sch
  50. +18 −0 build/schemas/sql/8.2/idxelement.sch
  51. +44 −0 build/schemas/sql/8.2/index.sch
  52. +25 −0 build/schemas/sql/8.2/opclass.sch
  53. +69 −0 build/schemas/sql/8.2/operator.sch
  54. +45 −0 build/schemas/sql/8.2/usertype.sch
  55. +52 −0 build/schemas/sql/8.3/usertype.sch
  56. +34 −0 build/schemas/sql/8.4/cast.sch
  57. +48 −0 build/schemas/sql/8.4/database.sch
  58. +22 −0 build/schemas/sql/8.4/element.sch
  59. +49 −0 build/schemas/sql/8.4/grant.sch
  60. +19 −0 build/schemas/sql/8.4/parameter.sch
  61. +55 −0 build/schemas/sql/8.4/usertype.sch
  62. +49 −0 build/schemas/sql/9.0/grant.sch
  63. +42 −0 build/schemas/sql/9.0/trigger.sch
  64. +49 −0 build/schemas/sql/9.1/grant.sch
  65. +46 −0 build/schemas/sql/9.1/trigger.sch
  66. +26 −0 build/schemas/sql/common/aggregate.sch
  67. +29 −0 build/schemas/sql/common/cast.sch
  68. +21 −0 build/schemas/sql/common/column.sch
  69. +30 −0 build/schemas/sql/common/comment.sch
  70. +56 −0 build/schemas/sql/common/constraint.sch
  71. +23 −0 build/schemas/sql/common/conversion.sch
  72. +39 −0 build/schemas/sql/common/database.sch
  73. +66 −0 build/schemas/sql/common/dbmodel.sch
  74. +23 −0 build/schemas/sql/common/domain.sch
  75. +25 −0 build/schemas/sql/common/element.sch
  76. +61 −0 build/schemas/sql/common/function.sch
  77. +49 −0 build/schemas/sql/common/grant.sch
  78. +30 −0 build/schemas/sql/common/idxelement.sch
  79. +52 −0 build/schemas/sql/common/index.sch
  80. +34 −0 build/schemas/sql/common/language.sch
  81. +28 −0 build/schemas/sql/common/opclass.sch
  82. +53 −0 build/schemas/sql/common/operator.sch
  83. +19 −0 build/schemas/sql/common/opfamily.sch
  84. +24 −0 build/schemas/sql/common/owner.sch
  85. +15 −0 build/schemas/sql/common/parameter.sch
  86. +25 −0 build/schemas/sql/common/relationship.sch
  87. +46 −0 build/schemas/sql/common/role.sch
  88. +30 −0 build/schemas/sql/common/rule.sch
  89. +18 −0 build/schemas/sql/common/schema.sch
  90. +48 −0 build/schemas/sql/common/sequence.sch
  91. +31 −0 build/schemas/sql/common/table.sch
  92. +25 −0 build/schemas/sql/common/tablespace.sch
  93. +38 −0 build/schemas/sql/common/trigger.sch
  94. +55 −0 build/schemas/sql/common/usertype.sch
  95. +18 −0 build/schemas/sql/common/view.sch
  96. +29 −0 build/schemas/xml/aggregate.sch
  97. +36 −0 build/schemas/xml/basetype.sch
  98. +32 −0 build/schemas/xml/cast.sch
  99. +30 −0 build/schemas/xml/column.sch
  100. +10 −0 build/schemas/xml/comment.sch
  101. +67 −0 build/schemas/xml/constraint.sch
  102. +25 −0 build/schemas/xml/conversion.sch
  103. +24 −0 build/schemas/xml/database.sch
  104. +26 −0 build/schemas/xml/dbmodel.sch
  105. +36 −0 build/schemas/xml/domain.sch
  106. +12 −0 build/schemas/xml/dtd/aggregate.dtd
  107. +25 −0 build/schemas/xml/dtd/baseelements.dtd
  108. +24 −0 build/schemas/xml/dtd/basetype.dtd
  109. +12 −0 build/schemas/xml/dtd/cast.dtd
  110. +13 −0 build/schemas/xml/dtd/column.dtd
  111. +20 −0 build/schemas/xml/dtd/constraint.dtd
  112. +13 −0 build/schemas/xml/dtd/conversion.dtd
  113. +15 −0 build/schemas/xml/dtd/database.dtd
  114. +66 −0 build/schemas/xml/dtd/dbmodel.dtd
  115. +14 −0 build/schemas/xml/dtd/domain.dtd
  116. +12 −0 build/schemas/xml/dtd/element.dtd
  117. +28 −0 build/schemas/xml/dtd/function.dtd
  118. +28 −0 build/schemas/xml/dtd/grant.dtd
  119. +21 −0 build/schemas/xml/dtd/index.dtd
  120. +12 −0 build/schemas/xml/dtd/language.dtd
  121. +16 −0 build/schemas/xml/dtd/opclass.dtd
  122. +15 −0 build/schemas/xml/dtd/operator.dtd
  123. +12 −0 build/schemas/xml/dtd/opfamily.dtd
  124. +30 −0 build/schemas/xml/dtd/relationship.dtd
  125. +25 −0 build/schemas/xml/dtd/role.dtd
  126. +17 −0 build/schemas/xml/dtd/rule.dtd
  127. +11 −0 build/schemas/xml/dtd/schema.dtd
  128. +19 −0 build/schemas/xml/dtd/sequence.dtd
  129. +23 −0 build/schemas/xml/dtd/table.dtd
  130. +12 −0 build/schemas/xml/dtd/tablespace.dtd
  131. +15 −0 build/schemas/xml/dtd/textbox.dtd
  132. +22 −0 build/schemas/xml/dtd/trigger.dtd
  133. +24 −0 build/schemas/xml/dtd/usertype.dtd
  134. +17 −0 build/schemas/xml/dtd/view.dtd
  135. +25 −0 build/schemas/xml/element.sch
  136. +71 −0 build/schemas/xml/function.sch
  137. +40 −0 build/schemas/xml/grant.sch
  138. +27 −0 build/schemas/xml/idxelement.sch
  139. +48 −0 build/schemas/xml/index.sch
  140. +12 −0 build/schemas/xml/label.sch
  141. +31 −0 build/schemas/xml/language.sch
  142. +34 −0 build/schemas/xml/opclass.sch
  143. +50 −0 build/schemas/xml/operator.sch
  144. +27 −0 build/schemas/xml/opfamily.sch
  145. +18 −0 build/schemas/xml/parameter.sch
  146. +10 −0 build/schemas/xml/position.sch
  147. +32 −0 build/schemas/xml/reference.sch
  148. +62 −0 build/schemas/xml/relationship.sch
  149. +51 −0 build/schemas/xml/role.sch
  150. +28 −0 build/schemas/xml/rule.sch
  151. +27 −0 build/schemas/xml/schema.sch
  152. +33 −0 build/schemas/xml/sequence.sch
  153. +29 −0 build/schemas/xml/table.sch
  154. +28 −0 build/schemas/xml/tablespace.sch
  155. +36 −0 build/schemas/xml/textbox.sch
  156. +61 −0 build/schemas/xml/trigger.sch
  157. +77 −0 build/schemas/xml/usertype.sch
  158. +34 −0 build/schemas/xml/view.sch
  159. +11 −0 libconexbd/libconexbd.pro
  160. +13 −0 libobjrenderer/libobjrenderer.pro
  161. +2 −2 libobjrenderer/src/cenaobjetos.h
  162. +12 −0 libparsers/libparsers.pro
  163. +13 −0 libpgmodeler/libpgmodeler.pro
  164. +10 −0 libutil/libutil.pro
  165. +3 −1 libutil/src/atributosglobais.h
  166. +21 −9 pgmodeler.pro
  167. +18 −0 pgmodeler_ui/pgmodeler_ui.pro
  168. +26 −1 pgmodeler_ui/src/formprincipal.cpp
  169. +1 −0  pgmodeler_ui/src/formprincipal.h
  170. +7 −1 pgmodeler_ui/src/main.cpp
  171. +0 −5 pgmodeler_ui/src/pgmodelerplugin.cpp
  172. +20 −32 pgmodeler_ui/src/pgmodelerplugin.h
  173. +27 −17 plugins/dummyplugin/dummyplugin.pro
  174. +9 −1 plugins/dummyplugin/src/dummyplugin.cpp
  175. +16 −9 plugins/dummyplugin/src/dummyplugin.h
View
62 README.md
@@ -1,50 +1,42 @@
-PostgreSQL Database Modeler - pgModeler
----------------------------------------
+pgModeler - PostgreSQL Database Modeler
+http://github.com/rkhaotix/pgmodeler
-PostgreSQL Database Modeler, or simply, pgModeler is an open source tool for modeling databases that merges the classical concepts of entity-relationship diagrams with specific features that only PostgreSQL implements. The pgModeler translates the models created by the user to SQL code and apply them onto database clusters from version 8.0 to 9.1.
+Developed by: Raphael Araújo e Silva (rkhaotix@gmail.com)
-Please, let me know how the pgModeler is working on your system! Help to improve this project, give your feedback about the software or report any bug at [Issues](https://github.com/pgmodeler/pgmodeler/issues) page. Additionaly, follow the pgModeler profile on [Facebook](https://www.facebook.com/pgmodeler) or [Twitter](https://twitter.com/pgmodeler) and be up-to-date with new features, fixes and releases.
+This document describes a simple way how to compile and run the pgModeler. Please read it carefully so that no step is forgotten compromising the entire process.
-Licensing
----------
+Compiling Requirements
+-------------------------
-This software is licensed under GNU General Public License 2.0. See [LICENSE](https://github.com/pgmodeler/pgmodeler/blob/master/LICENSE) for details.
+* GCC Development Tools
+* Qt 4.7.x library or above (qt.nokia.com)
+* LibXML2 library (www.xmlsoft.org)
+* libpq library (www.postgresql.org)
-Compiling/Installation
-----------------------
+Compiling
+----------
-For details about compilation and installation process see [COMPILING.md](https://github.com/pgmodeler/pgmodeler/blob/master/COMPILING.md) for details.
+Before starting the compilation, check in the file 'pgmodeler.pro' if the variables GLOBAL_INCLUDES and GLOBAL_LIBS points to the correct paths relative to your system. Change the value of these variables only in the section for your operating system.
+To compile the pgModeler type (in the root folder of the source code):
-Warning
--------
+* $ qmake pgmodeler.pro
+* $ make
-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.
+If the build is successful the executable 'pgmodeler' will be created in the build/ directory. Copy it to the folder you want and do not forget to also copy the folders schemas/, conf/ and lang/ in the root directory of the project.
-Change History
---------------
+Environment Variables
+---------------------
-[ v0.1.2 ]
+By default pgModeler accesses the folders schemas/, conf/ and lang/ on the working directory, but you can change this settings. Three own environment variables are used for this purpose. If you want to configure directories cited in deferent paths use the following variables:
-* Dockwidgets no longer disappear unexpectedly when the main window is minimized.
-* Operations performed before creating a table object (column, constraint, trigger, index, rule) are no longer removed when any exception is thrown in the creation of these object.
-* Fixed bug that caused user-defined types had wrong SQL/XML code generated by the model.
-* Functions and Types received an own range of id in order to create these objects in a correct way.
-* Added a functionality to save modified models before closing the software.
-* Updated the en_US dictionary with the texts of the above functionality.
-* Fixed segmentation faults caused by the destruction of relationships which possessed attributes/constraints.
-* Fixed the translation to SQL code of 1-1 relationships.
-* Fixed segmentation fault when editing relationships and/or undoing an operation involving a relationship.
-* Identifiers relationships now correctly display the thick line beside the weak entity.
+* PGMODELER_SCHEMAS_DIR -> stores the full path the directory schemas/
+* PGMODELER_CONF_DIR -> stores the full path the directory conf/
+* PGMODELER_LANG_DIR -> stores the full path the directory lang/
-[ v0.1.1 ]
+Additionally, the pgModeler need to know where to find the libraries required for the execution (Qt Library, LibXML and libpq) for which you should enter the full path in the variable LD_LIBRARY_PATH (Unix) or PATH (Windows), if not already configured.
-* Correction of the actions for inserting graphic objects (table, text box, vision and relationship) in Windows environment
-* Fix on the display of the maximize button in the window decoration in Windows environment
-* Adjust on the position and spacing of widgets in editing forms
-* The XML parser can now correctly read DTD files in Windows environment
-* The compilation method is no longer in the form of shared libraries + executable and passed to be as standalone executable only
+To provide the interface translation pgModeler checks the variable LANG (Unix). For use a specific translation, change the value of this variable. So far, the pgModeler only supports the languages Portuguese from Brazil (pt_BR) and U.S. English (en_US).
-Older Releases/Code
--------------------
+Finally, as a form of convenience, the script 'start-pgmodeler.(sh | bat)' was created to assist the initialization of pgModeler so it is not necessary to call the executable directly or change the environment variables on your operating system.
-The older code and releases of pgModeler can be found at [Sourceforge.net](http://sourceforge.net/projects/pgmodeler)
+Note: You may need to edit the parameters of the script depending on configuration of your operating system.
View
1  build/conf
View
16 build/conf/connections.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<connections>
+ <connection alias="local-db" host="localhost" port="5432" dbname="postgres"
+ user="postgres" password="postgres" connect_timeout="2"
+ sslmode="disable"
+ />
+
+</connections>
View
16 build/conf/defaults/connections.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<connections>
+ <connection alias="local-db"
+ host="localhost" dbname="postgres" port="5432"
+ user="postgres" password="postgres" connect_timeout="2"
+ sslmode="disable"/>
+</connections>
View
160 build/conf/defaults/example.pgmodel
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+CAUTION: Do not modify this file unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<dbmodel author="Raphael Araújo e Silva">
+<schema name="public">
+</schema>
+
+<database name="exampledb" encoding="UTF8">
+ <comment>Example Database Model</comment>
+</database>
+
+ <language name="sql" protected="true"/>
+<function name="trigger_func"
+ window-func="false"
+ returns-setof="false"
+ behavior-type="CALLED ON NULL INPUT"
+ function-type="IMMUTABLE"
+ security-type="SECURITY DEFINER"
+ execution-cost="20"
+ row-amount="2500">
+ <schema name="public"/>
+ <language name="sql" protected="true"/>
+ <return-type>
+ <type name="trigger"/>
+ </return-type>
+ <parameter name="param1" in="true">
+ <type name="integer"/>
+ </parameter>
+ <definition>SELECT 1+1;</definition>
+</function>
+
+<table name="table" oids="false">
+ <schema name="public"/>
+ <position x="20" y="20"/>
+ <column name="column" not-null="true">
+ <type name="serial"/>
+ </column>
+ <column name="column1">
+ <type name="text"/>
+ </column>
+ <column name="column2" not-null="true">
+ <type name="integer"/>
+ </column>
+ <column name="column3">
+ <type name="text"/>
+ </column>
+ <constraint name="table_pk" type="pk-constr" factor="10" table="public.table">
+ <columns names="column" ref-type="src-columns"/>
+ </constraint>
+ <constraint name="table_uq" type="uq-constr" factor="10" table="public.table">
+ <columns names="column1" ref-type="src-columns"/>
+ </constraint>
+ <constraint name="table_ck" type="ck-constr" table="public.table">
+ <expression> column1 &gt; 0 </expression>
+ </constraint>
+ <index name="index" table="public.table"
+ concurrent="true" unique="true" fast-update="false"
+ index-type="hash" factor="90">
+ <idxelement nulls-first="false" asc-order="false">
+ <column name="column1"/>
+ </idxelement>
+ </index>
+</table>
+
+<table name="table1" oids="false" protected="true">
+ <schema name="public"/>
+ <position x="422" y="24"/>
+ <column name="column" not-null="true" protected="true">
+ <type name="serial"/>
+ </column>
+ <column name="column1" protected="true">
+ <type name="text"/>
+ </column>
+ <column name="column2" not-null="true" protected="true">
+ <type name="integer"/>
+ </column>
+ <column name="column3" protected="true">
+ <type name="text"/>
+ </column>
+ <constraint name="table_pk" type="pk-constr" factor="10" protected="true" table="public.table1">
+ <columns names="column" ref-type="src-columns"/>
+ </constraint>
+ <constraint name="table_uq" type="uq-constr" factor="10" protected="true" table="public.table1">
+ <columns names="column1" ref-type="src-columns"/>
+ </constraint>
+ <constraint name="table_ck" type="ck-constr" protected="true" table="public.table1">
+ <expression> column1 &gt; 0 </expression>
+ </constraint>
+ <rule name="rule1" event-type="ON INSERT"
+ exec-type="ALSO" protected="true">
+ <condition>column1 = 0</condition>
+ <commands>UPDATE public.table1 SET column1 = 1</commands>
+ </rule>
+ <trigger name="trigger1" firing-type="BEFORE" per-line="false"
+ ins-event="true" del-event="true" upd-event="true" trunc-event="false" protected="true">
+ <function signature="public.trigger_func(integer)"/>
+ </trigger>
+</table>
+
+<relationship name="relationship"
+ type="rel1n" protected="true"
+ src-required="false" dst-required="false"
+ table-name="relationship"
+ src-table="public.table1"
+ dst-table="public.table">
+ <column name="attribute">
+ <type name="integer"/>
+ </column>
+ <column name="attribute1">
+ <type name="integer"/>
+ </column>
+ <column name="attribute2">
+ <type name="integer"/>
+ </column>
+
+
+</relationship>
+
+<view name="view" protected="true">
+ <schema name="public"/>
+ <position x="320" y="250"/>
+ <reference table="public.table" column="column1" alias="t1" column-alias="col1"/>
+ <reference table="public.table1" column="column2" alias="t2" column-alias="col2"/>
+ <reference alias="expr">
+ <expression>extract(month from now())</expression>
+ </reference>
+ <reference table="public.table1" alias="t3" column-alias="col3"/>
+<expression type="select-exp">0,1,2,3</expression>
+<expression type="from-exp">3,0</expression>
+</view>
+
+<relationship name="rel_view_table"
+ type="reltv"
+ src-required="false" dst-required="false"
+ src-table="public.view"
+ dst-table="public.table"/>
+
+<relationship name="rel_view_table1"
+ type="reltv"
+ src-required="false" dst-required="false"
+ src-table="public.view"
+ dst-table="public.table1"/>
+
+<textbox name="textbox">
+ <position x="20" y="250"/>
+ <comment>Selected Textbox</comment>
+</textbox>
+
+<textbox name="textbox1" protected="true">
+ <position x="20" y="300"/>
+ <comment>Protected Textbox</comment>
+</textbox>
+
+</dbmodel>
View
57 build/conf/defaults/objects-style.conf
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<objects-style>
+ <global font="Dejavu Sans" size="8.0"/>
+ <font id="table-name" color="#ffffff" italic="false" bold="true" underline="false"/>
+ <font id="table-schema-name" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="column" color="#000000" italic="false" bold="false" underline="false"/>
+ <font id="object-type" color="#082061" italic="true" bold="true" underline="false"/>
+ <font id="fk-column" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="pk-column" color="#2b7dba" italic="true" bold="true" underline="false"/>
+ <font id="uq-column" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="nn-column" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="prot-column" color="#ff0000" italic="true" bold="false" underline="false"/>
+ <font id="inh-column" color="#3f9e51" italic="true" bold="false" underline="false"/>
+ <font id="index" color="#082061" italic="true" bold="false" underline="false"/>
+ <font id="rule" color="#082061" italic="true" bold="false" underline="false"/>
+ <font id="trigger" color="#082061" italic="true" bold="false" underline="false"/>
+ <font id="view-name" color="#ffffff" italic="false" bold="true" underline="false"/>
+ <font id="view-schema-name" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="ref-table" color="#000080" italic="true" bold="false" underline="false"/>
+ <font id="ref-column" color="#000000" italic="true" bold="true" underline="false"/>
+ <font id="alias" color="#800080" italic="false" bold="false" underline="false"/>
+ <font id="attribute" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="label" color="#000000" italic="false" bold="false" underline="false"/>
+ <font id="constraints" color="#25682d" italic="true" bold="false" underline="false"/>
+ <font id="pos-info" color="#000000" italic="false" bold="false" underline="false"/>
+
+ <object id="table-title" fill-color="#4aa5ff,#2070c1" border-color="#000000"/>
+ <object id="table-body" fill-color="#cecece,#fafafa" border-color="#000000"/>
+ <object id="table-ext-body" fill-color="#fafafa,#cecece" border-color="#000000"/>
+ <object id="label" fill-color="#cbfa95,#eeffe0" border-color="#3a7637"/>
+ <object id="view-title" fill-color="#FFE1A6,#C28000" border-color="#000000"/>
+ <object id="view-body" fill-color="#cecece,#fafafa" border-color="#000000"/>
+ <object id="textbox" fill-color="#aee7e7,#c7f3f1" border-color="#759b9b"/>
+ <object id="relationship" fill-color="#bebebe,#fafafa" border-color="#202020"/>
+ <object id="attribute" fill-color="#ffa858,#db6700" border-color="#000000"/>
+ <object id="column" fill-color="#fafafa,#bebebe" border-color="#000000"/>
+ <object id="pk-column" fill-color="#fefae6,#ffde31" border-color="#000000"/>
+ <object id="uq-column" fill-color="#ffb209,#c08d00" border-color="#000000"/>
+ <object id="fk-column" fill-color="#fce5cc,#ff5d31" border-color="#000000"/>
+ <object id="nn-column" fill-color="#d2e9ff,#5a9ee4" border-color="#000000"/>
+ <object id="reference" fill-color="#d2e9ff,#5a9ee4" border-color="#000000"/>
+ <object id="rule" fill-color="#4c4c98,#c5cbff" border-color="#000000"/>
+ <object id="trigger" fill-color="#4c4c98,#c5cbff" border-color="#000000"/>
+ <object id="index" fill-color="#4c4c98,#c5cbff" border-color="#000000"/>
+ <object id="locker-body" fill-color="#ffff80,#c7c700" border-color="#808000"/>
+ <object id="locker-arc" fill-color="#ffffff,#b2b2b2" border-color="#8e8e8e"/>
+ <object id="obj-selection" fill-color="#023d86" border-color="#012149"/>
+ <object id="pos-info" fill-color="#ffff80" border-color="#800000"/>
+</objects-style>
View
27 build/conf/defaults/pgmodeler.conf
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<pgmodeler>
+ <configuration op-list-size="500"
+ grid-size="20"
+ autosave-interval="10"
+ paper-type="4"
+ paper-orientation="landscape"
+ paper-margin="10,10,10,10"
+ save-session="true"
+ save-widgets="true"/>
+ <widget-conf>
+ <widget id="widget0" type="fileToolbar" position="top" visible="true"/>
+ <widget id="widget1" type="editToolbar" position="top" visible="true"/>
+ <widget id="widget2" type="viewToolbar" position="top" visible="true"/>
+ <widget id="widget3" type="modelToolbar" position="bottom" visible="true"/>
+ <widget id="widget4" type="objectsDock" position="right" visible="true"/>
+ <widget id="widget5" type="operationsDock" position="right" visible="true"/>
+ </widget-conf>
+</pgmodeler>
View
391 build/conf/defaults/sql-highlight.conf
@@ -0,0 +1,391 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+
+ pt_BR: Partes deste arquivo foram retiradas do arquivo sql-postgresql.xml
+ com autorização de seu autor Shane Wright (me@shanewright.co.uk).
+ O arquivo original pertence ao Projeto Kate (kate-editor.org).
+
+ en_US: Portions of this file were taken from the sql-postgresql.xml by
+ permission of its author Shane Wright (me@shanewright.co.uk).
+ The original file belongs to the Kate Editor Project (kate-editor.org).
+-->
+<source-code-highlight>
+ <word-delimiters value="&apos;&quot;"/>
+ <word-separators value="&#10;+-*&lt;&gt;=~!@#%^&amp;|?/\[];,()."/>
+ <ignored-chars value="&#9;&#32;"/>
+
+ <!--
+ pt_BR: Ordem em que os grupos são aplicados aos blocos de código.
+ en_US: Order in which groups are applied to blocks of code.
+ -->
+ <highlight-order>
+ <group name="multi-line-comment"/>
+ <group name="single-line-comment"/>
+ <group name="keywords"/>
+ <group name="functions"/>
+ <group name="operators"/>
+ <group name="datatypes"/>
+ <group name="numbers"/>
+ <group name="strings"/>
+ <group name="schema-qualified"/>
+ <group name="identifiers"/>
+ </highlight-order>
+
+ <group name="identifiers" case-sensitive="false"
+ bold="false" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#347AB3">
+ <element regexp="true" value="(&quot;)?([a-z]+|[0-9]*|(_)*)+(&quot;)?"/>
+ </group>
+
+ <group name="schema-qualified" case-sensitive="false"
+ bold="true" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#009600"
+ lookup-char=".">
+ <element regexp="true" value="(&quot;)?([a-z]+|[0-9]*|(_)*)+(&quot;)?"/>
+ </group>
+
+ <group name="numbers" case-sensitive="false"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#008000">
+ <element regexp="true" value="([0-9])+((\.)([0-9]+))?"/>
+ </group>
+
+ <group name="strings" case-sensitive="false"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#ff0000">
+ <element regexp="true" value="(&apos;)(.)*(&apos;)"/>
+ </group>
+
+ <group name="single-line-comment" case-sensitive="false"
+ bold="false" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#808080">
+ <element regexp="true" value="(\-\-)(.)*" type="initial-exp"/>
+ <element regexp="true" value="(.)*(\n)" type="final-exp"/>
+ </group>
+
+ <group name="multi-line-comment" case-sensitive="false"
+ bold="false" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#808080">
+ <element regexp="true" value="(\/\*)(.)*" type="initial-exp"/>
+ <element regexp="true" value="(.)*(\*\/)(\n)*" type="final-exp"/>
+ </group>
+
+ <group name="operators" case-sensitive="false"
+ bold="true" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#101010">
+ <element regexp="true" value="((\+)*|(-)*|(\*)*|(/)*|(!)*|(%)*|(=)*|(\?)*|(&amp;)*|(\|)*|(#)*|(@)*|(\&lt;)*|(&gt;)*|(\^)*|(~)*|(')*)+"/>
+ </group>
+
+ <group name="functions" case-sensitive="false"
+ bold="true" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#000060"
+ lookup-char="(">
+ <element regexp="true" value="(&quot;)?(.)+(&quot;)?"/>
+ </group>
+
+ <group name="keywords" case-sensitive="false"
+ bold="true" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#000000">
+ <element value="ADMIN"/>
+ <element value="AFTER"/>
+ <element value="AGGREGATE"/>
+ <element value="ALIGNMENT"/>
+ <element value="ALL"/>
+ <element value="ALSO"/>
+ <element value="ALTER"/>
+ <element value="ANALYZE"/>
+ <element value="AND"/>
+ <element value="AS"/>
+ <element value="ASC"/>
+ <element value="ASSIGNMENT"/>
+ <element value="AUTHORIZATION"/>
+ <element value="BEFORE"/>
+ <element value="BETWEEN"/>
+ <element value="BY"/>
+ <element value="CACHE"/>
+ <element value="CALLED"/>
+ <element value="CAST"/>
+ <element value="CATEGORY"/>
+ <element value="CHECK"/>
+ <element value="CLASS"/>
+ <element value="COMMENT"/>
+ <element value="COMMIT"/>
+ <element value="COMMUTATOR"/>
+ <element value="CONCURRENTLY"/>
+ <element value="CONNECTION"/>
+ <element value="CONSTRAINT"/>
+ <element value="CONSTRAINTS"/>
+ <element value="CONVERSION"/>
+ <element value="COST"/>
+ <element value="CREATE"/>
+ <element value="CREATEDB"/>
+ <element value="CREATEROLE"/>
+ <element value="CREATEUSER"/>
+ <element value="CROSS"/>
+ <element value="CURRENT"/>
+ <element value="CYCLE"/>
+ <element value="DATABASE"/>
+ <element value="DEFAULT"/>
+ <element value="DEFAULTS"/>
+ <element value="DEFERRABLE"/>
+ <element value="DEFERRED"/>
+ <element value="DEFINER"/>
+ <element value="DELETE"/>
+ <element value="DELIMITER"/>
+ <element value="DESC"/>
+ <element value="DISTINCT"/>
+ <element value="DO"/>
+ <element value="DOMAIN"/>
+ <element value="DROP"/>
+ <element value="EACH"/>
+ <element value="ELEMENT"/>
+ <element value="ENCODING"/>
+ <element value="ENCRYPTED"/>
+ <element value="ENUM"/>
+ <element value="EXCEPT"/>
+ <element value="EXCLUDING"/>
+ <element value="EXECUTE"/>
+ <element value="EXTERNAL"/>
+ <element value="FALSE"/>
+ <element value="FAMILY"/>
+ <element value="FETCH"/>
+ <element value="FILLFACTOR"/>
+ <element value="FINALFUNC"/>
+ <element value="FIRST"/>
+ <element value="FOLLOWING"/>
+ <element value="FOR"/>
+ <element value="FOREIGN"/>
+ <element value="FROM"/>
+ <element value="FULL"/>
+ <element value="FUNCTION"/>
+ <element value="GLOBAL"/>
+ <element value="GRANT"/>
+ <element value="GROUP"/>
+ <element value="HANDLER"/>
+ <element value="HASHES"/>
+ <element value="HAVING"/>
+ <element value="IMMEDIATE"/>
+ <element value="IMMUTABLE"/>
+ <element value="IMPLICIT"/>
+ <element value="IN"/>
+ <element value="INCLUDING"/>
+ <element value="INCREMENT"/>
+ <element value="INDEX"/>
+ <element value="INDEXES"/>
+ <element value="INHERIT"/>
+ <element value="INHERITS"/>
+ <element value="INITCOND"/>
+ <element value="INITIALLY"/>
+ <element value="INNER"/>
+ <element value="INOUT"/>
+ <element value="INPUT"/>
+ <element value="INSERT"/>
+ <element value="INSTEAD"/>
+ <element value="INTERNALLENGTH"/>
+ <element value="INTERSECT"/>
+ <element value="INTO"/>
+ <element value="INVOKER"/>
+ <element value="IS"/>
+ <element value="JOIN"/>
+ <element value="KEY"/>
+ <element value="LANGUAGE"/>
+ <element value="LAST"/>
+ <element value="LC_COLLATE"/>
+ <element value="LC_CTYPE"/>
+ <element value="LEFT"/>
+ <element value="LEFTARG"/>
+ <element value="LIKE"/>
+ <element value="LIMIT"/>
+ <element value="LOCAL"/>
+ <element value="LOCATION"/>
+ <element value="LOGIN"/>
+ <element value="MATCH"/>
+ <element value="MAXVALUE"/>
+ <element value="MERGES"/>
+ <element value="MINVALUE"/>
+ <element value="NATURAL"/>
+ <element value="NEGATOR"/>
+ <element value="NEXT"/>
+ <element value="NO"/>
+ <element value="NOCREATEDB"/>
+ <element value="NOCREATEROLE"/>
+ <element value="NOCREATEUSER"/>
+ <element value="NOINHERIT"/>
+ <element value="NOLOGIN"/>
+ <element value="NONE"/>
+ <element value="NOSUPERUSER"/>
+ <element value="NOT"/>
+ <element value="NOTHING"/>
+ <element value="NOWAIT"/>
+ <element value="NULL"/>
+ <element value="NULLS"/>
+ <element value="OF"/>
+ <element value="OFFSET"/>
+ <element value="OIDS"/>
+ <element value="ON"/>
+ <element value="ONLY"/>
+ <element value="OPERATOR"/>
+ <element value="OPTION"/>
+ <element value="OR"/>
+ <element value="ORDER"/>
+ <element value="OUTER"/>
+ <element value="OUTPUT"/>
+ <element value="OWNED"/>
+ <element value="OWNER"/>
+ <element value="PARTIAL"/>
+ <element value="PASSEDBYVALUE"/>
+ <element value="PASSWORD"/>
+ <element value="PRECEDING"/>
+ <element value="PREFERRED"/>
+ <element value="PRESERVE"/>
+ <element value="PRIMARY"/>
+ <element value="PROCEDURAL"/>
+ <element value="PROCEDURE"/>
+ <element value="RANGE"/>
+ <element value="RECEIVE"/>
+ <element value="RECHECK"/>
+ <element value="RECURSIVE"/>
+ <element value="REFERENCES"/>
+ <element value="REPLACE"/>
+ <element value="RESTRICT"/>
+ <element value="RETURNING"/>
+ <element value="RETURNS"/>
+ <element value="RETURNSTABLE"/>
+ <element value="RIGHT"/>
+ <element value="RIGHTARG"/>
+ <element value="ROLE"/>
+ <element value="ROW"/>
+ <element value="ROWS"/>
+ <element value="RULE"/>
+ <element value="SCHEMA"/>
+ <element value="SECURITY"/>
+ <element value="SELECT"/>
+ <element value="SEND"/>
+ <element value="SEQUENCE"/>
+ <element value="SET"/>
+ <element value="SETOF"/>
+ <element value="SFUNC"/>
+ <element value="SHARE"/>
+ <element value="SIMPLE"/>
+ <element value="SORTOP"/>
+ <element value="STABLE"/>
+ <element value="START"/>
+ <element value="STATEMENT"/>
+ <element value="STORAGE"/>
+ <element value="STRICT"/>
+ <element value="STYPE"/>
+ <element value="SUPERUSER"/>
+ <element value="SYSID"/>
+ <element value="TABLE"/>
+ <element value="TABLESPACE"/>
+ <element value="TEMP"/>
+ <element value="TEMPLATE"/>
+ <element value="TEMPORARY"/>
+ <element value="TO"/>
+ <element value="TRIGGER"/>
+ <element value="TRUNCATE"/>
+ <element value="TRUE"/>
+ <element value="TRUSTED"/>
+ <element value="TYPE"/>
+ <element value="TYPMOD_IN"/>
+ <element value="TYPMOD_OUT"/>
+ <element value="UNBOUNDED"/>
+ <element value="UNENCRYPTED"/>
+ <element value="UNION"/>
+ <element value="UNIQUE"/>
+ <element value="UNTIL"/>
+ <element value="UPDATE"/>
+ <element value="USER"/>
+ <element value="USING"/>
+ <element value="VALID"/>
+ <element value="VALIDATOR"/>
+ <element value="VALUES"/>
+ <element value="VARIABLE"/>
+ <element value="VIEW"/>
+ <element value="VOLATILE"/>
+ <element value="WHEN"/>
+ <element value="WHERE"/>
+ <element value="WINDOW"/>
+ <element value="WITH"/>
+ <element value="WITHOUT"/>
+ </group>
+
+ <group name="datatypes" case-sensitive="true"
+ bold="true" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#e98e0e">
+ <element value="any"/>
+ <element value="anyarray"/>
+ <element value="anyelement"/>
+ <element value="bigint"/>
+ <element value="bigserial"/>
+ <element value="bit"/>
+ <element value="bit varying"/>
+ <element value="bool"/>
+ <element value="boolean"/>
+ <element value="box"/>
+ <element value="bytea"/>
+ <element value="char"/>
+ <element value="character"/>
+ <element value="character"/>
+ <element value="varying"/>
+ <element value="cid"/>
+ <element value="cidr"/>
+ <element value="circle"/>
+ <element value="cstring"/>
+ <element value="date"/>
+ <element value="decimal"/>
+ <element value="double"/>
+ <element value="precision"/>
+ <element value="float4"/>
+ <element value="float8"/>
+ <element value="inet"/>
+ <element value="int"/>
+ <element value="int2"/>
+ <element value="int4"/>
+ <element value="int8"/>
+ <element value="integer"/>
+ <element value="internal"/>
+ <element value="interval"/>
+ <element value="language_handler"/>
+ <element value="line"/>
+ <element value="lseg"/>
+ <element value="lztext"/>
+ <element value="macaddr"/>
+ <element value="money"/>
+ <element value="numeric"/>
+ <element value="oid"/>
+ <element value="opaque"/>
+ <element value="path"/>
+ <element value="point"/>
+ <element value="polygon"/>
+ <element value="real"/>
+ <element value="record"/>
+ <element value="regclass"/>
+ <element value="regoper"/>
+ <element value="regoperator"/>
+ <element value="regproc"/>
+ <element value="regprocedure"/>
+ <element value="regtype"/>
+ <element value="serial"/>
+ <element value="serial4"/>
+ <element value="serial8"/>
+ <element value="smallint"/>
+ <element value="text"/>
+ <element value="tid"/>
+ <element value="time"/>
+ <element value="timezone"/>
+ <element value="timestamp"/>
+ <element value="with"/>
+ <element value="trigger"/>
+ <element value="varbit"/>
+ <element value="varchar"/>
+ <element value="void"/>
+ <element value="xid"/>
+ </group>
+</source-code-highlight>
View
59 build/conf/defaults/xml-highlight.conf
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<source-code-highlight>
+ <word-delimiters value="&apos;&quot;"/>
+ <word-separators value=""/>
+ <ignored-chars value="&#9;&#10;&#32;"/>
+
+ <!--
+ pt_BR: Ordem em que os grupos são aplicados aos blocos de código.
+ en_US: Order in which groups are applied to blocks of code.
+ -->
+ <highlight-order>
+ <group name="comment"/>
+ <group name="tag"/>
+ <group name="atribute"/>
+ <group name="string"/>
+ <group name="entity"/>
+ </highlight-order>
+
+ <group name="comment" case-sensitive="false"
+ bold="false" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#808080">
+ <element regexp="true" value="(&lt;\!\-\-)(\n)*" type="initial-exp"/>
+ <element regexp="true" value="(\-\-&gt;)(\n)*" type="final-exp"/>
+ </group>
+
+ <group name="tag" case-sensitive="false" partial-match="true"
+ bold="true" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#000000">
+ <element regexp="true" value="(&lt;)((\/)?|(\?)?)?([a-z]+|[0-9]+|(\-)+)+(&gt;)?"/>
+ <element regexp="true" value="((\/)?|(\?)?)?(&gt;)"/>
+ </group>
+
+ <group name="atribute" case-sensitive="false"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#347AB3">
+ <element regexp="true" value="([a-z]+|[0-9]+|(\-)+)+(=)"/>
+ </group>
+
+ <group name="string" case-sensitive="false"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#008000">
+ <element regexp="true" value="(&apos;|&quot;)(.)*(&apos;|&quot;)"/>
+ </group>
+
+ <group name="entity" case-sensitive="false" partial-match="true"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#ff8000">
+ <element regexp="true" value="(&amp;)([a-z]+)" type="initial-exp"/>
+ <element regexp="true" value="(;)" type="final-exp"/>
+ </group>
+</source-code-highlight>
View
27 build/conf/dtd/connections.dtd
@@ -0,0 +1,27 @@
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<!ELEMENT connections (connection*)>
+
+<!ELEMENT connection EMPTY>
+<!ATTLIST connection alias CDATA #REQUIRED>
+<!ATTLIST connection host CDATA #REQUIRED>
+<!ATTLIST connection dbname CDATA #REQUIRED>
+<!ATTLIST connection port CDATA #REQUIRED>
+<!ATTLIST connection user CDATA #REQUIRED>
+<!ATTLIST connection password CDATA #REQUIRED>
+<!ATTLIST connection connect_timeout CDATA #IMPLIED>
+<!ATTLIST connection options CDATA #IMPLIED>
+<!ATTLIST connection sslmode (disable|allow|prefer|require|verify-ca|verify-full) "disable">
+<!ATTLIST connection sslcert CDATA #IMPLIED>
+<!ATTLIST connection sslkey CDATA #IMPLIED>
+<!ATTLIST connection sslrootcert CDATA #IMPLIED>
+<!ATTLIST connection sslcrl CDATA #IMPLIED>
+<!ATTLIST connection krbsrvname CDATA #IMPLIED>
+<!ATTLIST connection gsslib CDATA #IMPLIED>
+
View
29 build/conf/dtd/objects-style.dtd
@@ -0,0 +1,29 @@
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<!ELEMENT objects-style (global, font+, object+)>
+
+<!ELEMENT global EMPTY>
+<!ATTLIST global font CDATA #REQUIRED>
+<!ATTLIST global size CDATA #REQUIRED>
+
+<!ELEMENT font EMPTY>
+<!ATTLIST font color CDATA #REQUIRED>
+<!ATTLIST font italic (false|true) "false">
+<!ATTLIST font bold (false|true) "false">
+<!ATTLIST font underline (false|true) "false">
+<!ATTLIST font id (table-schema-name|view-schema-name|table-name|column|fk-column|pk-column|uq-column|nn-column|
+ prot-column|inh-column|index|rule|trigger|view-name|attribute|label|
+ constraints|object-type|ref-table|ref-column|alias|pos-info) "table-name">
+
+<!ELEMENT object EMPTY>
+<!ATTLIST object fill-color CDATA #REQUIRED>
+<!ATTLIST object border-color CDATA #REQUIRED>
+<!ATTLIST object id (table-title|table-body|textbox|view-title|view-body|label|relationship|
+ attribute|column|pk-column|uq-column|fk-column|nn-column|rule|trigger|index|
+ locker-body|locker-arc|obj-selection|reference|table-ext-body|pos-info) "table-title">
View
31 build/conf/dtd/pgmodeler.dtd
@@ -0,0 +1,31 @@
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<!ELEMENT pgmodeler (configuration, widget-conf?, session?)>
+
+<!ELEMENT configuration EMPTY>
+<!ATTLIST configuration op-list-size CDATA #REQUIRED>
+<!ATTLIST configuration grid-size CDATA #REQUIRED>
+<!ATTLIST configuration autosave-interval CDATA #IMPLIED>
+<!ATTLIST configuration paper-type CDATA #IMPLIED>
+<!ATTLIST configuration paper-orientation (portrait|landscape) "landscape">
+<!ATTLIST configuration paper-margin CDATA #IMPLIED>
+<!ATTLIST configuration save-session (false|true) "true">
+<!ATTLIST configuration save-widgets (false|true) "true">
+
+<!ELEMENT widget-conf (widget+)>
+<!ELEMENT widget EMPTY>
+<!ATTLIST widget visible (false|true) "true">
+<!ATTLIST widget id CDATA #REQUIRED>
+<!ATTLIST widget type (fileToolbar|editToolbar|viewToolbar|modelToolbar|operationsDock|objectsDock) "fileToolbar">
+<!ATTLIST widget position (left|top|right|bottom) "left">
+
+<!ELEMENT session (file+)>
+<!ELEMENT file EMPTY>
+<!ATTLIST file id CDATA #REQUIRED>
+<!ATTLIST file path CDATA #REQUIRED>
View
36 build/conf/dtd/source-code-highlight.dtd
@@ -0,0 +1,36 @@
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<!ELEMENT source-code-highlight (word-delimiters?, word-separators?, ignored-chars?, special-chars?, highlight-order, group+)>
+
+<!ELEMENT highlight-order (group+)>
+
+<!ELEMENT group (element*)>
+<!ATTLIST group name CDATA #REQUIRED>
+<!ATTLIST group background-color CDATA #IMPLIED>
+<!ATTLIST group foreground-color CDATA #IMPLIED>
+<!ATTLIST group lookup-char CDATA #IMPLIED>
+<!ATTLIST group case-sensitive (false|true) "false">
+<!ATTLIST group bold (false|true) "false">
+<!ATTLIST group italic (false|true) "false">
+<!ATTLIST group underline (false|true) "false">
+<!ATTLIST group partial-match (false|true) "false">
+
+<!ELEMENT word-delimiters EMPTY>
+<!ATTLIST word-delimiters value CDATA #IMPLIED>
+
+<!ELEMENT word-separators EMPTY>
+<!ATTLIST word-separators value CDATA #IMPLIED>
+
+<!ELEMENT ignored-chars EMPTY>
+<!ATTLIST ignored-chars value CDATA #IMPLIED>
+
+<!ELEMENT element EMPTY>
+<!ATTLIST element value CDATA #REQUIRED>
+<!ATTLIST element type (initial-exp|final-exp) "initial-exp">
+<!ATTLIST element regexp (false|true) "false">
View
160 build/conf/example.pgmodel
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+CAUTION: Do not modify this file unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<dbmodel author="Raphael Araújo e Silva">
+<schema name="public">
+</schema>
+
+<database name="exampledb" encoding="UTF8">
+ <comment>Example Database Model</comment>
+</database>
+
+ <language name="testlang" protected="true"/>
+<function name="trigger_func"
+ window-func="false"
+ returns-setof="false"
+ behavior-type="CALLED ON NULL INPUT"
+ function-type="IMMUTABLE"
+ security-type="SECURITY DEFINER"
+ execution-cost="20"
+ row-amount="2500">
+ <schema name="public"/>
+ <language name="testlang"/>
+ <return-type>
+ <type name="trigger"/>
+ </return-type>
+ <parameter name="param1" in="true">
+ <type name="integer"/>
+ </parameter>
+ <definition>SELECT 1+1;</definition>
+</function>
+
+<table name="table" oids="false">
+ <schema name="public"/>
+ <position x="20" y="20"/>
+ <column name="column" not-null="true">
+ <type name="serial"/>
+ </column>
+ <column name="column1">
+ <type name="text"/>
+ </column>
+ <column name="column2" not-null="true">
+ <type name="integer"/>
+ </column>
+ <column name="column3">
+ <type name="text"/>
+ </column>
+ <constraint name="table_pk" type="pk-constr" factor="10" table="public.table">
+ <columns names="column" ref-type="src-columns"/>
+ </constraint>
+ <constraint name="table_uq" type="uq-constr" factor="10" table="public.table">
+ <columns names="column1" ref-type="src-columns"/>
+ </constraint>
+ <constraint name="table_ck" type="ck-constr" table="public.table">
+ <expression> column1 &gt; 0 </expression>
+ </constraint>
+ <index name="index" table="public.table"
+ concurrent="true" unique="true" fast-update="false"
+ index-type="hash" factor="90">
+ <idxelement nulls-first="false" asc-order="false">
+ <column name="column1"/>
+ </idxelement>
+ </index>
+</table>
+
+<table name="table1" oids="false" protected="true">
+ <schema name="public"/>
+ <position x="422" y="24"/>
+ <column name="column" not-null="true" protected="true">
+ <type name="serial"/>
+ </column>
+ <column name="column1" protected="true">
+ <type name="text"/>
+ </column>
+ <column name="column2" not-null="true" protected="true">
+ <type name="integer"/>
+ </column>
+ <column name="column3" protected="true">
+ <type name="text"/>
+ </column>
+ <constraint name="table_pk" type="pk-constr" factor="10" protected="true" table="public.table1">
+ <columns names="column" ref-type="src-columns"/>
+ </constraint>
+ <constraint name="table_uq" type="uq-constr" factor="10" protected="true" table="public.table1">
+ <columns names="column1" ref-type="src-columns"/>
+ </constraint>
+ <constraint name="table_ck" type="ck-constr" protected="true" table="public.table1">
+ <expression> column1 &gt; 0 </expression>
+ </constraint>
+ <rule name="rule1" event-type="ON INSERT"
+ exec-type="ALSO" protected="true">
+ <condition>column1 = 0</condition>
+ <commands>UPDATE public.table1 SET column1 = 1</commands>
+ </rule>
+ <trigger name="trigger1" firing-type="BEFORE" per-line="false"
+ ins-event="true" del-event="true" upd-event="true" trunc-event="false" protected="true">
+ <function signature="public.trigger_func(integer)"/>
+ </trigger>
+</table>
+
+<relationship name="relationship"
+ type="rel1n" protected="true"
+ src-required="false" dst-required="false"
+ table-name="relationship"
+ src-table="public.table1"
+ dst-table="public.table">
+ <column name="attribute">
+ <type name="integer"/>
+ </column>
+ <column name="attribute1">
+ <type name="integer"/>
+ </column>
+ <column name="attribute2">
+ <type name="integer"/>
+ </column>
+
+
+</relationship>
+
+<view name="view" protected="true">
+ <schema name="public"/>
+ <position x="320" y="250"/>
+ <reference table="public.table" column="column1" alias="t1" column-alias="col1"/>
+ <reference table="public.table1" column="column2" alias="t2" column-alias="col2"/>
+ <reference alias="expr">
+ <expression>extract(month from now())</expression>
+ </reference>
+ <reference table="public.table1" alias="t3" column-alias="col3"/>
+<expression type="select-exp">0,1,2,3</expression>
+<expression type="from-exp">3,0</expression>
+</view>
+
+<relationship name="rel_view_table"
+ type="reltv"
+ src-required="false" dst-required="false"
+ src-table="public.view"
+ dst-table="public.table"/>
+
+<relationship name="rel_view_table1"
+ type="reltv"
+ src-required="false" dst-required="false"
+ src-table="public.view"
+ dst-table="public.table1"/>
+
+<textbox name="textbox">
+ <position x="20" y="250"/>
+ <comment>Selected Textbox</comment>
+</textbox>
+
+<textbox name="textbox1" protected="true">
+ <position x="20" y="300"/>
+ <comment>Protected Textbox</comment>
+</textbox>
+
+</dbmodel>
View
57 build/conf/objects-style.conf
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<objects-style>
+ <global font="DejaVu Sans" size="8"/>
+ <font id="table-name" color="#ffffff" italic="false" bold="true" underline="false"/>
+ <font id="table-schema-name" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="column" color="#000000" italic="false" bold="false" underline="false"/>
+ <font id="object-type" color="#082061" italic="true" bold="true" underline="false"/>
+ <font id="fk-column" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="pk-column" color="#2b7dba" italic="true" bold="true" underline="false"/>
+ <font id="uq-column" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="nn-column" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="prot-column" color="#ff0000" italic="true" bold="false" underline="false"/>
+ <font id="inh-column" color="#3f9e51" italic="true" bold="false" underline="false"/>
+ <font id="index" color="#082061" italic="true" bold="false" underline="false"/>
+ <font id="rule" color="#082061" italic="true" bold="false" underline="false"/>
+ <font id="trigger" color="#082061" italic="true" bold="false" underline="false"/>
+ <font id="view-name" color="#ffffff" italic="false" bold="true" underline="false"/>
+ <font id="view-schema-name" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="ref-table" color="#000080" italic="true" bold="false" underline="false"/>
+ <font id="ref-column" color="#000000" italic="true" bold="true" underline="false"/>
+ <font id="alias" color="#800080" italic="false" bold="false" underline="false"/>
+ <font id="attribute" color="#000000" italic="true" bold="false" underline="false"/>
+ <font id="label" color="#000000" italic="false" bold="false" underline="false"/>
+ <font id="constraints" color="#25682d" italic="true" bold="false" underline="false"/>
+ <font id="pos-info" color="#000000" italic="false" bold="false" underline="false"/>
+
+ <object id="table-title" fill-color="#4aa5ff,#2070c1" border-color="#000000"/>
+ <object id="table-body" fill-color="#cecece,#fafafa" border-color="#000000"/>
+ <object id="table-ext-body" fill-color="#fafafa,#cecece" border-color="#000000"/>
+ <object id="label" fill-color="#cbfa95,#eeffe0" border-color="#3a7637"/>
+ <object id="view-title" fill-color="#ffe1a6,#c28000" border-color="#000000"/>
+ <object id="view-body" fill-color="#cecece,#fafafa" border-color="#000000"/>
+ <object id="textbox" fill-color="#aee7e7,#c7f3f1" border-color="#759b9b"/>
+ <object id="relationship" fill-color="#bebebe,#fafafa" border-color="#202020"/>
+ <object id="attribute" fill-color="#ffa858,#db6700" border-color="#000000"/>
+ <object id="column" fill-color="#fafafa,#bebebe" border-color="#000000"/>
+ <object id="pk-column" fill-color="#fefae6,#ffde31" border-color="#000000"/>
+ <object id="uq-column" fill-color="#ffb209,#c08d00" border-color="#000000"/>
+ <object id="fk-column" fill-color="#fce5cc,#ff5d31" border-color="#000000"/>
+ <object id="nn-column" fill-color="#d2e9ff,#5a9ee4" border-color="#000000"/>
+ <object id="reference" fill-color="#d2e9ff,#5a9ee4" border-color="#000000"/>
+ <object id="rule" fill-color="#4c4c98,#c5cbff" border-color="#000000"/>
+ <object id="trigger" fill-color="#4c4c98,#c5cbff" border-color="#000000"/>
+ <object id="index" fill-color="#4c4c98,#c5cbff" border-color="#000000"/>
+ <object id="locker-body" fill-color="#ffff80,#c7c700" border-color="#808000"/>
+ <object id="locker-arc" fill-color="#ffffff,#b2b2b2" border-color="#8e8e8e"/>
+ <object id="obj-selection" fill-color="#023d86" border-color="#012149"/>
+ <object id="pos-info" fill-color="#ffff80" border-color="#800000"/>
+</objects-style>
View
27 build/conf/pgmodeler.conf
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<pgmodeler>
+ <configuration op-list-size="500"
+ grid-size="20"
+ autosave-interval="10"
+ paper-type="4"
+ paper-orientation="landscape"
+ paper-margin="10,10,10,10"
+ save-session="true"
+ save-widgets="true"/>
+ <widget-conf>
+ <widget id="widget0" type="fileToolbar" position="top" visible="true"/>
+ <widget id="widget1" type="editToolbar" position="top" visible="true"/>
+ <widget id="widget2" type="viewToolbar" position="top" visible="true"/>
+ <widget id="widget3" type="modelToolbar" position="bottom" visible="true"/>
+ <widget id="widget4" type="objectsDock" position="right" visible="true"/>
+ <widget id="widget5" type="operationsDock" position="right" visible="true"/>
+ </widget-conf>
+</pgmodeler>
View
52 build/conf/schemas/connections.sch
@@ -0,0 +1,52 @@
+# pt_BR:
+# Definição XML para configuração de conexões
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# XML definition for connections configuration
+# CAUTION: Do not modify this file unless you know what
+# you are doing.
+%if @{connections} %then
+
+[<?xml version="1.0" encoding="UTF-8" ?>] $br
+[<!--] $br
+[ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba ] $br
+[ o que está fazendo. Resultados inesperados podem acontecer] $br
+[ caso o código seja alterado deliberadamente.] $br
+$br
+[ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.] $br
+[ Unexpected results may occur if the code is changed deliberately.] $br
+[-->] $br
+
+<connections> $br
+@{connections} $br
+</connections> $br
+
+%else
+
+$tb [<connection alias="] @{alias} [" host=] "@{host}" [ port=] "@{port}" [ dbname=] "@{dbname}" $br
+$tb $tb [user=] "@{user}" [ password=] "@{password}" [ connect_timeout=] "@{connect_timeout}" $br
+$tb $tb [sslmode=] "@{sslmode}" $br
+
+%if @{sslcert} %then $tb $tb [sslcert=] "@{sslcert}" $br %end
+%if @{sslkey} %then $tb $tb [sslkey=] "@{sslkey}" $br %end
+%if @{sslrootcert} %then $tb $tb [sslrootcert=] "@{sslrootcert}" $br %end
+%if @{sslcrl} %then $tb $tb [sslcrl=] "@{sslcrl}" $br %end
+
+
+%if @{krbsrvname} %then
+ $tb $tb [krbsrvname=] "@{krbsrvname}"
+
+ %if @{gsslib} %then
+ [ gsslib=] "@{gsslib}"
+ %end
+ $br
+%end
+
+%if @{options} %then
+ $tb $tb options="@{options}"
+%end
+
+ $tb $tb /> $br
+%end
View
10 build/conf/schemas/file.sch
@@ -0,0 +1,10 @@
+# pt_BR:
+# Definição XML para arquivos abertos numa sessão
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# XML definition for files opened on a session
+# CAUTION: Do not modify this file unless you know what
+# you are doing.
+$tb [<file id="] @{id} [" path="] @{path}" /> $br
View
66 build/conf/schemas/objects-style.sch
@@ -0,0 +1,66 @@
+# pt_BR:
+# Definição XML para configurações de estilo de objetos
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# XML definition for object style configurations
+# CAUTION: Do not modify this file unless you know what
+# you are doing.
+[<?xml version="1.0" encoding="UTF-8" ?>] $br
+[<!--] $br
+[ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba] $br
+[ o que está fazendo. Resultados inesperados podem acontecer] $br
+[ caso o código seja alterado deliberadamente.] $br
+$br
+[ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.] $br
+[ Unexpected results may occur if the code is changed deliberately.] $br
+[-->] $br
+<objects-style> $br
+[ <global font="] @{font-name} [" size="] @{font-size} ["/>] $br
+[ <font id="table-name" color="] @{table-name-fcolor} [" italic="] @{table-name-italic} [" bold="] @{table-name-bold} [" underline="] @{table-name-underline} ["/>] $br
+[ <font id="table-schema-name" color="] @{table-schema-name-fcolor} [" italic="] @{table-schema-name-italic} [" bold="] @{table-schema-name-bold} [" underline="] @{table-schema-name-underline} ["/>] $br
+[ <font id="column" color="] @{column-fcolor} [" italic="] @{column-italic} [" bold="] @{column-bold} [" underline="] @{column-underline} ["/>] $br
+[ <font id="object-type" color="] @{object-type-fcolor} [" italic="] @{object-type-italic} [" bold="] @{object-type-bold} [" underline="] @{object-type-underline} ["/>] $br
+[ <font id="fk-column" color="] @{fk-column-fcolor} [" italic="] @{fk-column-italic} [" bold="] @{fk-column-bold} [" underline="] @{fk-column-underline} ["/>] $br
+[ <font id="pk-column" color="] @{pk-column-fcolor} [" italic="] @{pk-column-italic} [" bold="] @{pk-column-bold} [" underline="] @{pk-column-underline} ["/>] $br
+[ <font id="uq-column" color="] @{uq-column-fcolor} [" italic="] @{uq-column-italic} [" bold="] @{uq-column-bold} [" underline="] @{uq-column-underline} ["/>] $br
+[ <font id="nn-column" color="] @{nn-column-fcolor} [" italic="] @{nn-column-italic} [" bold="] @{nn-column-bold} [" underline="] @{nn-column-underline} ["/>] $br
+[ <font id="prot-column" color="] @{prot-column-fcolor} [" italic="] @{prot-column-italic} [" bold="] @{prot-column-bold} [" underline="] @{prot-column-underline} ["/>] $br
+[ <font id="inh-column" color="] @{inh-column-fcolor} [" italic="] @{inh-column-italic} [" bold="] @{inh-column-bold} [" underline="] @{inh-column-underline} ["/>] $br
+[ <font id="index" color="] @{index-fcolor} [" italic="] @{index-italic} [" bold="] @{index-bold} [" underline="] @{index-underline} ["/>] $br
+[ <font id="rule" color="] @{rule-fcolor} [" italic="] @{rule-italic} [" bold="] @{rule-bold} [" underline="] @{rule-underline} ["/>] $br
+[ <font id="trigger" color="] @{trigger-fcolor} [" italic="] @{trigger-italic} [" bold="] @{trigger-bold} [" underline="] @{trigger-underline} ["/>] $br
+[ <font id="view-name" color="] @{view-name-fcolor} [" italic="] @{view-name-italic} [" bold="] @{view-name-bold} [" underline="] @{view-name-underline} ["/>] $br
+[ <font id="view-schema-name" color="] @{view-schema-name-fcolor} [" italic="] @{view-schema-name-italic} [" bold="] @{view-schema-name-bold} [" underline="] @{view-schema-name-underline} ["/>] $br
+[ <font id="ref-table" color="] @{ref-table-fcolor} [" italic="] @{ref-table-italic} [" bold="] @{ref-table-bold} [" underline="] @{ref-table-underline} ["/>] $br
+[ <font id="ref-column" color="] @{ref-column-fcolor} [" italic="] @{ref-column-italic} [" bold="] @{ref-column-bold} [" underline="] @{ref-column-underline} ["/>] $br
+[ <font id="alias" color="] @{alias-fcolor} [" italic="] @{alias-italic} [" bold="] @{alias-bold} [" underline="] @{alias-underline} ["/>] $br
+[ <font id="attribute" color="] @{attribute-fcolor} [" italic="] @{attribute-italic} [" bold="] @{attribute-bold} [" underline="] @{attribute-underline} ["/>] $br
+[ <font id="label" color="] @{label-fcolor} [" italic="] @{label-italic} [" bold="] @{label-bold} [" underline="] @{label-underline} ["/>] $br
+[ <font id="constraints" color="] @{constraints-fcolor} [" italic="] @{constraints-italic} [" bold="] @{constraints-bold} [" underline="] @{constraints-underline} ["/>] $br
+[ <font id="pos-info" color="] @{pos-info-fcolor} [" italic="] @{pos-info-italic} [" bold="] @{pos-info-bold} [" underline="] @{pos-info-underline} ["/>] $br
+$br
+[ <object id="table-title" fill-color="] @{table-title-color} [" border-color="] @{table-title-bcolor} ["/>] $br
+[ <object id="table-body" fill-color="] @{table-body-color} [" border-color="] @{table-body-bcolor} ["/>] $br
+[ <object id="table-ext-body" fill-color="] @{table-ext-body-color} [" border-color="] @{table-ext-body-bcolor} ["/>] $br
+[ <object id="label" fill-color="] @{label-color} [" border-color="] @{label-bcolor} ["/>] $br
+[ <object id="view-title" fill-color="] @{view-title-color} [" border-color="] @{view-title-bcolor} ["/>] $br
+[ <object id="view-body" fill-color="] @{view-body-color} [" border-color="] @{view-body-bcolor} ["/>] $br
+[ <object id="textbox" fill-color="] @{textbox-color} [" border-color="] @{textbox-bcolor} ["/>] $br
+[ <object id="relationship" fill-color="] @{relationship-color} [" border-color="] @{relationship-bcolor} ["/>] $br
+[ <object id="attribute" fill-color="] @{attribute-color} [" border-color="] @{attribute-bcolor} ["/>] $br
+[ <object id="column" fill-color="] @{column-color} [" border-color="] @{column-bcolor} ["/>] $br
+[ <object id="pk-column" fill-color="] @{pk-column-color} [" border-color="] @{pk-column-bcolor} ["/>] $br
+[ <object id="uq-column" fill-color="] @{uq-column-color} [" border-color="] @{uq-column-bcolor} ["/>] $br
+[ <object id="fk-column" fill-color="] @{fk-column-color} [" border-color="] @{fk-column-bcolor} ["/>] $br
+[ <object id="nn-column" fill-color="] @{nn-column-color} [" border-color="] @{nn-column-bcolor} ["/>] $br
+[ <object id="reference" fill-color="] @{reference-color} [" border-color="] @{reference-bcolor} ["/>] $br
+[ <object id="rule" fill-color="] @{rule-color} [" border-color="] @{rule-bcolor} ["/>] $br
+[ <object id="trigger" fill-color="] @{trigger-color} [" border-color="] @{trigger-bcolor} ["/>] $br
+[ <object id="index" fill-color="] @{index-color} [" border-color="] @{index-bcolor} ["/>] $br
+[ <object id="locker-body" fill-color="] @{locker-body-color} [" border-color="] @{locker-body-bcolor} ["/>] $br
+[ <object id="locker-arc" fill-color="] @{locker-arc-color} [" border-color="] @{locker-arc-bcolor} ["/>] $br
+[ <object id="obj-selection" fill-color="] @{obj-selection-color} [" border-color="] @{obj-selection-bcolor} ["/>] $br
+[ <object id="pos-info" fill-color="] @{pos-info-color} [" border-color="] @{pos-info-bcolor} ["/>] $br
+</objects-style> $br
View
42 build/conf/schemas/pgmodeler.sch
@@ -0,0 +1,42 @@
+# pt_BR:
+# Definição XML para arquivo de configurações básicas
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# XML definition for basic configurations file
+# CAUTION: Do not modify this file unless you know what
+# you are doing.
+[<?xml version="1.0" encoding="UTF-8" ?>] $br
+[<!--] $br
+[ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba ] $br
+[ o que está fazendo. Resultados inesperados podem acontecer] $br
+[ caso o código seja alterado deliberadamente.] $br
+$br
+[ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.] $br
+[ Unexpected results may occur if the code is changed deliberately.] $br
+[-->] $br
+
+<pgmodeler> $br
+$sp [<configuration op-list-size="] @{op-list-size} ["] $br
+[ grid-size="] @{grid-size} ["] $br
+[ autosave-interval="] @{autosave-interval} ["] $br
+[ paper-type="] @{paper-type} ["] $br
+[ paper-orientation="] @{paper-orientation} ["] $br
+[ paper-margin="] @{paper-margin} ["] $br
+[ save-session="] %if @{save-session} %then true %else false %end ["] $br
+[ save-widgets="] %if @{save-widgets} %then true %else false %end ["/>] $br
+
+%if @{widget} %then
+ $sp <widget-conf> $br
+ $sp @{widget}
+ $sp </widget-conf> $br
+%end
+
+%if @{file} %then
+ $sp <session> $br
+ $sp @{file}
+ $sp </session> $br
+%end
+
+</pgmodeler> $br
View
10 build/conf/schemas/widget.sch
@@ -0,0 +1,10 @@
+# pt_BR:
+# Definição XML para configuração de widgets
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# XML definition for widget configuration
+# CAUTION: Do not modify this file unless you know what
+# you are doing.
+$tb [<widget id="] @{id} [" type="] @{type} [" position="] @{position} [" visible="] @{visible} ["/>] $br
View
391 build/conf/sql-highlight.conf
@@ -0,0 +1,391 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+
+ pt_BR: Partes deste arquivo foram retiradas do arquivo sql-postgresql.xml
+ com autorização de seu autor Shane Wright (me@shanewright.co.uk).
+ O arquivo original pertence ao Projeto Kate (kate-editor.org).
+
+ en_US: Portions of this file were taken from the sql-postgresql.xml by
+ permission of its author Shane Wright (me@shanewright.co.uk).
+ The original file belongs to the Kate Editor Project (kate-editor.org).
+-->
+<source-code-highlight>
+ <word-delimiters value="&apos;&quot;"/>
+ <word-separators value="&#10;+-*&lt;&gt;=~!@#%^&amp;|?/\[];,()."/>
+ <ignored-chars value="&#9;&#32;"/>
+
+ <!--
+ pt_BR: Ordem em que os grupos são aplicados aos blocos de código.
+ en_US: Order in which groups are applied to blocks of code.
+ -->
+ <highlight-order>
+ <group name="multi-line-comment"/>
+ <group name="single-line-comment"/>
+ <group name="keywords"/>
+ <group name="functions"/>
+ <group name="operators"/>
+ <group name="datatypes"/>
+ <group name="numbers"/>
+ <group name="strings"/>
+ <group name="schema-qualified"/>
+ <group name="identifiers"/>
+ </highlight-order>
+
+ <group name="identifiers" case-sensitive="false"
+ bold="false" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#347AB3">
+ <element regexp="true" value="(&quot;)?([a-z]+|[0-9]*|(_)*)+(&quot;)?"/>
+ </group>
+
+ <group name="schema-qualified" case-sensitive="false"
+ bold="true" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#009600"
+ lookup-char=".">
+ <element regexp="true" value="(&quot;)?([a-z]+|[0-9]*|(_)*)+(&quot;)?"/>
+ </group>
+
+ <group name="numbers" case-sensitive="false"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#008000">
+ <element regexp="true" value="([0-9])+((\.)([0-9]+))?"/>
+ </group>
+
+ <group name="strings" case-sensitive="false"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#ff0000">
+ <element regexp="true" value="(&apos;)(.)*(&apos;)"/>
+ </group>
+
+ <group name="single-line-comment" case-sensitive="false"
+ bold="false" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#808080">
+ <element regexp="true" value="(\-\-)(.)*" type="initial-exp"/>
+ <element regexp="true" value="(.)*(\n)" type="final-exp"/>
+ </group>
+
+ <group name="multi-line-comment" case-sensitive="false"
+ bold="false" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#808080">
+ <element regexp="true" value="(\/\*)(.)*" type="initial-exp"/>
+ <element regexp="true" value="(.)*(\*\/)(\n)*" type="final-exp"/>
+ </group>
+
+ <group name="operators" case-sensitive="false"
+ bold="true" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#101010">
+ <element regexp="true" value="((\+)*|(-)*|(\*)*|(/)*|(!)*|(%)*|(=)*|(\?)*|(&amp;)*|(\|)*|(#)*|(@)*|(\&lt;)*|(&gt;)*|(\^)*|(~)*|(')*)+"/>
+ </group>
+
+ <group name="functions" case-sensitive="false"
+ bold="true" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#000060"
+ lookup-char="(">
+ <element regexp="true" value="(&quot;)?(.)+(&quot;)?"/>
+ </group>
+
+ <group name="keywords" case-sensitive="false"
+ bold="true" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#000000">
+ <element value="ADMIN"/>
+ <element value="AFTER"/>
+ <element value="AGGREGATE"/>
+ <element value="ALIGNMENT"/>
+ <element value="ALL"/>
+ <element value="ALSO"/>
+ <element value="ALTER"/>
+ <element value="ANALYZE"/>
+ <element value="AND"/>
+ <element value="AS"/>
+ <element value="ASC"/>
+ <element value="ASSIGNMENT"/>
+ <element value="AUTHORIZATION"/>
+ <element value="BEFORE"/>
+ <element value="BETWEEN"/>
+ <element value="BY"/>
+ <element value="CACHE"/>
+ <element value="CALLED"/>
+ <element value="CAST"/>
+ <element value="CATEGORY"/>
+ <element value="CHECK"/>
+ <element value="CLASS"/>
+ <element value="COMMENT"/>
+ <element value="COMMIT"/>
+ <element value="COMMUTATOR"/>
+ <element value="CONCURRENTLY"/>
+ <element value="CONNECTION"/>
+ <element value="CONSTRAINT"/>
+ <element value="CONSTRAINTS"/>
+ <element value="CONVERSION"/>
+ <element value="COST"/>
+ <element value="CREATE"/>
+ <element value="CREATEDB"/>
+ <element value="CREATEROLE"/>
+ <element value="CREATEUSER"/>
+ <element value="CROSS"/>
+ <element value="CURRENT"/>
+ <element value="CYCLE"/>
+ <element value="DATABASE"/>
+ <element value="DEFAULT"/>
+ <element value="DEFAULTS"/>
+ <element value="DEFERRABLE"/>
+ <element value="DEFERRED"/>
+ <element value="DEFINER"/>
+ <element value="DELETE"/>
+ <element value="DELIMITER"/>
+ <element value="DESC"/>
+ <element value="DISTINCT"/>
+ <element value="DO"/>
+ <element value="DOMAIN"/>
+ <element value="DROP"/>
+ <element value="EACH"/>
+ <element value="ELEMENT"/>
+ <element value="ENCODING"/>
+ <element value="ENCRYPTED"/>
+ <element value="ENUM"/>
+ <element value="EXCEPT"/>
+ <element value="EXCLUDING"/>
+ <element value="EXECUTE"/>
+ <element value="EXTERNAL"/>
+ <element value="FALSE"/>
+ <element value="FAMILY"/>
+ <element value="FETCH"/>
+ <element value="FILLFACTOR"/>
+ <element value="FINALFUNC"/>
+ <element value="FIRST"/>
+ <element value="FOLLOWING"/>
+ <element value="FOR"/>
+ <element value="FOREIGN"/>
+ <element value="FROM"/>
+ <element value="FULL"/>
+ <element value="FUNCTION"/>
+ <element value="GLOBAL"/>
+ <element value="GRANT"/>
+ <element value="GROUP"/>
+ <element value="HANDLER"/>
+ <element value="HASHES"/>
+ <element value="HAVING"/>
+ <element value="IMMEDIATE"/>
+ <element value="IMMUTABLE"/>
+ <element value="IMPLICIT"/>
+ <element value="IN"/>
+ <element value="INCLUDING"/>
+ <element value="INCREMENT"/>
+ <element value="INDEX"/>
+ <element value="INDEXES"/>
+ <element value="INHERIT"/>
+ <element value="INHERITS"/>
+ <element value="INITCOND"/>
+ <element value="INITIALLY"/>
+ <element value="INNER"/>
+ <element value="INOUT"/>
+ <element value="INPUT"/>
+ <element value="INSERT"/>
+ <element value="INSTEAD"/>
+ <element value="INTERNALLENGTH"/>
+ <element value="INTERSECT"/>
+ <element value="INTO"/>
+ <element value="INVOKER"/>
+ <element value="IS"/>
+ <element value="JOIN"/>
+ <element value="KEY"/>
+ <element value="LANGUAGE"/>
+ <element value="LAST"/>
+ <element value="LC_COLLATE"/>
+ <element value="LC_CTYPE"/>
+ <element value="LEFT"/>
+ <element value="LEFTARG"/>
+ <element value="LIKE"/>
+ <element value="LIMIT"/>
+ <element value="LOCAL"/>
+ <element value="LOCATION"/>
+ <element value="LOGIN"/>
+ <element value="MATCH"/>
+ <element value="MAXVALUE"/>
+ <element value="MERGES"/>
+ <element value="MINVALUE"/>
+ <element value="NATURAL"/>
+ <element value="NEGATOR"/>
+ <element value="NEXT"/>
+ <element value="NO"/>
+ <element value="NOCREATEDB"/>
+ <element value="NOCREATEROLE"/>
+ <element value="NOCREATEUSER"/>
+ <element value="NOINHERIT"/>
+ <element value="NOLOGIN"/>
+ <element value="NONE"/>
+ <element value="NOSUPERUSER"/>
+ <element value="NOT"/>
+ <element value="NOTHING"/>
+ <element value="NOWAIT"/>
+ <element value="NULL"/>
+ <element value="NULLS"/>
+ <element value="OF"/>
+ <element value="OFFSET"/>
+ <element value="OIDS"/>
+ <element value="ON"/>
+ <element value="ONLY"/>
+ <element value="OPERATOR"/>
+ <element value="OPTION"/>
+ <element value="OR"/>
+ <element value="ORDER"/>
+ <element value="OUTER"/>
+ <element value="OUTPUT"/>
+ <element value="OWNED"/>
+ <element value="OWNER"/>
+ <element value="PARTIAL"/>
+ <element value="PASSEDBYVALUE"/>
+ <element value="PASSWORD"/>
+ <element value="PRECEDING"/>
+ <element value="PREFERRED"/>
+ <element value="PRESERVE"/>
+ <element value="PRIMARY"/>
+ <element value="PROCEDURAL"/>
+ <element value="PROCEDURE"/>
+ <element value="RANGE"/>
+ <element value="RECEIVE"/>
+ <element value="RECHECK"/>
+ <element value="RECURSIVE"/>
+ <element value="REFERENCES"/>
+ <element value="REPLACE"/>
+ <element value="RESTRICT"/>
+ <element value="RETURNING"/>
+ <element value="RETURNS"/>
+ <element value="RETURNSTABLE"/>
+ <element value="RIGHT"/>
+ <element value="RIGHTARG"/>
+ <element value="ROLE"/>
+ <element value="ROW"/>
+ <element value="ROWS"/>
+ <element value="RULE"/>
+ <element value="SCHEMA"/>
+ <element value="SECURITY"/>
+ <element value="SELECT"/>
+ <element value="SEND"/>
+ <element value="SEQUENCE"/>
+ <element value="SET"/>
+ <element value="SETOF"/>
+ <element value="SFUNC"/>
+ <element value="SHARE"/>
+ <element value="SIMPLE"/>
+ <element value="SORTOP"/>
+ <element value="STABLE"/>
+ <element value="START"/>
+ <element value="STATEMENT"/>
+ <element value="STORAGE"/>
+ <element value="STRICT"/>
+ <element value="STYPE"/>
+ <element value="SUPERUSER"/>
+ <element value="SYSID"/>
+ <element value="TABLE"/>
+ <element value="TABLESPACE"/>
+ <element value="TEMP"/>
+ <element value="TEMPLATE"/>
+ <element value="TEMPORARY"/>
+ <element value="TO"/>
+ <element value="TRIGGER"/>
+ <element value="TRUNCATE"/>
+ <element value="TRUE"/>
+ <element value="TRUSTED"/>
+ <element value="TYPE"/>
+ <element value="TYPMOD_IN"/>
+ <element value="TYPMOD_OUT"/>
+ <element value="UNBOUNDED"/>
+ <element value="UNENCRYPTED"/>
+ <element value="UNION"/>
+ <element value="UNIQUE"/>
+ <element value="UNTIL"/>
+ <element value="UPDATE"/>
+ <element value="USER"/>
+ <element value="USING"/>
+ <element value="VALID"/>
+ <element value="VALIDATOR"/>
+ <element value="VALUES"/>
+ <element value="VARIABLE"/>
+ <element value="VIEW"/>
+ <element value="VOLATILE"/>
+ <element value="WHEN"/>
+ <element value="WHERE"/>
+ <element value="WINDOW"/>
+ <element value="WITH"/>
+ <element value="WITHOUT"/>
+ </group>
+
+ <group name="datatypes" case-sensitive="true"
+ bold="true" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#e98e0e">
+ <element value="any"/>
+ <element value="anyarray"/>
+ <element value="anyelement"/>
+ <element value="bigint"/>
+ <element value="bigserial"/>
+ <element value="bit"/>
+ <element value="bit varying"/>
+ <element value="bool"/>
+ <element value="boolean"/>
+ <element value="box"/>
+ <element value="bytea"/>
+ <element value="char"/>
+ <element value="character"/>
+ <element value="character"/>
+ <element value="varying"/>
+ <element value="cid"/>
+ <element value="cidr"/>
+ <element value="circle"/>
+ <element value="cstring"/>
+ <element value="date"/>
+ <element value="decimal"/>
+ <element value="double"/>
+ <element value="precision"/>
+ <element value="float4"/>
+ <element value="float8"/>
+ <element value="inet"/>
+ <element value="int"/>
+ <element value="int2"/>
+ <element value="int4"/>
+ <element value="int8"/>
+ <element value="integer"/>
+ <element value="internal"/>
+ <element value="interval"/>
+ <element value="language_handler"/>
+ <element value="line"/>
+ <element value="lseg"/>
+ <element value="lztext"/>
+ <element value="macaddr"/>
+ <element value="money"/>
+ <element value="numeric"/>
+ <element value="oid"/>
+ <element value="opaque"/>
+ <element value="path"/>
+ <element value="point"/>
+ <element value="polygon"/>
+ <element value="real"/>
+ <element value="record"/>
+ <element value="regclass"/>
+ <element value="regoper"/>
+ <element value="regoperator"/>
+ <element value="regproc"/>
+ <element value="regprocedure"/>
+ <element value="regtype"/>
+ <element value="serial"/>
+ <element value="serial4"/>
+ <element value="serial8"/>
+ <element value="smallint"/>
+ <element value="text"/>
+ <element value="tid"/>
+ <element value="time"/>
+ <element value="timezone"/>
+ <element value="timestamp"/>
+ <element value="with"/>
+ <element value="trigger"/>
+ <element value="varbit"/>
+ <element value="varchar"/>
+ <element value="void"/>
+ <element value="xid"/>
+ </group>
+</source-code-highlight>
View
59 build/conf/xml-highlight.conf
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ATENÇÃO: Não modifique este arquivo diretamente no código a não ser que você saiba
+ o que está fazendo. Resultados inesperados podem acontecer
+ caso o código seja alterado deliberadamente.
+
+ CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
+ Unexpected results may occur if the code is changed deliberately.
+-->
+<source-code-highlight>
+ <word-delimiters value="&apos;&quot;"/>
+ <word-separators value=""/>
+ <ignored-chars value="&#9;&#10;&#32;"/>
+
+ <!--
+ pt_BR: Ordem em que os grupos são aplicados aos blocos de código.
+ en_US: Order in which groups are applied to blocks of code.
+ -->
+ <highlight-order>
+ <group name="comment"/>
+ <group name="tag"/>
+ <group name="atribute"/>
+ <group name="string"/>
+ <group name="entity"/>
+ </highlight-order>
+
+ <group name="comment" case-sensitive="false"
+ bold="false" italic="true" underline="false"
+ background-color="#ffffff" foreground-color="#808080">
+ <element regexp="true" value="(&lt;\!\-\-)(\n)*" type="initial-exp"/>
+ <element regexp="true" value="(\-\-&gt;)(\n)*" type="final-exp"/>
+ </group>
+
+ <group name="tag" case-sensitive="false" partial-match="true"
+ bold="true" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#000000">
+ <element regexp="true" value="(&lt;)((\/)?|(\?)?)?([a-z]+|[0-9]+|(\-)+)+(&gt;)?"/>
+ <element regexp="true" value="((\/)?|(\?)?)?(&gt;)"/>
+ </group>
+
+ <group name="atribute" case-sensitive="false"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#347AB3">
+ <element regexp="true" value="([a-z]+|[0-9]+|(\-)+)+(=)"/>
+ </group>
+
+ <group name="string" case-sensitive="false"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#008000">
+ <element regexp="true" value="(&apos;|&quot;)(.)*(&apos;|&quot;)"/>
+ </group>
+
+ <group name="entity" case-sensitive="false" partial-match="true"
+ bold="false" italic="false" underline="false"
+ background-color="#ffffff" foreground-color="#ff8000">
+ <element regexp="true" value="(&amp;)([a-z]+)" type="initial-exp"/>
+ <element regexp="true" value="(;)" type="final-exp"/>
+ </group>
+</source-code-highlight>
View
1  build/lang
View
BIN  build/lang/pgmodeler.en_US.qm
Binary file not shown
View
5,241 build/lang/pgmodeler.en_US.ts
5,241 additions, 0 deletions not shown
View
1  build/schemas
View
24 build/schemas/sql/8.0/aggregate.sch
@@ -0,0 +1,24 @@
+# pt_BR:
+# Definição SQL para funções agregadas
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# SQL definition for aggregate functions
+# PostgreSQL Version: 8.0
+# CAUTION: Do not modify this file unless that you know what
+# you are doing.
+
+ [-- object: ] @{name} [ | type: ] @{sql-object} [ -- ] $br
+
+[CREATE AGGREGATE ] @{name} [ (] $br
+$tb [BASETYPE = ] @{types}, $br
+$tb [SFUNC = ] @{transition}, $br
+$tb [STYPE = ] @{state-type} $br
+%if @{final} %then $tb [,FINALFUNC = ] @{final} $br %end
+%if @{initial-cond} %then $tb [,INITCOND = ] @{initial-cond} $br %end
+); $br
+
+%if @{owner} %then @{owner} %end
+%if @{comment} %then @{comment} %end
View
40 build/schemas/sql/8.0/comment.sch
@@ -0,0 +1,40 @@
+# pt_BR:
+# Definição SQL para comentários
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# SQL definition for comments
+# PostgreSQL Version: 8.0
+# CAUTION: Do not modify this file unless that you know what
+# you are doing.
+[COMMENT ON ]
+
+%if @{role} %then
+ %if @{group} %then
+ [GROUP ]
+ %else
+ [USER ]
+ %end
+%else
+ @{sql-object} $sp
+%end
+
+%if @{dif-sql} %then
+ %if @{column} %then @{table}.@{name} %end
+ %if @{aggregate} %then @{name} [ (] @{types} [)] %end
+ %if @{cast} %then [ (] @{source-type} [ AS ] @{destiny-type} [)] %end
+ %if @{constraint} %then @{name} [ ON ] @{table} %end
+ %if @{rule} %then @{name} [ ON ] @{table} %end
+ %if @{trigger} %then @{name} [ ON ] @{table} %end
+ #%if @{consttrigger} %then @{name} [ ON ] @{table} %end
+ %if @{function} %then @{signature} %end
+ %if @{operator} %then @{signature} %end
+ %if @{opclass} %then @{name} [ USING ] @{index-type} %end
+ %if @{opfamily} %then @{name} [ USING ] @{index-type} %end
+%else
+ @{name}
+%end
+
+[ IS ] '@{comment}'; $br
View
35 build/schemas/sql/8.0/database.sch
@@ -0,0 +1,35 @@
+# pt_BR:
+# Definição SQL para banco de dados
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# SQL definition for databases
+# PostgreSQL Version: 8.0
+# CAUTION: Do not modify this file unless that you know what
+# you are doing.
+
+[-- object: ] @{name} [ | type: ] @{sql-object} [ -- ] $br
+
+%if @{comment} %then [-- ] @{comment} [ --] $br %end
+
+[CREATE DATABASE ] @{name} $br
+
+%if @{template} %then
+ $tb [TEMPLATE = ] @{template} $br
+%end
+
+%if @{encoding} %then
+ $tb [ENCODING = ] @{encoding} $br
+%end
+
+%if @{tablespace} %then
+ $tb [TABLESPACE = ] @{tablespace} $br
+%end
+
+%if @{owner} %then
+ $tb [OWNER = ] @{owner} $br
+%end
+
+; $br
View
44 build/schemas/sql/8.0/function.sch
@@ -0,0 +1,44 @@
+# pt_BR:
+# Definição SQL para funções
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# SQL definition for functions
+# PostgreSQL Version: 8.0
+# CAUTION: Do not modify this file unless you know what
+# you are doing.
+
+[-- object: ] @{name} [ | type: ] @{sql-object} [ -- ] $br
+
+[CREATE OR REPLACE FUNCTION ] $br
+$tb @{name} $sp ( %if @{parameters} %then @{parameters} %end ) $br
+$tb [RETURNS ]
+%if @{returns-setof} %then [SETOF ] %end
+@{return-type} $br
+
+$tb [LANGUAGE ] @{language} $br
+$tb @{function-type} $br
+$tb @{behavior-type} $br
+$tb @{security-type} $br
+
+$tb [AS ]
+
+%if @{library} %then
+ '@{library}'
+
+ %if @{symbol} %then
+ [, ] '@{symbol}'
+ %end
+
+%else
+[$$]
+ @{definition}
+[$$]
+%end
+
+; $br
+
+%if @{owner} %then @{owner} %end
+%if @{comment} %then @{comment} %end
View
18 build/schemas/sql/8.0/idxelement.sch
@@ -0,0 +1,18 @@
+# pt_BR:
+# Definição SQL para elementos de classe de operadores
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# SQL definition for operator class elements
+# PostgreSQL Version: 8.0
+# CAUTION: Do not modify this file unless that you know what
+# you are doing.
+%if @{column} %then
+ @{column}
+%else
+ %if @{expression} %then
+ [(] @{expression} [)]
+ %end
+%end
View
36 build/schemas/sql/8.0/index.sch
@@ -0,0 +1,36 @@
+# pt_BR:
+# Definição SQL para índices
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# SQL definition for indexes
+# PostgreSQL Version: 8.0
+# CAUTION: Do not modify this file unless you know what
+# you are doing.
+
+[-- object: ] @{name} [ | type: ] @{sql-object} [ -- ] $br
+
+[CREATE ] %if @{unique} %then [UNIQUE ] %end [INDEX ] @{name} [ ON ] @{table} $br
+
+%if @{index-type} %then
+ $tb [USING ] @{index-type} $br
+%end
+
+$tb ( @{elements} ) $br
+
+%if @{expression} %then
+ $tb (@{expression}) $sp
+%end
+
+%if @{tablespace} %then
+ $tb [TABLESPACE ] @{tablespace} $br
+%end
+
+%if @{condition} %then
+ $tb [WHERE (] @{condition} [)] $br
+%end
+;$br
+
+%if @{comment} %then @{comment} %end
View
28 build/schemas/sql/8.0/language.sch
@@ -0,0 +1,28 @@
+# pt_BR:
+# Definição SQL para linguagens procedurais
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# SQL definition for procedural languages
+# PostgreSQL Version: 8.0
+# CAUTION: Do not modify this file unless you know what
+# you are doing.
+
+[-- object: ] @{name} [ | type: ] @{sql-object} [ -- ] $br
+
+[CREATE ] %if @{trusted} %then [TRUSTED ] %end
+[ LANGUAGE ] @{name}
+
+#%if @{handler} %then
+ $br $tb [HANDLER ] @{handler}
+# %end
+
+%if @{validator} %then
+ $br $tb [VALIDATOR ] @{validator}
+%end
+; $br
+
+%if @{owner} %then @{owner} %end
+%if @{comment} %then @{comment} %end
View
25 build/schemas/sql/8.0/opclass.sch
@@ -0,0 +1,25 @@
+# pt_BR:
+# Definição SQL para classes de operadores
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.
+#
+# en_US:
+# SQL definition for operator classes
+# PostgreSQL Version: 8.0
+# CAUTION: Do not modify this file unless that you know what
+# you are doing.
+
+[-- object: ] @{name} [ | type: ] @{sql-object} [ -- ] $br
+
+[CREATE OPERATOR CLASS ] @{name}
+%if @{default} %then [ DEFAULT ] %end
+
+[FOR TYPE ] @{type} $br
+[USING ] @{index-type}
+[ AS] $br
+
+@{elements}; $br
+
+%if @{owner} %then @{owner} %end
+%if @{comment} %then @{comment} %end
View
69 build/schemas/sql/8.0/operator.sch
@@ -0,0 +1,69 @@
+# pt_BR:
+# Definição SQL para operadores
+# Versão PostgreSQL: 8.0
+# ATENÇÃO: Não modifique este arquivo a não ser que você saiba
+# o que está fazendo.