#NEWLINE# def _init_actions( self ) : #NEWLINE# #INDENT# icon_size = QtCore . QSize ( 16 , 16 ) #NEWLINE# icon = icons . icon ( 'edit-find' , ':/pyqode-icons/rc/edit-find.png' , 'fa.search' ) #NEWLINE# self . actionSearch . setIcon ( icon ) #NEWLINE# self . actionSearch . setShortcut ( 'Ctrl+F' ) #NEWLINE# self . labelSearch . setPixmap ( icon . pixmap ( icon_size ) ) #NEWLINE# icon = icons . icon ( 'edit-find-replace' , ':/pyqode-icons/rc/edit-find-replace.png' , 'fa.search-plus' ) #NEWLINE# self . actionActionSearchAndReplace . setShortcut ( 'Ctrl+H' ) #NEWLINE# self . actionActionSearchAndReplace . setIcon ( icon ) #NEWLINE# self . labelReplace . setPixmap ( icon . pixmap ( icon_size ) ) #NEWLINE# icon = icons . icon ( 'go-up' , ':/pyqode-icons/rc/go-up.png' , 'fa.arrow-up' ) #NEWLINE# self . actionFindPrevious . setShortcut ( 'Shift+F3' ) #NEWLINE# self . actionFindPrevious . setIcon ( icon ) #NEWLINE# self . toolButtonPrevious . setIcon ( icon ) #NEWLINE# self . toolButtonPrevious . setIconSize ( icon_size ) #NEWLINE# icon = icons . icon ( 'go-down' , ':/pyqode-icons/rc/go-down.png' , 'fa.arrow-down' ) #NEWLINE# self . actionFindNext . setShortcut ( 'F3' ) #NEWLINE# self . actionFindNext . setIcon ( icon ) #NEWLINE# self . toolButtonNext . setIcon ( icon ) #NEWLINE# self . toolButtonNext . setIconSize ( icon_size ) #NEWLINE# icon = icons . icon ( 'window-close' , ':/pyqode-icons/rc/close.png' , 'fa.close' ) #NEWLINE# self . toolButtonClose . setIcon ( icon ) #NEWLINE# self . toolButtonClose . setIconSize ( icon_size ) #NEWLINE# self . menu = QtWidgets . QMenu ( self . editor ) #NEWLINE# self . menu . setTitle ( _ ( 'Search' ) ) #NEWLINE# self . menu . menuAction ( ) . setIcon ( self . actionSearch . icon ( ) ) #NEWLINE# self . menu . addAction ( self . actionSearch ) #NEWLINE# self . actionSearch . setShortcutContext ( QtCore . Qt . WidgetShortcut ) #NEWLINE# self . menu . addAction ( self . actionActionSearchAndReplace ) #NEWLINE# self . actionActionSearchAndReplace . setShortcutContext ( QtCore . Qt . WidgetShortcut ) #NEWLINE# self . menu . addAction ( self . actionFindNext ) #NEWLINE# self . actionFindNext . setShortcutContext ( QtCore . Qt . WidgetShortcut ) #NEWLINE# self . menu . addAction ( self . actionFindPrevious ) #NEWLINE# self . actionFindPrevious . setShortcutContext ( QtCore . Qt . WidgetShortcut )