Changeset 251
- Timestamp:
- 05/27/07 17:33:58 (2 years ago)
- Files:
-
- trunk/src/leds/CodeEdit.d (modified) (2 diffs)
- trunk/src/leds/CodeView.d (modified) (4 diffs)
- trunk/src/leds/Project.d (modified) (3 diffs)
- trunk/src/leds/ProjectTarget.d (modified) (4 diffs)
- trunk/src/leds/ProjectTargetUI.d (modified) (4 diffs)
- trunk/src/leds/Scintilla.d (modified) (2 diffs)
- trunk/src/leds/SimpleCodeEdit.d (modified) (3 diffs)
- trunk/src/leds/SourceViewEdit.d (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/leds/CodeEdit.d
r250 r251 27 27 public: 28 28 29 public interface EditMark 30 { 31 void setVisible(bool setting); 32 bool getVisible(); 33 bool getDeleted(); 34 char[] getName(); 35 //GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark); 36 bool getLeftGravity(); 37 } 38 29 39 /** 30 40 * This defines a code editor inteface for leds. … … 360 370 void hideLines(int line , int lastLine); 361 371 int getLineVisible(int line); 372 373 void grabFocus(); 362 374 363 375 //SCI_LINEDOWN trunk/src/leds/CodeView.d
r250 r251 23 23 module leds.CodeView; 24 24 25 debug = saveFile;25 //debug = saveFile; 26 26 27 27 private: 28 import leds.FileView; 29 30 private: 31 import leds.CodeEdit;28 29 private import leds.FileView; 30 31 private import leds.CodeEdit; 32 32 33 33 import glib.Spawn; … … 1259 1259 } 1260 1260 findText(selected,backwards); 1261 codeEdit.grabFocus(); 1261 1262 } 1262 1263 … … 1419 1420 void grabFocus() 1420 1421 { 1421 codeEdit.g etWidget().grabFocus();1422 codeEdit.grabFocus(); 1422 1423 } 1423 1424 … … 2741 2742 * @return 2742 2743 */ 2743 b iteditUpdateUI()2744 { 2745 //printf("CodeView.editUpdateUI \n" );2744 bool editUpdateUI() 2745 { 2746 printf("CodeView.editUpdateUI \n" ); 2746 2747 userAllowClose = false; 2747 2748 if (!inChange ) trunk/src/leds/Project.d
r242 r251 777 777 static class BeepCompiler : Compiler 778 778 { 779 this( char[] project="Compd", char[] target="compd")780 { 781 super( project, target);779 this(bool usePhobos, char[] project="Compd", char[] target="compd") 780 { 781 super(usePhobos, project, target); 782 782 } 783 783 … … 817 817 private void setupCompiler(ProjectTarget target) 818 818 { 819 compiler = new BeepCompiler( );819 compiler = new BeepCompiler(target.runtime == "phobos"); 820 820 char[] baseSrc = target.getBaseDir.toString(); 821 821 compiler.addArg("-I"~baseSrc); … … 830 830 foreach (String arg ; target.linkLibraries ) 831 831 { 832 foreach ( String lib ; arg.split )832 foreach ( String lib ; arg.split() ) 833 833 { 834 834 compiler.addArg(lib.toString()); 835 835 } 836 836 } 837 838 foreach ( String arg ; target.versionTags ) 839 { 840 compiler.addArg("-version="~arg.toString()); 841 } 842 837 843 838 844 if ( target.exec ) trunk/src/leds/ProjectTarget.d
r230 r251 129 129 bit lib; 130 130 bit staticLib; 131 String runtime; 132 bit runtimePhobos; 133 bit runtimeTango; 134 131 135 bit cFlag; 132 136 bit dFlag; … … 159 163 //srcdirs = new String(); 160 164 baseDir = new String(); 165 runtime = new String("phobos"); 161 166 linkerFlags = new String(); 162 167 linkCommand = new String(); … … 411 416 case "versionTags": 412 417 target.versionTags ~= getWords(tokens); 413 //printf("ProjectTarget.setTargets versionTags %.*s \n", String.join(target.versionTags,"<+>").toString()); 418 printf("ProjectTarget.setTargets versionTags %.*s \n", String.join(target.versionTags,"<+>").toString()); 419 break; 420 421 case "runtime": 422 target.runtime = tokens[0].dup; 414 423 break; 415 424 … … 457 466 ~ "\n+ lib:" ~ getString(target.lib) 458 467 ~ "\n+ staticLib:" ~ getString(target.staticLib) 468 ~ "\n+ runtime:" ~ target.runtime 459 469 ~ "\n+ -c:" ~ getString(target.cFlag) 460 470 ~ "\n+ -d:" ~ getString(target.dFlag) trunk/src/leds/ProjectTargetUI.d
r242 r251 502 502 addPUI("lib"); 503 503 addPUI("staticLib"); 504 addPUI("runtime"); 504 505 addPUI("basedir"); 505 506 addPUI("srcdirs"); … … 700 701 props.set("lib", target.lib); 701 702 props.set("staticLib", target.staticLib); 703 props.set("runtime", target.runtime); 704 702 705 props.set("srcdirs", target.srcdirs); 703 706 props.set("basedir", target.baseDir); … … 776 779 target.lib = props.get("lib", target.lib); 777 780 target.staticLib = props.get("staticLib", target.staticLib); 781 target.runtime = props.get("runtime", target.runtime); 782 target.runtimePhobos = props.get("runtimePhobos", target.runtimePhobos); 783 target.runtimeTango = props.get("runtimeTango", target.runtimeTango); 784 778 785 target.srcdirs = props.get("srcdirs", target.srcdirs); 779 786 target.baseDir = props.get("basedir", target.baseDir); … … 850 857 props.add(PropsTypes.YES_NO, "exec","", "exec","","Target.", "Select the type of target\nThis can be a library or an executable"); 851 858 props.add(PropsTypes.YES_NO, "lib","", "lib","","Target."); 852 props.add(PropsTypes.YES_NO, "staticLib","", "staticLib","","Target."); 859 props.add(PropsTypes.YES_NO, "staticLib","", "static Lib","","Target."); 860 861 props.add(PropsTypes.LIST, "runtime", "phobos:phobos:tango", "Runtime","",""); 862 863 props.add(PropsTypes.YES_NO, "runtimePhobos","", "runtime phobos","","Target."); 864 props.add(PropsTypes.YES_NO, "runtimeTango","", "runtime tango","","Target."); 865 853 866 props.add(PropsTypes.MULTY_DIRECTORY, "srcdirs","", "sources","","Source.", "Select the directories that contain your sources\nor the *.d modules to include"); 854 867 props.add(PropsTypes.TEXT, "basedir","", "basedir","","Source.", "This is the base directory for you target"); trunk/src/leds/Scintilla.d
r250 r251 1657 1657 private import gtkc.gobject; 1658 1658 1659 public class ScintillaMark : EditMark 1660 { 1661 void setVisible(bool setting) 1662 { 1663 } 1664 1665 bool getVisible() 1666 { 1667 return true; 1668 } 1669 1670 bool getDeleted() 1671 { 1672 return false; 1673 } 1674 1675 char[] getName() 1676 { 1677 return ""; 1678 } 1679 1680 //GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark); 1681 bool getLeftGravity() 1682 { 1683 return true; 1684 } 1685 1686 } 1687 1659 1688 public: 1660 1689 class Scintilla : Container , CodeEdit … … 2806 2835 // return getColor(new String(name), def); 2807 2836 //} 2837 2838 void grabFocus() 2839 { 2840 getWidget().grabFocus(); 2841 } 2808 2842 2809 2843 } trunk/src/leds/SimpleCodeEdit.d
r250 r251 100 100 bit userListSelectionSignals; 101 101 102 import gtkc.gobjecttypes; 102 103 103 104 /** … … 970 971 } 971 972 973 void grabFocus() 974 { 975 view.grabFocus(); 976 } 972 977 } 973 978 … … 1576 1581 return true; 1577 1582 } 1583 1584 1578 1585 1579 1586 }
