Class Ui::WxWidgets::DradisWindow
In: ui/wx/window.rb
Parent: Wx::Frame

Methods

new   notify   teardown  

Attributes

consoleFrame  [R] 
controller  [W] 

Public Class methods

=============================================== public methods

[Source]

# File ui/wx/window.rb, line 387
      def initialize(*args)
        super
        @manager = Wx::AuiManager.new
        @manager.set_managed_window(self)
        setup_menu()
        #create_status_bar()
        set_min_size( Wx::Size.new(400,300) )
        setup_panes()
        setup_events()
        @manager.update()
      end

Public Instance methods

[Source]

# File ui/wx/window.rb, line 399
      def notify(event, *args)
        case event
          when :exception
            # TODO: handle each exception properly
            @console.append( args[1] )  
        end
      end

Receive the application quit request from the controller, display a goodbye message and close the frame.

[Source]

# File ui/wx/window.rb, line 409
      def teardown()
        @console.append( 'closing dradis interface...' )
        self.close
      end

[Validate]