-
Notifications
You must be signed in to change notification settings - Fork 5
/
HACKING
50 lines (36 loc) · 1.18 KB
/
HACKING
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
Here some information for potential developers:
0) source layout
70 chars line length,
2 spaces indent where possible
1a) naming conventions for gtk widgets:
widget shortcut (name in glade and hs source)
menuitemName -> mName
menuName -> menuName
scrolledwindowName -> swName
labelName -> lblName
buttonName -> btnName
entryName -> entryName
dialogName -> dlgName
clipboardName -> cbName
separatorName -> sepName
(h|v)boxName -> (h|v)boxName
dialogActionAreaName -> daaName
hpaned -> hpnName
window -> nameWindow
1b) widget attributes
Until now we prefer
widgetSetAttribute w value
over
set w [ attribute := value ]
or
w `widgetSetAttribute` value
(but I dont know why ...)
2) $ or () ?
lookup functions and guiactions are mainly written in ( ):
doSomeThingWith (dlgSave gui)
doSomeThingWith (name parser)
addAction (btnA gui) (actionHassenichGesehen args gui)
3) Standardnames in functions
gui -> gui-compound
parsers -> parser-liste
parser -> current parser