Commit 60d9cb6f authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

Fix class definition style

parent 4a6f45c9
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.DesktopUid: Object, Uid {
private class Games.DesktopUid : Object, Uid {
private string uid;
private DesktopAppInfo app_info;
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.DreamcastUid: Object, Uid {
private class Games.DreamcastUid : Object, Uid {
private DreamcastHeader header;
private string uid;
......
// This file is part of GNOME Games. License: GPL-3.0+.
// Documentation: http://www.gc-forever.com/yagcd/chap13.html
private class Games.GameCubeHeader: Object {
private class Games.GameCubeHeader : Object {
private const size_t MAGIC_OFFSET = 0x1c;
private const string MAGIC_VALUE = "\xc2\x33\x9f\x3d";
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.GameCubeUid: Object, Uid {
private class Games.GameCubeUid : Object, Uid {
private GameCubeHeader header;
private string uid;
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.PlayStationUid: Object, Uid {
private class Games.PlayStationUid : Object, Uid {
private string disc_set_id;
private string uid;
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.SegaSaturnUid: Object, Uid {
private class Games.SegaSaturnUid : Object, Uid {
private SegaSaturnHeader header;
private string uid;
......
......@@ -140,11 +140,11 @@ private class Games.SteamRegistry {
}
}
private abstract class Games.SteamRegistryValue: Object {
private abstract class Games.SteamRegistryValue : Object {
public string tag { construct; get; }
}
private class Games.SteamRegistryNode: SteamRegistryValue {
private class Games.SteamRegistryNode : SteamRegistryValue {
private List<SteamRegistryValue> children;
public SteamRegistryNode (string tag) {
......@@ -172,7 +172,7 @@ private class Games.SteamRegistryNode: SteamRegistryValue {
}
}
private class Games.SteamRegistryData: SteamRegistryValue {
private class Games.SteamRegistryData : SteamRegistryValue {
public string data { construct; get; }
public SteamRegistryData (string tag, string data) {
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.SteamUid: Object, Uid {
private class Games.SteamUid : Object, Uid {
private string uid;
private string prefix;
private string game_id;
......
// This file is part of GNOME Games. License: GPL-3.0+.
// Documentation: https://www.planetvb.com/content/downloads/documents/stsvb.html
private class Games.VirtualBoyHeader: Object {
private class Games.VirtualBoyHeader : Object {
private const size_t MAGIC_OFFSET = 0x20C;
private const uint8[] MAGIC_VALUE = { 0, 0, 0, 0, 0 };
......
// This file is part of GNOME Games. License: GPL-3.0+.
// Documentation: http://wiibrew.org/wiki/Wii_Disc
private class Games.WiiHeader: Object {
private class Games.WiiHeader : Object {
private const size_t MAGIC_OFFSET = 0x18;
private const string MAGIC_VALUE = "\x5d\x1c\x9e\xa3";
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.WiiUid: Object, Uid {
private class Games.WiiUid : Object, Uid {
private WiiHeader header;
private string uid;
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.RetroGamepad: Object, Retro.Controller {
private class Games.RetroGamepad : Object, Retro.Controller {
public Manette.Device device { get; construct; }
public bool present_analog_sticks { get; construct; }
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.RetroOptions: Object {
private class Games.RetroOptions : Object {
public const string OPTIONS_GROUP = "Options";
private KeyFile keyfile;
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/checkmark-item.ui")]
private class Games.CheckmarkItem: Gtk.ListBoxRow {
private class Games.CheckmarkItem : Gtk.ListBoxRow {
[GtkChild]
private Gtk.Label title_label;
[GtkChild]
......
private class Games.DeveloperListItem: Games.SidebarListItem {
private class Games.DeveloperListItem : Games.SidebarListItem {
private Developer _developer;
public Developer developer {
get { return _developer; }
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.GameThumbnail: Gtk.DrawingArea {
private class Games.GameThumbnail : Gtk.DrawingArea {
private const Gtk.CornerType[] right_corners = { Gtk.CornerType.TOP_RIGHT, Gtk.CornerType.BOTTOM_RIGHT };
private const Gtk.CornerType[] bottom_corners = { Gtk.CornerType.BOTTOM_LEFT, Gtk.CornerType.BOTTOM_RIGHT };
......
private class Games.PlatformListItem: Games.SidebarListItem {
private class Games.PlatformListItem : Games.SidebarListItem {
private Platform _platform;
public Platform platform {
get { return _platform; }
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-page-controllers.ui")]
private class Games.PreferencesPageControllers: PreferencesPage {
private class Games.PreferencesPageControllers : PreferencesPage {
[GtkChild]
private Gtk.Label gamepads_label;
[GtkChild]
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-page-plugins-item.ui")]
private class Games.PreferencesPagePluginsItem: Gtk.Box {
private class Games.PreferencesPagePluginsItem : Gtk.Box {
[GtkChild]
private Gtk.Label plugin_name;
[GtkChild]
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-page-plugins.ui")]
private class Games.PreferencesPagePlugins: PreferencesPage {
private class Games.PreferencesPagePlugins : PreferencesPage {
[GtkChild]
private Gtk.ListBox list_box;
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-page-video.ui")]
private class Games.PreferencesPageVideo: PreferencesPage {
private class Games.PreferencesPageVideo : PreferencesPage {
private string _filter_active;
public string filter_active {
set {
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-page.ui")]
private class Games.PreferencesPage: Gtk.Bin, Gtk.Buildable {
private class Games.PreferencesPage : Gtk.Bin, Gtk.Buildable {
public PreferencesSubpage subpage { get; protected set; }
public string title { get; construct set; }
......
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-sidebar-item.ui")]
private class Games.PreferencesSidebarItem: Gtk.ListBoxRow {
private class Games.PreferencesSidebarItem : Gtk.ListBoxRow {
[GtkChild]
private Gtk.Label label;
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-sidebar.ui")]
private class Games.PreferencesSidebar: Gtk.Bin {
private class Games.PreferencesSidebar : Gtk.Bin {
private ulong child_added_id;
private Gtk.Stack _stack;
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-subpage-gamepad.ui")]
private class Games.PreferencesSubpageGamepad: Gtk.Box, PreferencesSubpage {
private class Games.PreferencesSubpageGamepad : Gtk.Box, PreferencesSubpage {
private const GamepadInput[] STANDARD_GAMEPAD_INPUTS = {
{ EventCode.EV_KEY, EventCode.BTN_A },
{ EventCode.EV_KEY, EventCode.BTN_B },
......
// This file is part of GNOME Games. License: GPL-3.0+.
[GtkTemplate (ui = "/org/gnome/Games/ui/preferences-subpage-keyboard.ui")]
private class Games.PreferencesSubpageKeyboard: Gtk.Box, PreferencesSubpage {
private class Games.PreferencesSubpageKeyboard : Gtk.Box, PreferencesSubpage {
private const GamepadInput[] KEYBOARD_GAMEPAD_INPUTS = {
{ EventCode.EV_KEY, EventCode.BTN_A },
{ EventCode.EV_KEY, EventCode.BTN_B },
......
// This file is part of GNOME Games. License: GPL-3.0+.
private interface Games.PreferencesSubpage: Gtk.Widget {
private interface Games.PreferencesSubpage : Gtk.Widget {
public abstract Gtk.HeaderBar header_bar { get; }
public abstract bool request_selection_mode { get; set; }
}
......@@ -24,7 +24,7 @@ namespace Games.Fingerprint {
}
}
public class Games.FingerprintUid: Object, Uid {
public class Games.FingerprintUid : Object, Uid {
private Uri uri;
private string prefix;
private size_t start;
......
// This file is part of GNOME Games. License: GPL-3.0+.
private class Games.XmlDoc: Object {
private class Games.XmlDoc : Object {
private delegate void NodeCallback (Xml.Node* node);
private Xml.Doc* doc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment