Class: Welcome

Inherits:
View show all
Defined in:
lib/qooxview/helpers/welcome.rb

Instance Attribute Summary collapse

Attributes inherited from View

#configured, #is_tabs, #name, #name_tab, #order, #visible

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from View

#call_named, #do_box, #do_boxg, #do_container, #do_container_end, #do_container_start, #filter_from_entity, #get_tab_members, #gui_fields, #gui_group, #gui_grow, #gui_hbox, #gui_hboxg, #gui_shrink, #gui_tabs, #gui_vbox, #gui_vboxg, #gui_vboxgl, #gui_window, #initialize, #layout_eval, #layout_find, #layout_recurse, list, #list, list_views, #method_missing, method_missing, #parse_reply, #parse_request, reply, #reply, reply_one_two, #reply_one_two, reply_show_hide, #reply_show_hide, reply_table_columns_visible, #reply_table_columns_visible, reply_visible, #reply_visible, #respond_to?, #rpc_autofill, #rpc_button, #rpc_button_close, #rpc_button_new, #rpc_button_save, #rpc_callback, #rpc_find, #rpc_list, rpc_list, #rpc_list_choice, #rpc_list_tabs, #rpc_table, #rpc_tabs_list_choice, #rpc_tabs_show, #rpc_tabs_update_view, #rpc_update, #rpc_update_async, #rpc_update_view, #set_data_class, #show_add, #show_arg, #show_button, #show_entity, #show_field, #show_field_ro, #show_find, #show_in_field, #show_split_button, #update, #update_configured, update_configured_all, #update_form_data, #update_layout

Methods inherited from RPCQooxdooService

add_prime_service, entities, #get_services, inherited, #initialize, migrate_all, needs, #needs_covered, services

Constructor Details

This class inherits a constructor from View

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class View

Instance Attribute Details

#no_loginObject

Returns the value of attribute no_login.



2
3
4
# File 'lib/qooxview/helpers/welcome.rb', line 2

def 
  
end

Class Method Details

.nologinObject



46
47
48
49
50
# File 'lib/qooxview/helpers/welcome.rb', line 46

def self.nologin
  dputs(2) { 'Going for no login' }
  $config.__Views.__Welcome. = true
  View.Welcome. = true
end

Instance Method Details

#layoutObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/qooxview/helpers/welcome.rb', line 4

def layout
  gui_vbox :nogroup do
    gui_hbox :nogroup do
      gui_fields :nogroup do
      end
      show_str :username
      show_pass :password
      show_str_ro :version
      show_button :simple_connect, :direct_connect
      gui_fields :nogroup do
      end
    end

    gui_window :login_failed do
      show_html :reason
      show_button :try_again
    end
    if ConfigBase.welcome_text
      gui_vbox :nogroup do
        show_html :links
      end
    end
  end

  dputs(5) { "#{@layout.inspect}" }
  @visible = false
   ||= false
end

#rpc_button_try_again(session, data) ⇒ Object



52
53
54
# File 'lib/qooxview/helpers/welcome.rb', line 52

def rpc_button_try_again(session, data)
  reply(:window_hide)
end

#rpc_show(session) ⇒ Object



33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/qooxview/helpers/welcome.rb', line 33

def rpc_show(session)
  dputs(3) { self.inspect }
  if 
    dputs(2) { 'No login is enabled' }
    session
    return reply(:session_id, session.sid) +
        View.rpc_list(session)
  else
    dputs(2) { 'Login is enabled' }
    super(session) + reply(:hide, :direct_connect)
  end
end