Git Product home page Git Product logo

propeditor's Introduction

PropEditor program as of the end of week 5 (GUI programming with all of week 5's event handling)

Running the program: 

java net.widgetron.propeditor.PropEditorView


(run from the directory that SuggestionFile.txt is in, build.prop files are now openable with the file opening dialog)

I have included an example build.prop and SuggestionFile.txt in this zip. 

Main screen: 
Clicking 'Open File' button opens a file dialog. Opening anything other than a readable *.prop file (based on extension only at this point) will result in an error. 
	
Editor screen: 
	TODO: possibly split property and value to right/left justified; wrap?
Clicking on a prop will give a Suggestion window of values for the clicked property; the suggestion file is less sparse at this time but many properties have only one suggestion. 
Clicking cancel will return to the Main screen. 
Clicking save saves the file under its current name, saveas opens the file dialog to save. there is no name checking on the save (so you can saveas build.prop.bak). Once 'saveas' is used and a different filename is chosen, 'save' will save to that file. 

Suggestion screen: 
Clicking cancel will return to the Editor screen; 
Clicking a suggested VALUE will change the selected entry and return to the Editor screen; Selecting "Manual entry" will pop up a manual entry dialog.
Clicking a suggested NAME (from Add in editor) will suggest values per above for the new property. 


TODO: actually validate input, I'm still researching what is and isn't valid; add error messages for invalid input
	INWORK -- error message is present but I need to work on the RegEx still; all names/values are currently accepted
valid for propvals: 
	comma, periood, space, alphanum, slash, colon
	invalid: hash, =
valid for propnames:
	alphanum, period, underscore
	invaldi: hash, =, everything else?

TODO: move some of the logic back into PropEditor from both PropFileView and PropFile. 
	INWORK

There's a 6th class called SuggestionFileMaker that uses PropFile and SuggestionFile to add any new Property names or values to the SuggestionFile.txt

TODO: clean up commented out code -- INWORK, mostly done

propeditor's People

Contributors

psychoi3oy avatar

Stargazers

MAI PHƯƠNG TUẤN avatar coder avatar Bootez avatar  avatar

Watchers

 avatar coder avatar

Forkers

bootez

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.