]> git.saurik.com Git - wxWidgets.git/blob - docs/motif/todo.txt
More Motif changes (colour/font stuff)
[wxWidgets.git] / docs / motif / todo.txt
1 wxMotif TODO
2 ------------
3
4 Updated: 20/10/98
5
6 -------------------------------o-------------------------
7
8 General comment: see the following site for useful Motif widgets.
9 ftp://ftp.x.org/contrib/widgets/motif
10
11 Also, grep for TODO comments in source.
12
13 High Priority
14 -------------
15
16 - Work out why XFreeFont in font.cpp produces a segv. This is
17 currently commented out, which presumably causes a memory leak.
18
19 - Also work out why wxWindow::SetFont causes the widget to be shrunk
20 to fit its text, in dialogs. Uncomment the SetFont implementation and pop
21 up a dialog, e.g. an About box. Widgets are arranged
22 incorrectly. Seems to be OK for non-dialog panels, once the
23 size has been restored after the font setting.
24 In fact it seems OK for dialogs now!!! Weird.
25
26 - ChangeFont should have an extra arg, to allow for not resizing
27 the window back to the original size after setting the font.
28 Also don't call SetFont from constructor, assign the font and
29 call ChangeFont so we can pass FALSE if the size has been passed
30 as the default (which means: wxWin should choose an appropriate
31 size, so Motif should expand/contract the widget as appropriate).
32
33 - Colour setting in widgets (almost done).
34
35 - Implementation of OnEraseBackground. How? Call OnEraseBackground
36 just before OnPaint? Will duplicate Xlib's own erase of the background.
37 However, this is usually OK, because the default wxWindow::OnEraseBackground
38 can do nothing (SetBackgroundColour will make the background look OK).
39 And if a custom OnEraseBackground uses the same colour as the window
40 background, no flicker will be seen. If it does something else, such as
41 painting a tiled bitmap, then a slight flicker might be seen unless
42 X can be persuaded not to repaint the window background by default.
43
44 - wxSpinButton
45
46 - A generic version of wxNotebook that can be used in wxMotif and
47 other toolkits that don't have a native control. Perhaps use wxTab as a
48 starting point.
49
50 - Tidy dialogs such as the colour and font selectors.
51
52 - Use generic wxTreeCtrl, wxListCtrl: debug and enhance these.
53
54 - Find out why modal dialogs give a grab warning.
55
56 - wxSystemSettings. Eventually, should have control panel-like utility
57 to change colours/fonts but meanwhile should maybe read them
58 from a file.
59
60 - wxThread (hopefully, similar to wxGTK)
61
62 - Miscellaneous events.
63
64 - Write makefiles for all samples and utilities.
65
66 - Create some samples for testing.
67
68 Low Priority
69 ------------
70
71 - Better makefile system that can put objects in different dirs.
72 Use wxGTK config system? It's really complex to debug and
73 doesn't offer a way of compiling apps outside the wxWin
74 hierarchy.
75
76 - Extra wxBitmap formats: PNG, BMP. Could use old wxWin 1.68
77 wxImage code (derived from XV) for BMP/GIF but it's very bloated. However,
78 when implemented as extra bitmap handlers, the code won't be linked
79 unless needed.
80
81 - Print/preview framework in print.cpp (see wxGTK).
82
83 - Enhance event handling such that you override e.g. left-click
84 and unless you call the base OnMouseEvent, the click won't be
85 sent to the button. Required for Dialog Editor.
86
87 - Get Dialog Editor working under Motif.
88
89 - New wxHelp version: try using the XmHTML widget at
90 http://www.xs4all.nl/~ripley/XmHTML/
91
92 - Optimize screen refresh for non-native widgets, e.g. wxWindow
93 created with Create(), using technique in flicker patch for 1.68
94 (see JACS for latest patch).
95
96 - Copy and paste, drag and drop. Use a standard X drag
97 and drop standard - see http://www.cco.caltech.edu/~jafl/xdnd/
98 or use Motif drag and drop as described here:
99 http://www.motifzone.com/tmd/articles/DnD/dnd.html
100
101 - Optimize colour management so we don't get clashes when e.g.
102 Netscape is running. See:
103 http://www.motifzone.com/tmd/articles/John_Cwikla/index.html
104
105 - wxRCConfig (a config class using X .rc files). Could simply
106 implement it in terms of current wxGet/WriteResource functions.
107
108 - wxCheckBoxList
109
110 - wxBitmapCheckBox, wxBitmapRadioButton
111
112 - Reimplement combobox using Lesstif's widget (avoiding GPL'ed
113 widget currently used).
114
115 - Write generic wxDirDialog (directory selector)
116
117 - Use native Motif dialogs for wxMessageBox
118
119 - Miscellaneous classes e.g. wxJoystick (identical to GTK's one for
120 Linux)
121
122 - Blit scaling
123
124 - Could eventually alter the MDI widgets to be more Windows-like
125 -- currently it's half-hearted.
126
127 - Accelerators
128