From: <ma...@us...> - 2003-11-20 01:28:09
|
Update of /cvsroot/sharedaemon/ui-wx/doc In directory sc8-pr-cvs1:/tmp/cvs-serv31500/doc Modified Files: Source Log Message: Renamed xMule* files to wxInterface*, renamed xMuleGUI class to wxInterface, xMuleDlg to CMainFrame and changed all xmule2 stuff in source to wxInterface. Index: Source =================================================================== RCS file: /cvsroot/sharedaemon/ui-wx/doc/Source,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Source 6 Sep 2003 12:14:23 -0000 1.8 +++ Source 20 Nov 2003 01:27:26 -0000 1.9 @@ -1,8 +1,8 @@ Source Code Documentation ************************* -Most dialog controls are in xMuleGUI_wdr.cpp file, which is generated by -wxDesigner. To make modifications, you need to open the file xMuleGUI.wdr +Most dialog controls are in wxInterface_wdr.cpp file, which is generated by +wxDesigner. To make modifications, you need to open the file wxInterface.wdr with wxDesigner and export c++ code. Most icons are also in the same file, make modifications with wxDesigner in the Bitmap Lists section. @@ -43,12 +43,12 @@ We use CMListCtrl class (derived from wxListCtrl) for list controls to keep common events and methods in same place. -* xMuleGUI class +* wxInterface class This class is the topmost class in the class hierarchy. This is called - on application startup and it creates the main dialog frame xMuleDlg. + on application startup and it creates the main dialog frame MainDlg. Any possible command arguments are also handled here. -* xMuleDlg class +* MainDlg class This class handles the main dialog functions, such as Toolbar and Statusbar. Also, displaying any additional dialog pages such as Server page, Search page etc are called from here. @@ -59,7 +59,7 @@ Few hints on hacking the source: * To add a dialog control: - First open the xMuleGUI.wdr file in wxDesigner, and see if your dialog + First open the wxInterface.wdr file in wxDesigner, and see if your dialog is in there. If yes, you'r lucky - refer to wxDesigner documentation on further information. @@ -77,12 +77,12 @@ columns count (this should be automated at some point). * To add toolbar button: - Go to xMuleDlg.cpp, function CreateMyToolBar(), and add your button + Go to MainDlg.cpp, function CreateMyToolBar(), and add your button there. Then also add an event handler for your new button, and a function to handle that event. * To change images (any): - Most images are (at current point) stored in xMuleGUI_wdr.cpp file + Most images are (at current point) stored in wxInterface_wdr.cpp file which is generated by wxDesigner - use wxDesigner to add your image. But I'm working on removing all images from the file and moving them to src/images/default dir to make image changing easier and allow |