class ExpandChangesDialog
include Contracts ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Class Methods
new(parent = nil)
click to toggle source
Calls superclass method
# File lib/tmis/interface/forms/expand_changes.rb, line 16 def initialize(parent = nil) super(parent) @ui = Ui::ExpandChangesDialog.new @ui.setup_ui self @date = Date.parse(parent.ui.dateDateEdit.date.toString(Qt::ISODate)) monday = Qt::Date.fromString(@date.monday.to_s, Qt::ISODate) @ui.fromDateDateEdit.setDate monday @ui.toDateDateEdit.setDate monday end
Public Instance Methods
show_message(text)
click to toggle source
# File lib/tmis/interface/forms/expand_changes.rb, line 123 def show_message(text) box = Qt::MessageBox.new box.setText text box.exec end