File: DEVELOPERS

package info (click to toggle)
pgadmin3 1.22.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 74,488 kB
  • sloc: cpp: 195,064; ansic: 20,444; sh: 5,119; pascal: 1,120; yacc: 927; makefile: 516; lex: 421; xml: 126; perl: 40
file content (55 lines) | stat: -rw-r--r-- 1,710 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
pgAdmin Development
===================

The pgAdmin developers mailing list is pgadmin-hackers@postgresql.org

For further information about pgAdmin's developement, please see the website:

http://www.pgadmin.org/development/


Developer notes
===============

Class naming conventions
------------------------

foo represents an object of type Foo
fooFactory creates foos
fooCollection is a collection of foos
fooCollectionFactory creates a fooCollection

fooObject is an object that resides under/in foo
fooObjCollection is a collection of fooObjects

fooObjFactory creates fooObjects


To add actions to the main window (frmMain)
--------------------------------------------

- create the frmXXX class that will render the new function.

- create an actionFactory (or contextActionFactory, if the action will display
  in context menus too) derived factory for each action to be performed, and 
  register it in frmMain::CreateMenus(). Never touch menu.h, or anything for 
  that. Easy examples are frmGrantWizard or frmEditGrid.

   - Implement CheckEnable() for each factory, checking the current object if 
     the action applies.
     
   - Implement StartDialog(), which brings up the dialog.

Following this, you should be able to add new actions on objects by just adding
the source and registering the new menu in frmMain.cpp. If you think you need 
to modify more files, you're probably wrong.


To add objects to the object tree
---------------------------------
- Implement the class with proper hierarchy. pgCast and dlgCast are simple 
  examples. 
  
- instantiate a collection in the pgXXX object where it should be located 
  under.