matthewearl / kpirc Goto Github PK
View Code? Open in Web Editor NEWIRC Client I wrote a while back in (non-generic) Java.
License: GNU General Public License v2.0
IRC Client I wrote a while back in (non-generic) Java.
License: GNU General Public License v2.0
The Settings window (IRC Client -> Settings) should reject invalid values. When an invalid value is entered (triggered by a text box modify, for example) a message should appear at the bottom of the window explaining why the value is invalid and for which field. The Apply and OK buttons should become greyed out.
To implement this the Input and Page nested classes should be moved into their own (public) classes. Input should have a validateValue(SettingValue) method which by default approves all values. The idea being that whoever extends SettingsEditor can also extend Input for settings that can take invalid values. Instantiations of this subclass should be used as Inputs in the SettingsEditor. The addPage() and add addInput() methods of SettingsEditor should be changed to just take a Page or Input respectively and add it to the appropriate list.
validateValue() should return a ValidationResult() (a new class) which either indicates failure with an error string (to be displayed in the Settings window) or success without an error string.
Verifiers for colour values shouldn't be necessary (the picker control cannot return invalid values). The current string settings (nick, user, real name) need verifiers to make sure that they conform to RFC 1459.
For example, when the "default background colour" setting is changed (IRC Client -> Settings -> Colours -> (Change) -> Ok) all text controls that use this variable should redraw.
Interested controls (in the above case text controls which use the default background colour) should register a setting path (e.g. "Irc.defaultBG") with a static method on Settings. They will be called back with a SettingValue when the value is changed.
The text box is given a large computed minimum width which can be greater than the window width, meaning part of the window is invisible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.