Method: Eiwaji::MainWindow#createActions

Defined in:
lib/mainwindow.rb

#createActionsObject



88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/mainwindow.rb', line 88

def createActions
  @veAct = Qt::Action.new(tr("&Analyze Text"), self)
  @veAct.statusTip = tr("Send the text in the editor to the lexer widget.")
  connect(@veAct, SIGNAL('triggered()'), self, SLOT('lexEditorText()'))

  @clipboardCaptureAct = Qt::Action.new(tr("&Capture Clipboard"), self)
  @clipboardCaptureAct.statusTip = tr("Automatically copy text to the editor and lexer")
  @clipboardCaptureAct.setCheckable(true)
  connect(@clipboardCaptureAct, SIGNAL('triggered()'), self, SLOT('toggleMainTextEditable()'))

  @settingsAct = Qt::Action.new(tr("&Settings..."), self)
  @settingsAct.statusTip = tr("Open the settings dialog")
  connect(@settingsAct, SIGNAL('triggered()'), self, SLOT('openSettings()'))
end