Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced QLineedit by QComboBox for frequency input (for phasor and AC temporal diagram dialogs) #723

Conversation

andresmmera
Copy link
Contributor

The aim of this PR is to replace the QLineEdit by a QComboBox as the frequency input widget at the dialog window in the phasor and AC temporal diagrams. This way, the QCombo shows only the available frequencies.

In order to do that, a function named 'LoadAvailableFreqs()' has been added to diagramdialog constructor. The purpose of this function is to explore the content of the 'acfrequency' field of the current dataset and, finally, it returns that data as a QStringList which is used to feed the QComboBox.

'LoadAvailableFreqs()' is called at the constructor but also when the click() event of the 'ChooseData' combo is triggered.

diagramdialogcombo

Screencast here

In this commit it was replaced the QLineEdit for the frequency input at
the diagram dialog of the phasor diagram by a QComboBox showing only the
available frequencies.

In order to do this, a function named 'LoadAvailableFreqs()' was added
to diagramdialog constructor. The purpose of this function is to look
for the content of the 'acfrequency' field the current dataset and
returns that data as a QStringList which feeds the QComboBox.
'LoadAvailableFreqs()' is called at the constructor but also when the
click() event of the 'ChooseData' combo is triggered.
@guitorri
Copy link
Member

guitorri commented Oct 7, 2017

Looking good.
Do you have a youtube channel? You could put your screencasts online to showcase new features 😄

@andresmmera
Copy link
Contributor Author

lol, no. I'm just doing that to prove myself I checked things.
Feel free to use these videos if you want :-)

@in3otd
Copy link
Contributor

in3otd commented Oct 8, 2017

@andresmmera , yep, I also thought you should put those screencasts to Youtube 😁

@andresmmera
Copy link
Contributor Author

Seriously?
hahaha, this could be the beginning of the official Qucs Youtube channel 😂

@guitorri guitorri merged commit 01966e3 into Qucs:develop Oct 9, 2017
@guitorri
Copy link
Member

Actually, these diagrams are supposed to show results for multiple frequencies at the same time.
So instead of a QComboBox, we need perhaps a QListWidget from which we can select one or more available frequencies.
There are a few more things that need fixing. I will add this one to the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants