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
DolphinWX: Add a filename column #3149
Conversation
Please could you provide a screenshot? |
return 1 * t; | ||
if (iso1->GetFileName() < iso2->GetFileName()) | ||
return -1 * t; | ||
return 0; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
1eafd45
to
0747868
Compare
Just pushed the commit that should implement the requested changes. It also fixes the mistake I made in the resizing part that was mentioned above. It caused the filename column to always be shown even when hidden. |
SetColumnWidth(COLUMN_TITLE, resizable / 3); | ||
SetColumnWidth(COLUMN_MAKER, resizable / 3); | ||
SetColumnWidth(COLUMN_FILENAME, resizable / 3); | ||
} |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
0747868
to
a99e4c5
Compare
In the meantime I found a solution for the bug shown on the second screenshot. Should I add it as a commit to this PR or should I open a different one? Thing is, one line depends on whether this PR will be accepted or not. |
Depends on whether you're comfortable with fixing merge conflicts for either PR when the other is merged, and whether not having the fix will cause problems for this PR. As it is now, it does cause problems. However, I think the File column would fit better visually to the right of Maker, so that all of the long text fields are in one place. In that case, it wouldn't be more of a problem than it was without this PR. |
I've chosen this position only because for me file name and size kind of belong together. But I totally see your point in it being more visually pleasing to right of Maker. I'm going to move it. This hides the issue at least partially. It does, however, reappear when the file column is activated and the Maker column gets autohidden because of the window being too small. |
a99e4c5
to
fda48d0
Compare
291cc71
to
05311e6
Compare
Just changed strcasecmp to wxStricmp (and therefore included wx/wxcrt.h) to hopefully make the OSX buildbot happy. |
3d750fe
to
ee2f748
Compare
wxFileNameFromPath(iso2->GetFileName())) | ||
{ | ||
return t * wxStricmp(wxFileNameFromPath(iso1->GetFileName()), | ||
wxFileNameFromPath(iso2->GetFileName())); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
I've decided to add the fix for the squeezing issue as first commit and to adjust the filename column changes to be based upon it. |
event.Veto(); | ||
} | ||
} |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Before the columns of the gamelist were filled with content regardless of their visibility. This led to display bugs when certain columns, for example the region column, were hidden. The first problem was the InsertItemInReportView() function because it refilled all columns with content on every call to update() without checking for their visibility. While this issue would have easily been solved by adding conditionals before each column update, the maker column would have still caused problems for it autohides on resize and those do not call update(). Therefore it was necessary to move the column update logic from InsertItemInReportView() to a new one that allows for seperate modification of an item's columns.
ee2f748
to
3fdaf37
Compare
Thank you for the feedback! The changes have been implemented. |
LGTM |
DolphinWX: Add a filename column
Adds a filename column to DolphinWX. This was requested in issue https://bugs.dolphin-emu.org/issues/8972.