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

DB properties layout and save order config changed #999

Merged
merged 1 commit into from
Mar 23, 2016

Conversation

Siedlerchr
Copy link
Member

  • Change in CHANGELOG.md described?
  • Changes in pull request outlined? (What, why, ...)
  • Tests green?

Fixes #957 and #958

Fix height of the dialog and add spacing between OK/Cancel Button and border
Changed JComboxBox to editable and removed the unnecessary textfields
Added JCombobox for selecting the fields to apply the selected formatter to
Changed position of Delete Button
Removed IndexOutOfBound Exception when no item is selected

Edit// I just see this PR is #999 ;)


FieldFormatterCleanup action = saveActions.remove(index);
if ((index >= 0) && (index < saveActions.size())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the error message just be logged or is it often the case that the index parameter is given "out of bounds"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is always the case when you click the button and nothing is selected in the ListBox or you just deleted the last entry.
So I thought: Nothing selected/nothing to remove -> Do nothing

@koppor
Copy link
Member

koppor commented Mar 19, 2016

Is it possible to write a simple UI test for it? 😇

Refs #507

@Siedlerchr
Copy link
Member Author

UI-Test, I will try to write one

@Siedlerchr
Copy link
Member Author

Added GUI Test und fixed Checkbox label not displaying correclty

@koppor koppor added component: ui status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels Mar 20, 2016
@tobiasdiez
Copy link
Member

The code looks good, so I give my 👍 for merging if you add a nice looking screenshot 😃

@Siedlerchr
Copy link
Member Author

@tobiasdiez Here you are:
dbproperties

FormBuilder builder = FormBuilder.create().layout(new FormLayout("left:pref, 4dlu, left:pref, 4dlu, pref:grow",
"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 140dlu, pref,"));
setupSortOrderConfiguration();
FormLayout form = new FormLayout("left:pref, 4dlu, left:pref, 4dlu, pref:grow",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the grow to the third column? Now, the browse button is resized. better if the text field is resized.

@Siedlerchr
Copy link
Member Author

@oscargus
I tried to fix this, but I could not get the damn JList resized horizontally or vertically. I tried around a lot.
The code for this is located in FieldFormattersCleanUpPanel

From this one it sounded very simple:

http://alvinalexander.com/java/edu/jgoodies-formlayout-grow-fill/3-fixing-jgoodies-formlayout-sizing.shtml
Edit// This is how it scales after my fix
dbpropertiesresized

@oscargus
Copy link
Contributor

oscargus commented Mar 22, 2016 via email

@oscargus
Copy link
Contributor

@Siedlerchr : I think it is good to go, so please rebase and it can be merged.

(I reserve the right to fix/change(?) the scaling at some stage. :-))

@Siedlerchr
Copy link
Member Author

@oscargus Okay, otherwise I would have looked at the GUI resizing in more detail the next days

@oscargus
Copy link
Contributor

@Siedlerchr Up to you. I just wasn't sure what the status of the PR was and was thinking of merging it (if it was possible). Feel free to look at the resizing. 👍

@oscargus oscargus removed the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Mar 23, 2016
… border

Changed JComboxBox to editable and removed the unnecessary textfields
Added JCombobox for selecting the fields to apply the selected formatter to
Changed position of Delete Button
Removed IndexOutOfBound Exception when no item is selected
@Siedlerchr
Copy link
Member Author

@oscargus As I just rebased it on the master I would suggest merging it for once now, so that the biggest changes (e.g. the Comboxes) are into it.
The resizing are only some minor things. I will try to experiment with them in the next days and release it then as a new pr.

@oscargus oscargus merged commit 9be805e into JabRef:master Mar 23, 2016
@Siedlerchr Siedlerchr deleted the dbLayout branch April 3, 2016 16:31
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.

4 participants