summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'Applications')
-rw-r--r--Applications/FileManager/DirectoryView.h2
-rw-r--r--Applications/FileManager/main.cpp4
-rw-r--r--Applications/FontEditor/FontEditor.cpp2
-rw-r--r--Applications/FontEditor/FontEditor.h4
-rw-r--r--Applications/FontEditor/GlyphEditorWidget.h2
-rw-r--r--Applications/FontEditor/GlyphMapWidget.h2
-rw-r--r--Applications/FontEditor/main.cpp2
-rw-r--r--Applications/IRCClient/IRCAppWindow.h12
-rw-r--r--Applications/IRCClient/IRCChannel.cpp2
-rw-r--r--Applications/IRCClient/IRCChannel.h6
-rw-r--r--Applications/IRCClient/IRCChannelMemberListModel.h2
-rw-r--r--Applications/IRCClient/IRCClient.h10
-rw-r--r--Applications/IRCClient/IRCLogBuffer.cpp2
-rw-r--r--Applications/IRCClient/IRCLogBuffer.h4
-rw-r--r--Applications/IRCClient/IRCLogBufferModel.cpp2
-rw-r--r--Applications/IRCClient/IRCLogBufferModel.h6
-rw-r--r--Applications/IRCClient/IRCQuery.cpp2
-rw-r--r--Applications/IRCClient/IRCQuery.h4
-rw-r--r--Applications/IRCClient/IRCWindow.h2
-rw-r--r--Applications/IRCClient/IRCWindowListModel.h2
-rw-r--r--Applications/PaintBrush/PaintableWidget.h2
-rw-r--r--Applications/ProcessManager/ProcessModel.h10
-rw-r--r--Applications/Taskbar/WindowList.h2
-rw-r--r--Applications/Terminal/Terminal.cpp2
-rw-r--r--Applications/Terminal/Terminal.h6
-rw-r--r--Applications/Terminal/main.cpp4
26 files changed, 50 insertions, 50 deletions
diff --git a/Applications/FileManager/DirectoryView.h b/Applications/FileManager/DirectoryView.h
index c7e2f08bc5..3c082ff36e 100644
--- a/Applications/FileManager/DirectoryView.h
+++ b/Applications/FileManager/DirectoryView.h
@@ -44,7 +44,7 @@ private:
ViewMode m_view_mode { Invalid };
- Retained<GDirectoryModel> m_model;
+ NonnullRefPtr<GDirectoryModel> m_model;
int m_path_history_position { 0 };
Vector<String> m_path_history;
void add_path_to_history(const StringView& path);
diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp
index 4f8f1cbc01..4817444b17 100644
--- a/Applications/FileManager/main.cpp
+++ b/Applications/FileManager/main.cpp
@@ -103,8 +103,8 @@ int main(int argc, char** argv)
}
});
- RetainPtr<GAction> view_as_table_action;
- RetainPtr<GAction> view_as_icons_action;
+ RefPtr<GAction> view_as_table_action;
+ RefPtr<GAction> view_as_icons_action;
view_as_table_action = GAction::create("Table view", { Mod_Ctrl, KeyCode::Key_L }, GraphicsBitmap::load_from_file("/res/icons/16x16/table-view.png"), [&](const GAction&) {
directory_view->set_view_mode(DirectoryView::ViewMode::List);
diff --git a/Applications/FontEditor/FontEditor.cpp b/Applications/FontEditor/FontEditor.cpp
index 247e17d276..28dc2e6366 100644
--- a/Applications/FontEditor/FontEditor.cpp
+++ b/Applications/FontEditor/FontEditor.cpp
@@ -10,7 +10,7 @@
#include <LibGUI/GTextBox.h>
#include <stdlib.h>
-FontEditorWidget::FontEditorWidget(const String& path, RetainPtr<Font>&& edited_font, GWidget* parent)
+FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Font>&& edited_font, GWidget* parent)
: GWidget(parent)
, m_edited_font(move(edited_font))
{
diff --git a/Applications/FontEditor/FontEditor.h b/Applications/FontEditor/FontEditor.h
index 9132c5029a..e6777c4b46 100644
--- a/Applications/FontEditor/FontEditor.h
+++ b/Applications/FontEditor/FontEditor.h
@@ -9,11 +9,11 @@ class GTextBox;
class FontEditorWidget final : public GWidget {
public:
- FontEditorWidget(const String& path, RetainPtr<Font>&&, GWidget* parent = nullptr);
+ FontEditorWidget(const String& path, RefPtr<Font>&&, GWidget* parent = nullptr);
virtual ~FontEditorWidget() override;
private:
- RetainPtr<Font> m_edited_font;
+ RefPtr<Font> m_edited_font;
GlyphMapWidget* m_glyph_map_widget { nullptr };
GlyphEditorWidget* m_glyph_editor_widget { nullptr };
diff --git a/Applications/FontEditor/GlyphEditorWidget.h b/Applications/FontEditor/GlyphEditorWidget.h
index 3784c054b5..9fd05a322e 100644
--- a/Applications/FontEditor/GlyphEditorWidget.h
+++ b/Applications/FontEditor/GlyphEditorWidget.h
@@ -24,7 +24,7 @@ private:
void draw_at_mouse(const GMouseEvent&);
- RetainPtr<Font> m_font;
+ RefPtr<Font> m_font;
byte m_glyph { 0 };
int m_scale { 10 };
};
diff --git a/Applications/FontEditor/GlyphMapWidget.h b/Applications/FontEditor/GlyphMapWidget.h
index e5746aff0b..521c0f7c2f 100644
--- a/Applications/FontEditor/GlyphMapWidget.h
+++ b/Applications/FontEditor/GlyphMapWidget.h
@@ -30,7 +30,7 @@ private:
Rect get_outer_rect(byte glyph) const;
- RetainPtr<Font> m_font;
+ RefPtr<Font> m_font;
int m_rows { 8 };
int m_horizontal_spacing { 2 };
int m_vertical_spacing { 2 };
diff --git a/Applications/FontEditor/main.cpp b/Applications/FontEditor/main.cpp
index 9f80a5962f..d2bc0967ce 100644
--- a/Applications/FontEditor/main.cpp
+++ b/Applications/FontEditor/main.cpp
@@ -7,7 +7,7 @@ int main(int argc, char** argv)
{
GApplication app(argc, argv);
- RetainPtr<Font> edited_font;
+ RefPtr<Font> edited_font;
String path;
if (argc == 2) {
diff --git a/Applications/IRCClient/IRCAppWindow.h b/Applications/IRCClient/IRCAppWindow.h
index 96e0867a67..1d376f164a 100644
--- a/Applications/IRCClient/IRCAppWindow.h
+++ b/Applications/IRCClient/IRCAppWindow.h
@@ -24,10 +24,10 @@ private:
IRCClient m_client;
GStackWidget* m_container { nullptr };
GTableView* m_window_list { nullptr };
- RetainPtr<GAction> m_join_action;
- RetainPtr<GAction> m_part_action;
- RetainPtr<GAction> m_whois_action;
- RetainPtr<GAction> m_open_query_action;
- RetainPtr<GAction> m_close_query_action;
- RetainPtr<GAction> m_change_nick_action;
+ RefPtr<GAction> m_join_action;
+ RefPtr<GAction> m_part_action;
+ RefPtr<GAction> m_whois_action;
+ RefPtr<GAction> m_open_query_action;
+ RefPtr<GAction> m_close_query_action;
+ RefPtr<GAction> m_change_nick_action;
};
diff --git a/Applications/IRCClient/IRCChannel.cpp b/Applications/IRCClient/IRCChannel.cpp
index 8e18b558b3..75bf4c7d76 100644
--- a/Applications/IRCClient/IRCChannel.cpp
+++ b/Applications/IRCClient/IRCChannel.cpp
@@ -18,7 +18,7 @@ IRCChannel::~IRCChannel()
{
}
-Retained<IRCChannel> IRCChannel::create(IRCClient& client, const String& name)
+NonnullRefPtr<IRCChannel> IRCChannel::create(IRCClient& client, const String& name)
{
return adopt(*new IRCChannel(client, name));
}
diff --git a/Applications/IRCClient/IRCChannel.h b/Applications/IRCClient/IRCChannel.h
index fe219c2534..816bd108c5 100644
--- a/Applications/IRCClient/IRCChannel.h
+++ b/Applications/IRCClient/IRCChannel.h
@@ -13,7 +13,7 @@ class IRCWindow;
class IRCChannel : public RefCounted<IRCChannel> {
public:
- static Retained<IRCChannel> create(IRCClient&, const String&);
+ static NonnullRefPtr<IRCChannel> create(IRCClient&, const String&);
~IRCChannel();
bool is_open() const { return m_open; }
@@ -64,7 +64,7 @@ private:
Vector<Member> m_members;
bool m_open { false };
- Retained<IRCLogBuffer> m_log;
- Retained<IRCChannelMemberListModel> m_member_model;
+ NonnullRefPtr<IRCLogBuffer> m_log;
+ NonnullRefPtr<IRCChannelMemberListModel> m_member_model;
IRCWindow* m_window { nullptr };
};
diff --git a/Applications/IRCClient/IRCChannelMemberListModel.h b/Applications/IRCClient/IRCChannelMemberListModel.h
index df0e762264..deca6347e6 100644
--- a/Applications/IRCClient/IRCChannelMemberListModel.h
+++ b/Applications/IRCClient/IRCChannelMemberListModel.h
@@ -10,7 +10,7 @@ public:
enum Column {
Name
};
- static Retained<IRCChannelMemberListModel> create(IRCChannel& channel) { return adopt(*new IRCChannelMemberListModel(channel)); }
+ static NonnullRefPtr<IRCChannelMemberListModel> create(IRCChannel& channel) { return adopt(*new IRCChannelMemberListModel(channel)); }
virtual ~IRCChannelMemberListModel() override;
virtual int row_count(const GModelIndex&) const override;
diff --git a/Applications/IRCClient/IRCClient.h b/Applications/IRCClient/IRCClient.h
index ac02b9e9fc..d591f4b527 100644
--- a/Applications/IRCClient/IRCClient.h
+++ b/Applications/IRCClient/IRCClient.h
@@ -120,14 +120,14 @@ private:
String m_nickname;
OwnPtr<CNotifier> m_notifier;
- HashMap<String, RetainPtr<IRCChannel>> m_channels;
- HashMap<String, RetainPtr<IRCQuery>> m_queries;
+ HashMap<String, RefPtr<IRCChannel>> m_channels;
+ HashMap<String, RefPtr<IRCQuery>> m_queries;
Vector<IRCWindow*> m_windows;
IRCWindow* m_server_subwindow { nullptr };
- Retained<IRCWindowListModel> m_client_window_list_model;
- Retained<IRCLogBuffer> m_log;
- Retained<CConfigFile> m_config;
+ NonnullRefPtr<IRCWindowListModel> m_client_window_list_model;
+ NonnullRefPtr<IRCLogBuffer> m_log;
+ NonnullRefPtr<CConfigFile> m_config;
};
diff --git a/Applications/IRCClient/IRCLogBuffer.cpp b/Applications/IRCClient/IRCLogBuffer.cpp
index bfa8736306..fb5934b071 100644
--- a/Applications/IRCClient/IRCLogBuffer.cpp
+++ b/Applications/IRCClient/IRCLogBuffer.cpp
@@ -3,7 +3,7 @@
#include <stdio.h>
#include <time.h>
-Retained<IRCLogBuffer> IRCLogBuffer::create()
+NonnullRefPtr<IRCLogBuffer> IRCLogBuffer::create()
{
return adopt(*new IRCLogBuffer);
}
diff --git a/Applications/IRCClient/IRCLogBuffer.h b/Applications/IRCClient/IRCLogBuffer.h
index 0720b5b32d..c442afbf98 100644
--- a/Applications/IRCClient/IRCLogBuffer.h
+++ b/Applications/IRCClient/IRCLogBuffer.h
@@ -10,7 +10,7 @@ class IRCLogBufferModel;
class IRCLogBuffer : public RefCounted<IRCLogBuffer> {
public:
- static Retained<IRCLogBuffer> create();
+ static NonnullRefPtr<IRCLogBuffer> create();
~IRCLogBuffer();
struct Message {
@@ -32,6 +32,6 @@ public:
private:
IRCLogBuffer();
- Retained<IRCLogBufferModel> m_model;
+ NonnullRefPtr<IRCLogBufferModel> m_model;
CircularQueue<Message, 1000> m_messages;
};
diff --git a/Applications/IRCClient/IRCLogBufferModel.cpp b/Applications/IRCClient/IRCLogBufferModel.cpp
index 6c3874b476..8805b10918 100644
--- a/Applications/IRCClient/IRCLogBufferModel.cpp
+++ b/Applications/IRCClient/IRCLogBufferModel.cpp
@@ -4,7 +4,7 @@
#include <stdio.h>
#include <time.h>
-IRCLogBufferModel::IRCLogBufferModel(Retained<IRCLogBuffer>&& log_buffer)
+IRCLogBufferModel::IRCLogBufferModel(NonnullRefPtr<IRCLogBuffer>&& log_buffer)
: m_log_buffer(move(log_buffer))
{
}
diff --git a/Applications/IRCClient/IRCLogBufferModel.h b/Applications/IRCClient/IRCLogBufferModel.h
index 5be8237d07..d0685f4637 100644
--- a/Applications/IRCClient/IRCLogBufferModel.h
+++ b/Applications/IRCClient/IRCLogBufferModel.h
@@ -13,7 +13,7 @@ public:
__Count,
};
- static Retained<IRCLogBufferModel> create(Retained<IRCLogBuffer>&& log_buffer) { return adopt(*new IRCLogBufferModel(move(log_buffer))); }
+ static NonnullRefPtr<IRCLogBufferModel> create(NonnullRefPtr<IRCLogBuffer>&& log_buffer) { return adopt(*new IRCLogBufferModel(move(log_buffer))); }
virtual ~IRCLogBufferModel() override;
virtual int row_count(const GModelIndex&) const override;
@@ -24,7 +24,7 @@ public:
virtual void update() override;
private:
- explicit IRCLogBufferModel(Retained<IRCLogBuffer>&&);
+ explicit IRCLogBufferModel(NonnullRefPtr<IRCLogBuffer>&&);
- Retained<IRCLogBuffer> m_log_buffer;
+ NonnullRefPtr<IRCLogBuffer> m_log_buffer;
};
diff --git a/Applications/IRCClient/IRCQuery.cpp b/Applications/IRCClient/IRCQuery.cpp
index a592c01012..3d6f4d2778 100644
--- a/Applications/IRCClient/IRCQuery.cpp
+++ b/Applications/IRCClient/IRCQuery.cpp
@@ -16,7 +16,7 @@ IRCQuery::~IRCQuery()
{
}
-Retained<IRCQuery> IRCQuery::create(IRCClient& client, const String& name)
+NonnullRefPtr<IRCQuery> IRCQuery::create(IRCClient& client, const String& name)
{
return adopt(*new IRCQuery(client, name));
}
diff --git a/Applications/IRCClient/IRCQuery.h b/Applications/IRCClient/IRCQuery.h
index e7e52a1a8e..d94ef37007 100644
--- a/Applications/IRCClient/IRCQuery.h
+++ b/Applications/IRCClient/IRCQuery.h
@@ -12,7 +12,7 @@ class IRCWindow;
class IRCQuery : public RefCounted<IRCQuery> {
public:
- static Retained<IRCQuery> create(IRCClient&, const String& name);
+ static NonnullRefPtr<IRCQuery> create(IRCClient&, const String& name);
~IRCQuery();
String name() const { return m_name; }
@@ -35,5 +35,5 @@ private:
String m_name;
IRCWindow* m_window { nullptr };
- Retained<IRCLogBuffer> m_log;
+ NonnullRefPtr<IRCLogBuffer> m_log;
};
diff --git a/Applications/IRCClient/IRCWindow.h b/Applications/IRCClient/IRCWindow.h
index 2fce542fe5..8ea9fca189 100644
--- a/Applications/IRCClient/IRCWindow.h
+++ b/Applications/IRCClient/IRCWindow.h
@@ -49,6 +49,6 @@ private:
String m_name;
GTableView* m_table_view { nullptr };
GTextEditor* m_text_editor { nullptr };
- RetainPtr<IRCLogBuffer> m_log_buffer;
+ RefPtr<IRCLogBuffer> m_log_buffer;
int m_unread_count { 0 };
};
diff --git a/Applications/IRCClient/IRCWindowListModel.h b/Applications/IRCClient/IRCWindowListModel.h
index 47e4621c96..2828722840 100644
--- a/Applications/IRCClient/IRCWindowListModel.h
+++ b/Applications/IRCClient/IRCWindowListModel.h
@@ -12,7 +12,7 @@ public:
Name,
};
- static Retained<IRCWindowListModel> create(IRCClient& client) { return adopt(*new IRCWindowListModel(client)); }
+ static NonnullRefPtr<IRCWindowListModel> create(IRCClient& client) { return adopt(*new IRCWindowListModel(client)); }
virtual ~IRCWindowListModel() override;
virtual int row_count(const GModelIndex&) const override;
diff --git a/Applications/PaintBrush/PaintableWidget.h b/Applications/PaintBrush/PaintableWidget.h
index bd6cd4455b..81df54c9ec 100644
--- a/Applications/PaintBrush/PaintableWidget.h
+++ b/Applications/PaintBrush/PaintableWidget.h
@@ -32,7 +32,7 @@ private:
virtual void mouseup_event(GMouseEvent&) override;
virtual void mousemove_event(GMouseEvent&) override;
- RetainPtr<GraphicsBitmap> m_bitmap;
+ RefPtr<GraphicsBitmap> m_bitmap;
Color m_primary_color { Color::Black };
Color m_secondary_color { Color::White };
diff --git a/Applications/ProcessManager/ProcessModel.h b/Applications/ProcessManager/ProcessModel.h
index cebe524d26..6f74609dc4 100644
--- a/Applications/ProcessManager/ProcessModel.h
+++ b/Applications/ProcessManager/ProcessModel.h
@@ -25,7 +25,7 @@ public:
__Count
};
- static Retained<ProcessModel> create(GraphWidget& graph) { return adopt(*new ProcessModel(graph)); }
+ static NonnullRefPtr<ProcessModel> create(GraphWidget& graph) { return adopt(*new ProcessModel(graph)); }
virtual ~ProcessModel() override;
virtual int row_count(const GModelIndex&) const override;
@@ -61,9 +61,9 @@ private:
HashMap<uid_t, String> m_usernames;
HashMap<pid_t, OwnPtr<Process>> m_processes;
Vector<pid_t> m_pids;
- RetainPtr<GraphicsBitmap> m_generic_process_icon;
- RetainPtr<GraphicsBitmap> m_high_priority_icon;
- RetainPtr<GraphicsBitmap> m_low_priority_icon;
- RetainPtr<GraphicsBitmap> m_normal_priority_icon;
+ RefPtr<GraphicsBitmap> m_generic_process_icon;
+ RefPtr<GraphicsBitmap> m_high_priority_icon;
+ RefPtr<GraphicsBitmap> m_low_priority_icon;
+ RefPtr<GraphicsBitmap> m_normal_priority_icon;
CFile m_proc_all;
};
diff --git a/Applications/Taskbar/WindowList.h b/Applications/Taskbar/WindowList.h
index 12cefb52ab..406ec52e87 100644
--- a/Applications/Taskbar/WindowList.h
+++ b/Applications/Taskbar/WindowList.h
@@ -55,7 +55,7 @@ private:
Rect m_rect;
GButton* m_button { nullptr };
String m_icon_path;
- RetainPtr<GraphicsBitmap> m_icon;
+ RefPtr<GraphicsBitmap> m_icon;
bool m_active { false };
bool m_minimized { false };
};
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp
index 94720d8f62..3ba514fe73 100644
--- a/Applications/Terminal/Terminal.cpp
+++ b/Applications/Terminal/Terminal.cpp
@@ -19,7 +19,7 @@
byte Terminal::Attribute::default_foreground_color = 7;
byte Terminal::Attribute::default_background_color = 0;
-Terminal::Terminal(int ptm_fd, RetainPtr<CConfigFile> config)
+Terminal::Terminal(int ptm_fd, RefPtr<CConfigFile> config)
: m_ptm_fd(ptm_fd)
, m_notifier(ptm_fd, CNotifier::Read)
, m_config(config)
diff --git a/Applications/Terminal/Terminal.h b/Applications/Terminal/Terminal.h
index d631416bf6..388570589b 100644
--- a/Applications/Terminal/Terminal.h
+++ b/Applications/Terminal/Terminal.h
@@ -14,7 +14,7 @@ class Font;
class Terminal final : public GFrame {
public:
- explicit Terminal(int ptm_fd, RetainPtr<CConfigFile> config);
+ explicit Terminal(int ptm_fd, RefPtr<CConfigFile> config);
virtual ~Terminal() override;
void create_window();
@@ -30,7 +30,7 @@ public:
bool should_beep() { return m_should_beep; }
void set_should_beep(bool sb) { m_should_beep = sb; };
- RetainPtr<CConfigFile> config() const { return m_config; }
+ RefPtr<CConfigFile> config() const { return m_config; }
private:
typedef Vector<unsigned, 4> ParamVector;
@@ -205,7 +205,7 @@ private:
CTimer m_cursor_blink_timer;
CTimer m_visual_beep_timer;
- RetainPtr<CConfigFile> m_config;
+ RefPtr<CConfigFile> m_config;
byte m_last_char { 0 };
};
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp
index e78eb11332..eb94315263 100644
--- a/Applications/Terminal/main.cpp
+++ b/Applications/Terminal/main.cpp
@@ -81,7 +81,7 @@ static void make_shell(int ptm_fd)
}
}
-GWindow* create_settings_window(Terminal& terminal, RetainPtr<CConfigFile> config)
+GWindow* create_settings_window(Terminal& terminal, RefPtr<CConfigFile> config)
{
auto* window = new GWindow;
window->set_title("Terminal Settings");
@@ -149,7 +149,7 @@ int main(int argc, char** argv)
window->set_double_buffering_enabled(false);
window->set_should_exit_event_loop_on_close(true);
- RetainPtr<CConfigFile> config = CConfigFile::get_for_app("Terminal");
+ RefPtr<CConfigFile> config = CConfigFile::get_for_app("Terminal");
Terminal terminal(ptm_fd, config);
window->set_has_alpha_channel(true);
window->set_main_widget(&terminal);