The part of the application that users directly interact with. Use this tag for reviews of code that defines how an application's user interface works and looks.
1
vote
1answer
21 views
How to refactor / re-architect the components/state here in ui-router app
https://plnkr.co/edit/bOZW1a9u62W1QA6cYjYj?p=preview
My goal has been to separate the Dashboard states from the Feed state.
...
3
votes
0answers
33 views
Reusable, manipulatable plots
I'm interested in mimicking a simple version of Mathematica's Manipulate function in javascript. This is my first project in javascript, but I was hoping to make a library that I can use to quickly ...
1
vote
1answer
25 views
Navigating menus in automation tests
I am trying to write a method that can find the child item in a menu. The below code works but is not exactly elegant or scaleable. Is there another way to find the path to child menu item that could ...
1
vote
1answer
41 views
Building a UI to fetch list of features and edit them
I am building a UI which fetches a list of features based on an ID and then the user can edit the list of features and save it. The script also build the UI based on the data structure currently hard ...
3
votes
2answers
68 views
Object to return user specified generic types in backend code
The idea is that a user will dynamically edit simple key/value settings that will customize their instance of the application, e.g. the welcome banner text. I am trying to implement everything in a ...
2
votes
1answer
83 views
Setting constraints for dynamic views in iOS
I have an app which uses Stack Views to update its UI depending on the number of pigs. For example below, 1 pig and 4 pigs.
I set up Stack Views in Storyboard and set isHidden to true based on how ...
3
votes
0answers
26 views
Comments on a 'PullableView'
I created a view called PullView which adds a level of interactivity to UI components. PullViews can be pulled sort of like a ...
1
vote
1answer
87 views
Login page without header/footer bars
I'm creating an app where the login page doesn't have the header/footer bars that the pages, after being logged in, would have. I've created an example that works, but I'm unsure if I am using the ...
11
votes
2answers
357 views
English Draughts
The basic UI for my checkers app is complete, so the next step is to come here for review. I have not built my Facade over my F# game library, so some of the type usages are a little strange; this ...
1
vote
0answers
22 views
What does this function appear to do? [closed]
I am reviewing some very old code in our application, which was written by my predecessor's predecessor, in order to debug an issue where an iframe is improperly resizing (the control buttons on top ...
3
votes
0answers
120 views
Adding swipe support to multiple classes
I have implemented swipe functionality using UIPanGestureRecognizer in a project.
What I have done is added PanGesture to ...
3
votes
1answer
112 views
Text-based menu to manipulate a database text file
I am making a program that lets a user manipulate a database (a text file).
In the code I am posting, I show only 2 of the menu choices, namely "createdb" and "deletedb", and a few functions I made ...
0
votes
1answer
52 views
Managing drag in React on-off component
I made a on-off switch to be more fluent in React and added touch functionality to it.
The idea is to have it independent of the state management library/logic, and be easy to import into a project, ...
4
votes
2answers
103 views
TextBoxes for various number types
Is there a way I could somehow have all this classes condensed into one, while keeping the code as clean as possible?
They are all doing essentially the same thing, just for the different number type....
4
votes
3answers
57 views
Textbased User Interface for user and program taking turns
I wrote this program to model interactions between a user and an artificial player, both playing by the same rules (not enforced here for simplicity).
The game played is here is "your next word has to ...
5
votes
3answers
497 views
Digital root computation with benchmarking
I've read this question about computing the digital root of some integer, and wondered how it would look like in Python.
As a reminder,
"If you take the digits of any number and add them together, ...
0
votes
1answer
25 views
HTML-formular with animated input-elements
The idea is to improve the usage of larger formulars. Done by adding a little animation to the input-elments.
When one of the textboxes is clicked or focussed via tab appears a colored border. ...
4
votes
3answers
272 views
Swing GUI in Java
I'm learning Java at the moment and I'm currently trying to make a GUI using Swing. I've done some reading and people usually prefer and advice to use composition instead of inheritance of e.g. ...
3
votes
0answers
68 views
Kivy language code of my Vehicle Details app
So I've written my first android app in kivy.
This app takes a Vehicle License Number as input from the user and submits it to a sites and shows the results from the site.
The complete Source Code ...
1
vote
1answer
151 views
Web Page Inspector
I wrote a small JavaFX Application to inspect Javascript within HTML pages. It loads and browses sites, shows the HTML source, shows an overview of the text of a page, provides a simple Javascript ...
6
votes
1answer
206 views
UserForm to handle Date Inputs (Day,Month,Year)
Some fraction of a follow-up to The half-finished version.
What's changed: Added year as well as Day/Month. Added input Validation. Implemented a poor man's ...
6
votes
1answer
306 views
Populating Day/Month Selections in UserForm Controls
So I have a simple userform where I require the User to input the target month, and the day to analyse data up to.
This is just a small section of code to govern populating the month selection and ...
3
votes
2answers
37 views
OOP, FP and IMP condensed in Rock, Paper and Scissors
Rock Paper and Scissors is a pretty basic program.
The reason I wrote this program is because I wanted to see what a small script that used all of the main programming paradigms looked like.
My code ...
4
votes
1answer
341 views
Giveth me thy easier user input in C++ - follow up
I've decided to take some of the many suggestions for improvement on my previous question, Easier user input in C++, and actually get it to work as expected. This time around, a few things are ...
33
votes
5answers
3k views
Easier user input in C++
A more proper version of this utility can be found at the following link here: Giveth me thy easier user input in C++ - follow up.
I've always been a little bothered by the fact, that in order to get ...
2
votes
1answer
49 views
Should a style sheet object know about its target?
Here are three classes in my project. They work as expected. What I'm not sure of is the passing of the target into style sheet. What is going on is that I want the matrix as a whole to be left-...
2
votes
1answer
2k views
Monoalphabetic Cipher in Java With GUI
An easy, terribly written but working, Caeasar (Monoalphabetic) cipher implementation, with a GUI (Graphical User Interface).
Cipher.java
...
1
vote
1answer
24 views
Java Loops and UIs
I've always found coding UIs in Java very inefficient, and hopefully this is because of my misunderstanding. Here's a great example.
I have a UI class which is returning the String "Hours", which is ...
3
votes
1answer
731 views
Set a font for a UITextView if the font is nil or not equal to desired font
Main question
I am setting a font for a UITextView that is a subview in a custom view. I only set it if the user didn't specify the font size in the Interface Builder.
I have the following working ...
4
votes
2answers
2k views
Removing a subview with a subview from a UIView without memory leaks
I made a custom UITextView for vertical Mongolian writing. It is made by subclassing UIView, which has a subview called ...
6
votes
2answers
145 views
CommandBars, Buttons and Commands: Take 2
Following-up on CommandBars, Buttons and Commands: Cleanup is on the menu, I decided to try a more ambitious approach, as suggested in Nikita's answer. It works, but there are a number of "gotchas" ...
14
votes
2answers
163 views
CommandBars, Buttons and Commands: Cleanup is on the menu
One of the biggest pain point in the entire rubberduck code base, is the way commandbar menus and menu items are created and wired up - something needs to be done to straighten that up, and while I ...
3
votes
0answers
56 views
Multiple select widget in CoffeeScript
I created a widget to handle multiple selections in CoffeeScript. There's a working attached snippet that uses the compiled JavaScript (Stack Snippets don't support CoffeeScript), which is available ...
3
votes
1answer
33 views
user_interface module
As writing code to handle error-checked input or to present functions to execute to the user is boring and error-prone, I wrote a module to automate these tasks:
...
6
votes
2answers
251 views
Heavily nested anonymous classes for Swing UIs
Oftentimes, I write small little dialogs or forms without a UI builder. I usually find myself having a lot of "container" panel variables that just float around. I found this leads to time-wasting ...
0
votes
0answers
92 views
Inline editing for modifying field that requires supplementary inputs (such as password)
I've been using x-editable, but recently needed to perform in-line editing, but required the user to enter one or more additional fields. For instance, to change ...
6
votes
1answer
283 views
Button presses counter
I'm moving on to graphics, picking Pyglet and Cocos2D. This is my first program in Python with GUI.
Introducing:
Two distinct high definition button sprites
Satisfying high quality button pressing ...
4
votes
0answers
932 views
Reducing complexity in NSView event handling code in Swift
My Cocoa event code always tends to descend into madness, I need to advice on how to reduce complexity. I've spend a few hours putting this example together.
CanvasView is a layer hosting subclass of ...
4
votes
2answers
234 views
TextField Validation for Teleport Feature in Game
I've implemented a teleport feature for my game and I would like some feedback on the way that I validate the user input. I am using the libGDX library.
When the player clicks the Teleport Menu ...
1
vote
1answer
106 views
7
votes
1answer
243 views
Implementation of Hangman in Java
Here's an implementation of Hangman that I've written that uses a basic GUI. As I am new to Java, please let me know of any improvements I can make to my coding style. Thanks for your help.
...
5
votes
1answer
693 views
Class-based user input validation
Having contributed to this Community Wiki on StackOverflow regarding validating user input, I thought I'd finally sit down and write something more robust to do these kinds of tasks. I wanted ...
2
votes
0answers
426 views
Graphical Flowchart Programming
This is an incomplete implementation of something similar to scratch. It's incomplete because right now, I'm working purely on the user interface.
I used Swing to make the basics of it, but then ...
3
votes
1answer
465 views
HMSegmentedControl react to tapping on currently selected segment
I'm using HMSegmentedControl, an open-source UISegmentedControl subclass. I'm trying to react to the user tapping on the currently selected segment. HMSegmentedControl only supports reacting to a ...
5
votes
1answer
297 views
C++ line-editing micro-library
Working on a project, I've taken to adapting the linenoise line editing library for my own use, among other things, rewriting it using C++. The idea is to separate my changes and updates into a new ...
1
vote
1answer
1k views
Backbone/Marionette form with list of inputs
Using Backbone/Marionette, I'm building a simple widget that looks like:
I'm hoping to get some feedback on my approach because I think I may be doing it wrong.
jsfiddle
...
2
votes
1answer
695 views
Super simple way of generating dynamic interfaces in Python both CLI and Web GUI
I want to know if this is a good idea. It is definitely only a proof of concept at this point, but if it's a good idea I would pursue the development into a more mature product.
There are three ...
15
votes
1answer
4k views
IBDesignable UICheckbox
A more up-to-date version of this control can be found on GitHub.
One UI control that has always been mysteriously missing from Xcode's interface builder is some sort of checkbox. ...
0
votes
1answer
6k views
Correct Implementation of Custom UIView into ViewController Programatically
I am familiar with using scoreboards to construct UI elements in Xcode, but I am only beginning to learn how to make UI programmatically (with out storyboard).
I wanted to know if this is the correct ...
2
votes
1answer
34 views
Isolating testable portions in rendered html, without imposing on content or formatting
I'm unit testing some webpages and I'm trying to figure out how to best isolate the portions that need to be tested. There are two goals: Don't impose on the webpage's content or format, and be as ...