Module: Sirens
- Defined in:
- lib/sirens.rb,
lib/views/list_view.rb,
lib/views/menu_view.rb,
lib/views/tabs_view.rb,
lib/views/text_view.rb,
lib/views/tree_view.rb,
lib/views/stack_view.rb,
lib/models/list_model.rb,
lib/views/button_view.rb,
lib/views/widget_view.rb,
lib/views/window_view.rb,
lib/models/value_model.rb,
lib/models/choice_model.rb,
lib/sirens/models/icons.rb,
lib/views/abstract_view.rb,
lib/views/checkbox_view.rb,
lib/views/splitter_view.rb,
lib/components/component.rb,
lib/sirens/models/method.rb,
lib/views/component_view.rb,
lib/views/input_text_view.rb,
lib/components/widgets/list.rb,
lib/components/widgets/text.rb,
lib/views/radio_button_view.rb,
lib/models/tree_choice_model.rb,
lib/components/widgets/button.rb,
lib/models/virtual_tree_model.rb,
lib/components/containers/tabs.rb,
lib/sirens/models/method_model.rb,
lib/components/containers/stack.rb,
lib/components/widgets/checkbox.rb,
lib/components/containers/window.rb,
lib/sirens/models/constant_model.rb,
lib/components/abstract_component.rb,
lib/components/widgets/input_text.rb,
lib/components/containers/splitter.rb,
lib/components/primitive_component.rb,
lib/components/widgets/list_choice.rb,
lib/components/widgets/tree_choice.rb,
lib/sirens/browsers/module_browser.rb,
lib/sirens/browsers/object_browser.rb,
lib/sirens/components/methods_list.rb,
lib/sirens/components/modules_list.rb,
lib/components/widgets/radio_button.rb,
lib/components_builder/column_props.rb,
lib/sirens/components/class_browser.rb,
lib/sirens/components/ancestors_list.rb,
lib/sirens/components/constants_list.rb,
lib/components_builder/layout_builder.rb,
lib/sirens/components/namespaces_list.rb,
lib/components_builder/columns_builder.rb,
lib/sirens/models/module_browser_model.rb,
lib/sirens/models/object_browser_model.rb,
lib/sirens/components/method_source_code.rb,
lib/components_builder/radio_button_group_builder.rb
Defined Under Namespace
Classes: AbstractComponent, AbstractView, AncestorsList, Button, ButtonView, Checkbox, CheckboxView, ChoiceModel, ClassBrowser, ColumnProps, ColumnsBuilder, Component, ComponentView, ConstantModel, ConstantsList, Icons, InputText, InputTextView, ItemsAdded, ItemsRemoved, ItemsUpdated, LayoutBuilder, List, ListChanged, ListChoice, ListModel, ListView, MenuView, Method, MethodModel, MethodSourceCode, MethodsList, ModuleBrowser, ModuleBrowserModel, ModulesList, NamespacesList, ObjectBrowser, ObjectBrowserModel, PrimitiveComponent, RadioButton, RadioButtonGroupBuilder, RadioButtonView, Splitter, SplitterView, Stack, StackView, Tabs, TabsView, Text, TextView, TreeChoice, TreeChoiceModel, TreeView, ValueChanged, ValueModel, VirtualTreeModel, WidgetView, Window, WindowView
Class Method Summary
collapse
Class Method Details
.browse(object: nil, klass: nil) ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/sirens.rb', line 6
def browse(object: nil, klass: nil)
if ! klass.nil?
klass = klass.class if ! klass.kind_of?(Module)
Sirens::ModuleBrowser.open_on(klass: klass)
else
ObjectBrowser.open_on(object: object)
end
Gtk.main if @opened_windows == 1
end
|
.register_window ⇒ Object
18
19
20
21
22
|
# File 'lib/sirens.rb', line 18
def register_window()
@opened_windows = 0 if @opened_windows.nil?
@opened_windows += 1
end
|
.unregister_window ⇒ Object
24
25
26
27
28
|
# File 'lib/sirens.rb', line 24
def unregister_window()
@opened_windows -= 1
Gtk.main_quit if @opened_windows == 0
end
|