1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

SQLStudio: Add an option to select or specify the database to connect to

This adds a combo box to the action toolbar to allow for entering a
database name manually or selecting from the list of existing databases.
The action to run a script is now disabled while we are not connected to
a database.
This commit is contained in:
Timothy Flynn 2022-12-28 23:09:23 -05:00 committed by Andreas Kling
parent 640e22bbdb
commit 5822520e6d
2 changed files with 56 additions and 8 deletions

View file

@ -52,9 +52,11 @@ private:
RefPtr<GUI::Action> m_paste_action;
RefPtr<GUI::Action> m_undo_action;
RefPtr<GUI::Action> m_redo_action;
RefPtr<GUI::Action> m_connect_to_database_action;
RefPtr<GUI::Action> m_run_script_action;
int m_new_script_counter { 1 };
RefPtr<GUI::ComboBox> m_databases_combo_box;
RefPtr<GUI::TabWidget> m_tab_widget;
RefPtr<GUI::Statusbar> m_statusbar;
RefPtr<GUI::TabWidget> m_action_tab_widget;