Class BcOutletDialog
In: dialogs.rb
Parent: FXDialogBox

Methods

new   setdefault  

Attributes

okButton  [RW]  for dialogbox
pressure  [RW]  for export
ref  [RW]  for dialogbox
reftext  [RW] 

Public Class methods

[Source]

# File dialogs.rb, line 1379
   def initialize(owner, title)
      super(owner, title)
      # frames, matrices and groupboxes
      frame1 = FXVerticalFrame.new(self, LAYOUT_FILL_X| LAYOUT_FILL_Y)
      matrix1 = FXMatrix.new(frame1, 2, MATRIX_BY_COLUMNS|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
      # for OK and Cancel button
      frame2 = FXHorizontalFrame.new(frame1, LAYOUT_FILL_X)
      frame3 = FXHorizontalFrame.new(frame1, LAYOUT_FILL_X)

      # attribute input for velocity
      FXLabel.new(matrix1, "Pressure:        ", nil, LAYOUT_SIDE_LEFT|LAYOUT_CENTER_Y)
      @pressure = FXTextField.new(matrix1, 8, nil, 0,JUSTIFY_RIGHT|FRAME_SUNKEN|FRAME_THICK|LAYOUT_SIDE_LEFT|LAYOUT_CENTER_Y)
 
      FXLabel.new(frame2, "Reference: ", nil, LAYOUT_SIDE_BOTTOM|LAYOUT_CENTER_Y)
      @reftext = FXLabel.new(frame2, "f0", nil, LAYOUT_SIDE_BOTTOM|LAYOUT_CENTER_Y)
      @okButton = FXButton.new(frame3, "  OK  ", nil, self, FXDialogBox::ID_ACCEPT, FRAME_RAISED|FRAME_THICK|LAYOUT_SIDE_RIGHT|LAYOUT_RIGHT|LAYOUT_CENTER_Y)
      FXButton.new(frame3, "Cancel", nil, self, FXDialogBox::ID_CANCEL, FRAME_RAISED|FRAME_THICK|LAYOUT_SIDE_RIGHT|LAYOUT_RIGHT|LAYOUT_CENTER_Y)
      def setdefault
         @pressure.text = $defaults['bcp'].to_s
      end
   end

Public Instance methods

[Source]

# File dialogs.rb, line 1396
      def setdefault
         @pressure.text = $defaults['bcp'].to_s
      end

[Validate]