Questions tagged [gui]
In computing a graphical user interface (GUI, sometimes pronounced gooey) is a type of user interface that allows users to interact with electronic devices with images rather than text commands. GUIs can be used in computers, hand-held devices such as MP3 players, portable media players or gaming devices, household appliances and office equipment.
250
questions
0
votes
1
answer
43
views
Is it a good approach to encapsulate View and Model inside a dedicated Widget?
Lets say you have a ItemView and a ItemModel.
Would it make sense to have a ItemWidget encapsulating those two, so code using ItemWidget don’t have to deal with ItemView and a ItemModel specifics?
...
4
votes
3
answers
565
views
What was the first company to make a drag-and-drop GUI designer like Visual Basic?
When Visual Basic came out, it was revolutionary for its drag-and-drop GUI designer, allowing users to quickly create GUI programs. This video shows Bill Gates introducing it in 1991. Did drag-and-...
2
votes
1
answer
174
views
How are windows at program startup called?
Often, when a program is starting it shows a modal window which has program logo, copyright information etc. For example, NetBeans shows the following window at startup:
Could anyone say how such ...
-1
votes
1
answer
158
views
development environment for C++ GUI applications
I am currently developing some C++ GUI application using wxWidgets (although the GUI framework doesn't really matter here) and thus far have been developing this on my own, which was working well. ...
2
votes
1
answer
107
views
MVC: Should View get strings of GUI components directly or should the controller pass strings to View?
I have an MVC application in Java with GUI components in a View class. The GUI has to support two languages, so texts on buttons etc. depend on which language was set at start up. Strings are in ....
2
votes
1
answer
886
views
What is a Reactive User Interface? Where did the term come from?
I heard about Reactive User Interfaces in a React course. I would like to understand the concept, but was unable to find reliable sources. Best I could find is that they are some sort of declarative ...
2
votes
3
answers
832
views
How do you achieve encapsulation while "separating view and business logic"?
I've been trying to get a better understanding of OOP (I'm not the biggest fan of it, but I still want to understand it).
One of the core principles of OOP is encapsulation - you're supposed to ...
0
votes
2
answers
150
views
How does Matplotlib / other GUIs work to draw the individual pixels?
So I wondered how matplotlib (or equivalents) makes graphics appear on your screen.
I found that matplotlib does not do the drawing itself; instead it is built on TKinter, which is built on TK, which ...
1
vote
2
answers
164
views
Should selected person be part of my application layer? (MVP pattern)
Consider the following GUI screen:
When user selects a person from PersonListView, EditPersonView should show person's first name and last name and allow the user edit. So, I end up with the ...
2
votes
2
answers
345
views
MVC: Should my domain model look like this?
Consider the following GUI screen (Java Swing) with a list of persons where the user can select a person and delete it.
According to MVC, the view observes (observer pattern) the model and updates ...
0
votes
2
answers
221
views
Is there any benefit testing only with mocks/fakes/doubles?
Say I want to test the behavior of the GUI while I follow a PassiveView approach. I also use the command pattern to handle the actions of the user. So given a PersonView and a PersonService with a ...
1
vote
2
answers
2k
views
Best way to access (grand grand) parent element in gui
I'm creating a multi window gui program, in c++ with Qt Widgets. I do have many custom gui elements, which usually are c++ classes inherited from QWidget or other Qt elements. When foo is the main ...
3
votes
1
answer
399
views
DRY principle vs decoupling (business from GUI)
Say I have a business model called Vehicle. Vehicle has many fields but to keep it simple say it looks like:
public class Vehicle {
String ownerName;
String brand;
FuelType fuelType;
}...
3
votes
1
answer
153
views
Am I using the correct terminology for my project?
I'm currently the sole programmer for a project. We are creating a handheld device that includes a screen to display live data and video feed, push buttons to control the program's functionalities, ...
31
votes
9
answers
10k
views
"Dead programs tell no lies" in the context of GUI programs
In The Pragmatic Programmer, the authors write:
One of the benefits of detecting problems as soon as you can is that you can crash earlier, and crashing is often the best thing you can do. The ...