mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
Move form data and code for Browse Data tab into a separate widget class
This adds a new widget called TableBrowser which does everything the Browse Data tab did before. All the UI data and all the code related to this tab is moved into the new widget class. The main window now simply uses the new widget instead of implementing all this stuff itself. I mainly see three benefits from this change: 1) The main window class becomes smaller and starts looking less like a master class which manages all of the application. This should make it easier for new developers to find their way around the code. 2) A better separation of the table browser and the remaining main window makes it clearer which class class is responsible for what. Again this makes it easier to maintain the code when it grows. 3) If we ever want to have split views, multiple Browse Data tabs, or something similar this is an absolute prerequisite. This commit obviously changes a lot of code. So be prepared for unintended changes and consider doing some extra testing. See issue #1972.
This commit is contained in:
1162
src/MainWindow.cpp
1162
src/MainWindow.cpp
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user