Changeset 287
- Timestamp:
- 10/03/09 06:22:02 (3 years ago)
- Files:
-
- trunk/INSTALL (modified) (2 diffs)
- trunk/leds.compd (modified) (1 diff)
- trunk/src/leds/CodeEditFactory.d (modified) (1 diff)
- trunk/src/leds/CodeView.d (modified) (7 diffs)
- trunk/src/leds/Project.d (modified) (3 diffs)
- trunk/src/leds/ProjectError.d (modified) (3 diffs)
- trunk/src/leds/SourceViewEdit.d (modified) (2 diffs)
- trunk/src/leds/Workspace.d (modified) (6 diffs)
- trunk/src/leds/WrapGtk.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/INSTALL
r234 r287 2 2 Building leds: 3 3 4 a) Pre-requisites. 5 *build dool 6 svn co http://svn.dsource.org/projects/dool/trunk/ dool 7 (READ INSTALL) - build 4 a) Pre-requisites. 5 apt-get install gdc libgtk2.0-dev 6 7 *build compd * dool 8 #cd /usr/src 9 #svn co http://svn.dsource.org/projects/dool/trunk/ dool 10 #cd dool 11 #sh compd.gdc.sh 12 #compd build.compd 13 #cd .. 8 14 9 15 *build dantfw 10 svn co http://svn.dsource.org/projects/dantfw/trunk/ dantfw 11 (READ INSTALL) - build 16 #svn co http://svn.dsource.org/projects/dantfw/trunk/ dantfw 17 #cd dantfw 18 #compd build.compd 19 #cd .. 20 12 21 *build GtkD (gtk bindings) 13 svn co http://svn.dsource.org/projects/dui/trunk/gtkD 14 (READ INSTALL) - build 22 *** SEE THIS IS SOMETHING BREAKS http://www.dsource.org/forums/viewtopic.php?t=4661 23 svn co http://svn.dsource.org/projects/gtkd/trunk gtkd 24 #cd gtkd 25 #compd gtkd.compd 26 #compd gsv.compd 27 #cd .. 28 29 * download leds 30 svn co http://svn.dsource.org/projects/leds/trunk leds 15 31 16 32 … … 20 36 ** on debian this is the libgtk2.0-dev package. 21 37 22 #cd src/resources23 #wget http://prdownloads.sourceforge.net/scintilla/scintilla17 2.tgz24 #tar xvfz scintilla17 2.tgz25 #cp scintilla.mak.1.7 2scintilla/gtk/makefile38 #cd leds/src/resources 39 #wget http://prdownloads.sourceforge.net/scintilla/scintilla178.tgz 40 #tar xvfz scintilla178.tgz 41 #cp scintilla.mak.1.7.8 scintilla/gtk/makefile 26 42 #cd scintilla/gtk 27 43 #make trunk/leds.compd
r276 r287 10 10 -lgtkd 11 11 -lgsv 12 - lphobos12 -version=ScintillaOnly 13 13 -c 14 14 -g trunk/src/leds/CodeEditFactory.d
r267 r287 63 63 codeEdit = new SimpleCodeEdit(); 64 64 break; 65 65 version (ScintillaOnly) { 66 } else { 66 67 case "sv": 67 68 codeEdit = new SourceViewEdit(); 68 69 break; 69 70 } 70 71 default: 71 72 codeEdit = new Scintilla(); trunk/src/leds/CodeView.d
r284 r287 176 176 int[] bugLines; 177 177 178 version (DigitalMars) { 178 179 WrapGtk wrapGtk; 179 180 } 180 181 181 182 bool userAllowClose = false; … … 1607 1608 menu.append(new MenuItem("remove '__'",&removeUnderscore)); 1608 1609 menu.append(new MenuItem("one line function protptype",&oneLineFunctionPrototype)); 1610 version (DigitalMars) { 1609 1611 menu.append(new MenuItem("wrap GTK in DUI",&wrapGtkinDUI)); 1612 } 1610 1613 } 1611 1614 … … 1628 1631 int markerID = codeEdit.markerGet(lineNumber); 1629 1632 // writefln("markerID = %s", markerID); 1630 if ( markerID != 0 && cast(SourceViewEdit)codeEdit ) 1633 version(ScintillaOnly) { } else { 1634 if ( markerID != 0 && cast(SourceViewSourceViewEdit)codeEdit ) 1631 1635 { 1632 1636 marginClickMarkersForSourceView(lineNumber); 1633 1637 } 1638 } 1634 1639 1635 1640 if (eventButton.button != 1) … … 2004 2009 2005 2010 } 2006 2011 version (DigitalMars) { 2007 2012 WrapGtk getWrapGtk() 2008 2013 { … … 2036 2041 } 2037 2042 } 2038 2043 } 2039 2044 /** 2040 2045 * looks for the module declaration statement and retrieves the module full name. … … 2995 3000 bool marginClickMarkersForSourceView(int lineNumber) 2996 3001 { 3002 version (ScintillaOnly) { } else { 2997 3003 lineNumber += 1; 2998 3004 writefln("marginClickMarkersForSourceView entry"); … … 3025 3031 } 3026 3032 } 3033 } 3027 3034 return false; 3028 3035 } trunk/src/leds/Project.d
r286 r287 693 693 lineNumber, 694 694 line, 695 ProjectError.ProjErrorType.ERROR);695 leds.ProjectError.ERROR); 696 696 // if ( Leds.leds.getPropValue("popupBuildOutput",true) ) 697 697 // { … … 1075 1075 lineNumber, 1076 1076 line, 1077 ProjectError.ProjErrorType.ERROR);1077 leds.ProjectError.ERROR); 1078 1078 // if ( Leds.leds.getPropValue("popupBuildOutput",true) ) 1079 1079 // { … … 1554 1554 } 1555 1555 1556 public void addProjectError(String fileName, int lineNumber, String message, ProjectError.ProjErrorTypeerrorType)1556 public void addProjectError(String fileName, int lineNumber, String message, int errorType) 1557 1557 { 1558 1558 ProjectError[] moduleErrors; trunk/src/leds/ProjectError.d
r265 r287 27 27 * This class describes an error or messages related to a module file. 28 28 */ 29 30 31 32 public const int NONE = 0; 33 public const int TODO =1; 34 public const int WARNING=2; 35 public const int ERROR=3; 36 37 29 38 public class ProjectError 30 39 { … … 34 43 String message; 35 44 36 public static enum ProjErrorType37 {38 NONE = 0,39 TODO,40 WARNING,41 ERROR42 }43 45 44 46 45 ProjErrorTypeerrorType;47 int errorType; 46 48 47 this(Project project, String fileName, int lineNumber, String message, ProjErrorTypeerrorType)49 this(Project project, String fileName, int lineNumber, String message, int errorType) 48 50 { 49 51 this.project = project; … … 74 76 } 75 77 76 public ProjErrorTypegetErrorType()78 public int getErrorType() 77 79 { 78 80 return errorType; trunk/src/leds/SourceViewEdit.d
r277 r287 25 25 //{; 26 26 27 27 version (ScintillaOnly) { 28 } else { 28 29 private import leds.CodeEdit; 29 30 … … 1161 1162 } 1162 1163 1163 //}1164 } trunk/src/leds/Workspace.d
r274 r287 146 146 147 147 bit showLeftToolbar = false; 148 148 version (DigitalMars) { 149 149 WrapGtk wrapGtk; 150 150 } 151 151 /** 152 152 * the file selection dialog. … … 447 447 menu.append(new MenuItem("Remove \"__\"",&menuClicked,"source.removeUnderscore")); 448 448 menu.append(new MenuItem("One line function prototype",&menuClicked,"source.oneLineFunctionPrototype")); 449 version (DigitalMars) { 449 450 menu.append(new MenuItem("_Wrap GTK in DUI",&menuClicked,"source.wrapGTKInDUI")); 451 } 450 452 } 451 453 … … 1451 1453 return gotoLineDialog; 1452 1454 } 1453 1455 version (DigitalMars) { 1454 1456 public WrapGtk getWrapGtk() 1455 1457 { … … 1460 1462 return wrapGtk; 1461 1463 } 1462 1464 } 1463 1465 public void setFindText(char[] text) 1464 1466 { … … 1699 1701 case "file.save": saveCurrent() ; break; 1700 1702 case "file.saveAs": saveAsCurrent() ; break; 1701 1703 version (DigitalMars) { 1702 1704 case "file.newFromTemplate.DUIGtjWrapFrame" : getWrapGtk.show(); break; 1703 1705 } 1704 1706 1705 1707 case "file.close": closeView(); break; … … 1872 1874 createCodeView(); 1873 1875 break; 1876 version (DigitalMars) { 1874 1877 case "toolbar.duiGtkWrapping" : getWrapGtk.show(); break; 1875 1878 } 1876 1879 1877 1880 case "toolbar.close" : closeView(); break; trunk/src/leds/WrapGtk.d
r274 r287 19 19 20 20 module leds.WrapGtk; 21 21 version (DigitalMars) { // this only works with DMD - due to problems with convert.NewGtWrap in dantfw 22 22 private import gtk.Window; 23 23 … … 46 46 * The code editor and viewer. 47 47 */ 48 49 50 48 51 public: 49 52 class WrapGtk : Window … … 180 183 } 181 184 185 } // end version Digitalmars
