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

Make search always visible (#15) #67

Merged
merged 8 commits into from
Nov 3, 2016
Merged

Conversation

droidmonkey
Copy link
Member

@droidmonkey droidmonkey commented Oct 29, 2016

Description

Moves the search bar from the database entry view to the toolbar. It is always visible and capable of making searches without an extra button click. The search options were moved into a drop down list on the search icon button. Pressing escape while focused on the search text clears the search. Closes #15.

Moving the search out of the database widget required some replumbing work in the way searches are conducted.

I also enabled the use of QT keywords like "emit", "slots", etc which make the code easier to read.

Motivation and Context

This was requested by the community and it also cleans up the UI significantly.

How Has This Been Tested?

The testgui.cpp file was completely retooled to accomplish the following:

  • Test the new search bar functionality
  • Properly segregate test cases instead of them relying on the state left over from the previous test case

Screenshots (if appropriate):

screenshot_2016-10-29_16-11-35

screenshot_2016-10-29_16-11-51

Types of changes

  • ❎ Bug fix (non-breaking change which fixes an issue)
  • ✅ New feature (non-breaking change which adds functionality)
  • ✅ Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • ✅ I have read the CONTRIBUTING document. [REQUIRED]
  • ✅ My code follows the code style of this project. [REQUIRED]
  • ✅ All new and existing tests passed. [REQUIRED]
  • ❎ My change requires a change to the documentation.
  • ❎ I have updated the documentation accordingly.
  • ✅ I have added tests to cover my changes.

* All gui tests are run on an unaltered starter database
* All gui tests are self contained
* Removed clearing of Search Widget text when hiding
* Searches are saved between databases
* Search is cleared when all databases are closed
* Implemented case sensitive and group searching
@droidmonkey droidmonkey changed the title Feature/search viz #15 Make search always visible (#15) Oct 29, 2016
@droidmonkey
Copy link
Member Author

Requesting a review from another project maintainer.

@JosefVitu
Copy link
Contributor

Works great, but could you please (re)add a keyboard shortcut to focus the search field?

@droidmonkey
Copy link
Member Author

Added global shortcut and a simple notification banner when the database is in search mode.

@TheZ3ro TheZ3ro mentioned this pull request Oct 30, 2016
1 task
@TheZ3ro
Copy link
Contributor

TheZ3ro commented Oct 30, 2016

Just a note before I approve the changes.

Should be good make the m_searchingLabel disappear once the search is completed (or at least change te label, right now it appear with label "Searching..." but stays there with that label)

@droidmonkey
Copy link
Member Author

Perhaps reliable it "Search Results"?

@TheZ3ro
Copy link
Contributor

TheZ3ro commented Oct 30, 2016

I think it will be ok, but if no result is found relabel it to "No result" or something like that.

@droidmonkey
Copy link
Member Author

I'm going to fix the label and merge this in tonight.

@droidmonkey droidmonkey merged commit 13983d0 into develop Nov 3, 2016
@droidmonkey droidmonkey deleted the feature/search-viz-#15 branch November 3, 2016 01:01
@TheZ3ro TheZ3ro added this to the v2.1.0 milestone Nov 5, 2016
@Germano0 Germano0 mentioned this pull request Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance interface by making search box always visible
3 participants