]> git.saurik.com Git - wxWidgets.git/blob - docs/motif/todo.txt
if the wxTextCtrl is empty set by SetInsertionPointEnd to 0 and not to -1.
[wxWidgets.git] / docs / motif / todo.txt
1 wxMotif TODO
2 ------------
3
4 Updated: 8/11/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 We need to:
93 - make a minimal distribution under wx/src/xmhtml, just enough
94 to compile the source.
95 - add XMHTML_C_SRC to src/motif/makefile.unx with the source files
96 listed.
97 - make sure we can compile the sources, passing the correct
98 flags for zlib/png compilation.
99 - make a wxHTMLWindow class from e.g. examples/example_2.c. Should
100 probably make the cache and history facilities part of the class.
101 - add the driver code to src/motif/helphtml.cpp (a frame, toolbar,
102 history list).
103
104 Note that a quicker route to a help system may be to use the
105 code in the contrib dir of XmHTML to control a Netscape session --
106 but Netscape can be a colour resource hog.
107
108 - Optimize screen refresh for non-native widgets, e.g. wxWindow
109 created with Create(), using technique in flicker patch for 1.68
110 (see JACS for latest patch).
111
112 - Copy and paste, drag and drop. Use a standard X drag
113 and drop standard - see http://www.cco.caltech.edu/~jafl/xdnd/
114 or use Motif drag and drop as described here:
115 http://www.motifzone.com/tmd/articles/DnD/dnd.html
116
117 - Optimize colour management so we don't get clashes when e.g.
118 Netscape is running. See:
119 http://www.motifzone.com/tmd/articles/John_Cwikla/index.html
120
121 - wxRCConfig (a config class using X .rc files). Could simply
122 implement it in terms of current wxGet/WriteResource functions.
123
124 - wxCheckBoxList
125
126 - wxBitmapCheckBox, wxBitmapRadioButton
127
128 - Reimplement combobox using Lesstif's widget (avoiding GPL'ed
129 widget currently used).
130
131 - Write generic wxDirDialog (directory selector)
132
133 - Use native Motif dialogs for wxMessageBox
134
135 - Miscellaneous classes e.g. wxJoystick (identical to GTK's one for
136 Linux)
137
138 - Blit scaling
139
140 - Could eventually alter the MDI widgets to be more Windows-like
141 -- currently it's half-hearted.
142
143 - Accelerators
144
145 - Get ODBC classes and sample working.
146