diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-29 15:53:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-29 15:53:51 +0200 |
commit | 51df4bdbfc7fa52e21b62529cc5296bb97cc4231 (patch) | |
tree | 424d458868b8b45485c1f2b2167d975e154e8ce7 /Applications | |
parent | c7107385ee952a26197eb3109cb54299cfa3679f (diff) | |
download | serenity-51df4bdbfc7fa52e21b62529cc5296bb97cc4231.zip |
DisplaySettings: Rename from DisplayProperties
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/DisplaySettings/DisplaySettings.cpp (renamed from Applications/DisplayProperties/DisplayProperties.cpp) | 18 | ||||
-rw-r--r-- | Applications/DisplaySettings/DisplaySettings.h (renamed from Applications/DisplayProperties/DisplayProperties.h) | 4 | ||||
-rw-r--r-- | Applications/DisplaySettings/ItemListModel.h (renamed from Applications/DisplayProperties/ItemListModel.h) | 0 | ||||
-rw-r--r-- | Applications/DisplaySettings/Makefile (renamed from Applications/DisplayProperties/Makefile) | 4 | ||||
-rw-r--r-- | Applications/DisplaySettings/MonitorWidget.cpp (renamed from Applications/DisplayProperties/MonitorWidget.cpp) | 0 | ||||
-rw-r--r-- | Applications/DisplaySettings/MonitorWidget.h (renamed from Applications/DisplayProperties/MonitorWidget.h) | 0 | ||||
-rw-r--r-- | Applications/DisplaySettings/main.cpp (renamed from Applications/DisplayProperties/main.cpp) | 12 | ||||
-rw-r--r-- | Applications/FileManager/main.cpp | 4 |
8 files changed, 21 insertions, 21 deletions
diff --git a/Applications/DisplayProperties/DisplayProperties.cpp b/Applications/DisplaySettings/DisplaySettings.cpp index 35c7410274..95432666be 100644 --- a/Applications/DisplayProperties/DisplayProperties.cpp +++ b/Applications/DisplaySettings/DisplaySettings.cpp @@ -24,7 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "DisplayProperties.h" +#include "DisplaySettings.h" #include "ItemListModel.h" #include <AK/StringBuilder.h> #include <LibCore/ConfigFile.h> @@ -41,7 +41,7 @@ #include <LibGfx/Palette.h> #include <LibGfx/SystemTheme.h> -DisplayPropertiesWidget::DisplayPropertiesWidget() +DisplaySettingsWidget::DisplaySettingsWidget() { create_resolution_list(); create_wallpaper_list(); @@ -51,7 +51,7 @@ DisplayPropertiesWidget::DisplayPropertiesWidget() load_current_settings(); } -void DisplayPropertiesWidget::create_resolution_list() +void DisplaySettingsWidget::create_resolution_list() { // TODO: Find a better way to get the default resolution m_resolutions.append({ 640, 480 }); @@ -68,7 +68,7 @@ void DisplayPropertiesWidget::create_resolution_list() m_resolutions.append({ 2560, 1080 }); } -void DisplayPropertiesWidget::create_wallpaper_list() +void DisplaySettingsWidget::create_wallpaper_list() { Core::DirIterator iterator("/res/wallpapers/", Core::DirIterator::Flags::SkipDots); @@ -84,7 +84,7 @@ void DisplayPropertiesWidget::create_wallpaper_list() m_modes.append("scaled"); } -void DisplayPropertiesWidget::create_frame() +void DisplaySettingsWidget::create_frame() { m_root_widget = GUI::Widget::construct(); m_root_widget->set_layout<GUI::VerticalBoxLayout>(); @@ -261,7 +261,7 @@ void DisplayPropertiesWidget::create_frame() }; } -void DisplayPropertiesWidget::load_current_settings() +void DisplaySettingsWidget::load_current_settings() { auto ws_config(Core::ConfigFile::open("/etc/WindowServer/WindowServer.ini")); auto wm_config = Core::ConfigFile::get_for_app("WindowManager"); @@ -306,13 +306,13 @@ void DisplayPropertiesWidget::load_current_settings() // Let's attempt to find the current resolution and select it! find_size.set_width(ws_config->read_entry("Screen", "Width", "1024").to_int(okay)); if (!okay) { - fprintf(stderr, "DisplayProperties: failed to convert width to int!"); + fprintf(stderr, "DisplaySettings: failed to convert width to int!"); ASSERT_NOT_REACHED(); } find_size.set_height(ws_config->read_entry("Screen", "Height", "768").to_int(okay)); if (!okay) { - fprintf(stderr, "DisplayProperties: failed to convert height to int!"); + fprintf(stderr, "DisplaySettings: failed to convert height to int!"); ASSERT_NOT_REACHED(); } @@ -338,7 +338,7 @@ void DisplayPropertiesWidget::load_current_settings() m_monitor_widget->update(); } -void DisplayPropertiesWidget::send_settings_to_window_server() +void DisplaySettingsWidget::send_settings_to_window_server() { auto result = GUI::WindowServerConnection::the().send_sync<Messages::WindowServer::SetResolution>(m_monitor_widget->desktop_resolution()); if (!result->success()) { diff --git a/Applications/DisplayProperties/DisplayProperties.h b/Applications/DisplaySettings/DisplaySettings.h index 9846336f59..d0215c7887 100644 --- a/Applications/DisplayProperties/DisplayProperties.h +++ b/Applications/DisplaySettings/DisplaySettings.h @@ -30,11 +30,11 @@ #include <LibGUI/ColorInput.h> #include <LibGUI/ComboBox.h> -class DisplayPropertiesWidget : public GUI::Widget { +class DisplaySettingsWidget : public GUI::Widget { C_OBJECT(MonitorWidget); public: - DisplayPropertiesWidget(); + DisplaySettingsWidget(); GUI::Widget* root_widget() { return m_root_widget; } diff --git a/Applications/DisplayProperties/ItemListModel.h b/Applications/DisplaySettings/ItemListModel.h index 9c4d840a99..9c4d840a99 100644 --- a/Applications/DisplayProperties/ItemListModel.h +++ b/Applications/DisplaySettings/ItemListModel.h diff --git a/Applications/DisplayProperties/Makefile b/Applications/DisplaySettings/Makefile index 0015fdbab9..60d1ed6f49 100644 --- a/Applications/DisplayProperties/Makefile +++ b/Applications/DisplaySettings/Makefile @@ -1,9 +1,9 @@ OBJS = \ MonitorWidget.o \ - DisplayProperties.o \ + DisplaySettings.o \ main.o \ -PROGRAM = DisplayProperties +PROGRAM = DisplaySettings LIB_DEPS = GUI Gfx IPC Thread Pthread Core diff --git a/Applications/DisplayProperties/MonitorWidget.cpp b/Applications/DisplaySettings/MonitorWidget.cpp index 1bd44888bc..1bd44888bc 100644 --- a/Applications/DisplayProperties/MonitorWidget.cpp +++ b/Applications/DisplaySettings/MonitorWidget.cpp diff --git a/Applications/DisplayProperties/MonitorWidget.h b/Applications/DisplaySettings/MonitorWidget.h index f77fe67eb9..f77fe67eb9 100644 --- a/Applications/DisplayProperties/MonitorWidget.h +++ b/Applications/DisplaySettings/MonitorWidget.h diff --git a/Applications/DisplayProperties/main.cpp b/Applications/DisplaySettings/main.cpp index 3a90bfffdb..9561d8e501 100644 --- a/Applications/DisplayProperties/main.cpp +++ b/Applications/DisplaySettings/main.cpp @@ -24,7 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "DisplayProperties.h" +#include "DisplaySettings.h" #include <LibGUI/AboutDialog.h> #include <LibGUI/Action.h> #include <LibGUI/Application.h> @@ -50,26 +50,26 @@ int main(int argc, char** argv) return 1; } - DisplayPropertiesWidget instance; + DisplaySettingsWidget instance; auto window = GUI::Window::construct(); - window->set_title("Display Properties"); + window->set_title("Display settings"); window->move_to(100, 100); window->resize(360, 390); window->set_resizable(false); window->set_main_widget(instance.root_widget()); - window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-display-properties.png")); + window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-display-settings.png")); auto menubar = GUI::MenuBar::construct(); - auto& app_menu = menubar->add_menu("Display Properties"); + auto& app_menu = menubar->add_menu("Display settings"); app_menu.add_action(GUI::CommonActions::make_quit_action([&](const GUI::Action&) { app.quit(); })); auto& help_menu = menubar->add_menu("Help"); help_menu.add_action(GUI::Action::create("About", [&](const GUI::Action&) { - GUI::AboutDialog::show("Display Properties", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-display-properties.png"), window); + GUI::AboutDialog::show("Display settings", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-display-settings.png"), window); })); app.set_menubar(move(menubar)); diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp index 08e16e32ad..114e5df316 100644 --- a/Applications/FileManager/main.cpp +++ b/Applications/FileManager/main.cpp @@ -205,8 +205,8 @@ int run_in_desktop_mode(RefPtr<Core::ConfigFile> config, String initial_location Core::DesktopServices::open(URL::create_with_file_protocol(model->root_path())); }); - auto display_properties_action = GUI::Action::create("Display properties...", {}, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-display-properties.png"), [&](const GUI::Action&) { - Core::DesktopServices::open(URL::create_with_file_protocol("/bin/DisplayProperties")); + auto display_properties_action = GUI::Action::create("Display settings...", {}, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-display-settings.png"), [&](const GUI::Action&) { + Core::DesktopServices::open(URL::create_with_file_protocol("/bin/DisplaySettings")); }); desktop_view_context_menu->add_action(mkdir_action); |