#NEWLINE# def setupUi( self , MainWindow ) : #NEWLINE# #INDENT# MainWindow . setObjectName ( 'MainWindow' ) #NEWLINE# MainWindow . resize ( 1024 , 768 ) #NEWLINE# font = QtGui . QFont ( ) #NEWLINE# MainWindow . setFont ( font ) #NEWLINE# icon = QtGui . QIcon ( ) #NEWLINE# icon . addPixmap ( QtGui . QPixmap ( ':/logo/resources/logo_320x320.png' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# MainWindow . setWindowIcon ( icon ) #NEWLINE# MainWindow . setAnimated ( True ) #NEWLINE# MainWindow . setDocumentMode ( False ) #NEWLINE# self . centralwidget = QtGui . QWidget ( MainWindow ) #NEWLINE# self . centralwidget . setObjectName ( 'centralwidget' ) #NEWLINE# self . verticalLayout_5 = QtGui . QVBoxLayout ( self . centralwidget ) #NEWLINE# self . verticalLayout_5 . setSpacing ( 5 ) #NEWLINE# self . verticalLayout_5 . setContentsMargins ( 5 , 5 , 11 , 5 ) #NEWLINE# self . verticalLayout_5 . setObjectName ( 'verticalLayout_5' ) #NEWLINE# self . frameOmniSettings = QtGui . QFrame ( self . centralwidget ) #NEWLINE# sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Minimum , QtGui . QSizePolicy . Fixed ) #NEWLINE# sizePolicy . setHorizontalStretch ( 0 ) #NEWLINE# sizePolicy . setVerticalStretch ( 0 ) #NEWLINE# sizePolicy . setHeightForWidth ( self . frameOmniSettings . sizePolicy ( ) . hasHeightForWidth ( ) ) #NEWLINE# self . frameOmniSettings . setSizePolicy ( sizePolicy ) #NEWLINE# self . frameOmniSettings . setObjectName ( 'frameOmniSettings' ) #NEWLINE# self . horizontalLayout = QtGui . QHBoxLayout ( self . frameOmniSettings ) #NEWLINE# self . horizontalLayout . setSpacing ( 7 ) #NEWLINE# self . horizontalLayout . setSizeConstraint ( QtGui . QLayout . SetDefaultConstraint ) #NEWLINE# self . horizontalLayout . setContentsMargins ( ( - 1 ) , ( - 1 ) , ( - 1 ) , 1 ) #NEWLINE# self . horizontalLayout . setObjectName ( 'horizontalLayout' ) #NEWLINE# self . omniBar = QtGui . QLineEdit ( self . frameOmniSettings ) #NEWLINE# sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Expanding ) #NEWLINE# sizePolicy . setHorizontalStretch ( 1 ) #NEWLINE# sizePolicy . setVerticalStretch ( 0 ) #NEWLINE# sizePolicy . setHeightForWidth ( self . omniBar . sizePolicy ( ) . hasHeightForWidth ( ) ) #NEWLINE# self . omniBar . setSizePolicy ( sizePolicy ) #NEWLINE# self . omniBar . setMaxLength ( 65535 ) #NEWLINE# self . omniBar . setFrame ( False ) #NEWLINE# self . omniBar . setObjectName ( 'omniBar' ) #NEWLINE# self . horizontalLayout . addWidget ( self . omniBar ) #NEWLINE# self . btnSettings = QtGui . QPushButton ( self . frameOmniSettings ) #NEWLINE# sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Maximum , QtGui . QSizePolicy . Maximum ) #NEWLINE# sizePolicy . setHorizontalStretch ( 0 ) #NEWLINE# sizePolicy . setVerticalStretch ( 1 ) #NEWLINE# sizePolicy . setHeightForWidth ( self . btnSettings . sizePolicy ( ) . hasHeightForWidth ( ) ) #NEWLINE# self . btnSettings . setSizePolicy ( sizePolicy ) #NEWLINE# self . btnSettings . setText ( '' ) #NEWLINE# icon1 = QtGui . QIcon ( ) #NEWLINE# icon1 . addPixmap ( QtGui . QPixmap ( ':/icons/resources/gear_32x32.png' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . btnSettings . setIcon ( icon1 ) #NEWLINE# self . btnSettings . setFlat ( True ) #NEWLINE# self . btnSettings . setObjectName ( 'btnSettings' ) #NEWLINE# self . horizontalLayout . addWidget ( self . btnSettings ) #NEWLINE# self . verticalLayout_5 . addWidget ( self . frameOmniSettings ) #NEWLINE# self . splitter = QtGui . QSplitter ( self . centralwidget ) #NEWLINE# self . splitter . setOrientation ( QtCore . Qt . Horizontal ) #NEWLINE# self . splitter . setObjectName ( 'splitter' ) #NEWLINE# self . layoutWidget = QtGui . QWidget ( self . splitter ) #NEWLINE# self . layoutWidget . setObjectName ( 'layoutWidget' ) #NEWLINE# self . verticalLayout_3 = QtGui . QVBoxLayout ( self . layoutWidget ) #NEWLINE# self . verticalLayout_3 . setSpacing ( 7 ) #NEWLINE# self . verticalLayout_3 . setContentsMargins ( 11 , ( - 1 ) , ( - 1 ) , ( - 1 ) ) #NEWLINE# self . verticalLayout_3 . setObjectName ( 'verticalLayout_3' ) #NEWLINE# self . historyLabel = QtGui . QLabel ( self . layoutWidget ) #NEWLINE# self . historyLabel . setText ( '' ) #NEWLINE# self . historyLabel . setTextFormat ( QtCore . Qt . RichText ) #NEWLINE# self . historyLabel . setAlignment ( QtCore . Qt . AlignCenter ) #NEWLINE# self . historyLabel . setWordWrap ( True ) #NEWLINE# self . historyLabel . setObjectName ( 'historyLabel' ) #NEWLINE# self . verticalLayout_3 . addWidget ( self . historyLabel ) #NEWLINE# self . toolBox = QtGui . QStackedWidget ( self . splitter ) #NEWLINE# self . toolBox . setEnabled ( True ) #NEWLINE# sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Preferred , QtGui . QSizePolicy . Preferred ) #NEWLINE# sizePolicy . setHorizontalStretch ( 4 ) #NEWLINE# sizePolicy . setVerticalStretch ( 4 ) #NEWLINE# sizePolicy . setHeightForWidth ( self . toolBox . sizePolicy ( ) . hasHeightForWidth ( ) ) #NEWLINE# self . toolBox . setSizePolicy ( sizePolicy ) #NEWLINE# font = QtGui . QFont ( ) #NEWLINE# font . setWeight ( 50 ) #NEWLINE# font . setBold ( False ) #NEWLINE# self . toolBox . setFont ( font ) #NEWLINE# self . toolBox . setStyleSheet ( '' ) #NEWLINE# self . toolBox . setObjectName ( 'toolBox' ) #NEWLINE# self . tabEditor = QtGui . QWidget ( ) #NEWLINE# self . tabEditor . setObjectName ( 'tabEditor' ) #NEWLINE# self . verticalLayout_2 = QtGui . QVBoxLayout ( self . tabEditor ) #NEWLINE# self . verticalLayout_2 . setSpacing ( 5 ) #NEWLINE# self . verticalLayout_2 . setContentsMargins ( 0 , 0 , 0 , 2 ) #NEWLINE# self . verticalLayout_2 . setObjectName ( 'verticalLayout_2' ) #NEWLINE# self . horizontalLayout_3 = QtGui . QHBoxLayout ( ) #NEWLINE# self . horizontalLayout_3 . setSpacing ( 0 ) #NEWLINE# self . horizontalLayout_3 . setObjectName ( 'horizontalLayout_3' ) #NEWLINE# self . verticalLayout_2 . addLayout ( self . horizontalLayout_3 ) #NEWLINE# self . horizontalLayout_2 = QtGui . QHBoxLayout ( ) #NEWLINE# self . horizontalLayout_2 . setSpacing ( 2 ) #NEWLINE# self . horizontalLayout_2 . setSizeConstraint ( QtGui . QLayout . SetDefaultConstraint ) #NEWLINE# self . horizontalLayout_2 . setContentsMargins ( 0 , 0 , 0 , 0 ) #NEWLINE# self . horizontalLayout_2 . setObjectName ( 'horizontalLayout_2' ) #NEWLINE# self . label = QtGui . QLabel ( self . tabEditor ) #NEWLINE# self . label . setObjectName ( 'label' ) #NEWLINE# self . horizontalLayout_2 . addWidget ( self . label ) #NEWLINE# self . verticalLayout_2 . addLayout ( self . horizontalLayout_2 ) #NEWLINE# self . toolBox . addWidget ( self . tabEditor ) #NEWLINE# self . tabPreview = QtGui . QWidget ( ) #NEWLINE# self . tabPreview . setObjectName ( 'tabPreview' ) #NEWLINE# self . verticalLayout = QtGui . QVBoxLayout ( self . tabPreview ) #NEWLINE# self . verticalLayout . setContentsMargins ( 2 , 2 , 2 , 2 ) #NEWLINE# self . verticalLayout . setObjectName ( 'verticalLayout' ) #NEWLINE# self . notePreview = QtGui . QTextBrowser ( self . tabPreview ) #NEWLINE# sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Expanding ) #NEWLINE# sizePolicy . setHorizontalStretch ( 0 ) #NEWLINE# sizePolicy . setVerticalStretch ( 0 ) #NEWLINE# sizePolicy . setHeightForWidth ( self . notePreview . sizePolicy ( ) . hasHeightForWidth ( ) ) #NEWLINE# self . notePreview . setSizePolicy ( sizePolicy ) #NEWLINE# self . notePreview . setFrameShape ( QtGui . QFrame . NoFrame ) #NEWLINE# self . notePreview . setOpenExternalLinks ( False ) #NEWLINE# self . notePreview . setOpenLinks ( False ) #NEWLINE# self . notePreview . setObjectName ( 'notePreview' ) #NEWLINE# self . verticalLayout . addWidget ( self . notePreview ) #NEWLINE# self . toolBox . addWidget ( self . tabPreview ) #NEWLINE# self . tabDiff = QtGui . QWidget ( ) #NEWLINE# self . tabDiff . setObjectName ( 'tabDiff' ) #NEWLINE# self . verticalLayout_4 = QtGui . QVBoxLayout ( self . tabDiff ) #NEWLINE# self . verticalLayout_4 . setContentsMargins ( 2 , 2 , 2 , 2 ) #NEWLINE# self . verticalLayout_4 . setObjectName ( 'verticalLayout_4' ) #NEWLINE# self . noteDiff = QtGui . QTextBrowser ( self . tabDiff ) #NEWLINE# self . noteDiff . setFrameShape ( QtGui . QFrame . NoFrame ) #NEWLINE# self . noteDiff . setLineWrapMode ( QtGui . QTextEdit . WidgetWidth ) #NEWLINE# self . noteDiff . setObjectName ( 'noteDiff' ) #NEWLINE# self . verticalLayout_4 . addWidget ( self . noteDiff ) #NEWLINE# self . toolBox . addWidget ( self . tabDiff ) #NEWLINE# self . verticalLayout_5 . addWidget ( self . splitter ) #NEWLINE# self . frameHistory = QtGui . QFrame ( self . centralwidget ) #NEWLINE# sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Minimum , QtGui . QSizePolicy . Fixed ) #NEWLINE# sizePolicy . setHorizontalStretch ( 0 ) #NEWLINE# sizePolicy . setVerticalStretch ( 0 ) #NEWLINE# sizePolicy . setHeightForWidth ( self . frameHistory . sizePolicy ( ) . hasHeightForWidth ( ) ) #NEWLINE# self . frameHistory . setSizePolicy ( sizePolicy ) #NEWLINE# self . frameHistory . setFrameShape ( QtGui . QFrame . NoFrame ) #NEWLINE# self . frameHistory . setFrameShadow ( QtGui . QFrame . Raised ) #NEWLINE# self . frameHistory . setObjectName ( 'frameHistory' ) #NEWLINE# self . horizontalLayout_4 = QtGui . QHBoxLayout ( self . frameHistory ) #NEWLINE# self . horizontalLayout_4 . setSpacing ( 5 ) #NEWLINE# self . horizontalLayout_4 . setContentsMargins ( ( - 1 ) , 0 , ( - 1 ) , 0 ) #NEWLINE# self . horizontalLayout_4 . setObjectName ( 'horizontalLayout_4' ) #NEWLINE# self . historySlider = QtGui . QSlider ( self . frameHistory ) #NEWLINE# sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Fixed ) #NEWLINE# sizePolicy . setHorizontalStretch ( 0 ) #NEWLINE# sizePolicy . setVerticalStretch ( 0 ) #NEWLINE# sizePolicy . setHeightForWidth ( self . historySlider . sizePolicy ( ) . hasHeightForWidth ( ) ) #NEWLINE# self . historySlider . setSizePolicy ( sizePolicy ) #NEWLINE# self . historySlider . setMaximum ( 1 ) #NEWLINE# self . historySlider . setPageStep ( 1 ) #NEWLINE# self . historySlider . setProperty ( 'value' , 1 ) #NEWLINE# self . historySlider . setTracking ( False ) #NEWLINE# self . historySlider . setOrientation ( QtCore . Qt . Horizontal ) #NEWLINE# self . historySlider . setInvertedAppearance ( False ) #NEWLINE# self . historySlider . setInvertedControls ( False ) #NEWLINE# self . historySlider . setTickPosition ( QtGui . QSlider . TicksBelow ) #NEWLINE# self . historySlider . setTickInterval ( 1 ) #NEWLINE# self . historySlider . setObjectName ( 'historySlider' ) #NEWLINE# self . horizontalLayout_4 . addWidget ( self . historySlider ) #NEWLINE# self . btnPrevDate = QtGui . QPushButton ( self . frameHistory ) #NEWLINE# self . btnPrevDate . setText ( '' ) #NEWLINE# icon2 = QtGui . QIcon ( ) #NEWLINE# icon2 . addPixmap ( QtGui . QPixmap ( ':/icons/resources/date_previous.png' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . btnPrevDate . setIcon ( icon2 ) #NEWLINE# self . btnPrevDate . setFlat ( True ) #NEWLINE# self . btnPrevDate . setObjectName ( 'btnPrevDate' ) #NEWLINE# self . horizontalLayout_4 . addWidget ( self . btnPrevDate ) #NEWLINE# self . btnNextDate = QtGui . QPushButton ( self . frameHistory ) #NEWLINE# self . btnNextDate . setText ( '' ) #NEWLINE# icon3 = QtGui . QIcon ( ) #NEWLINE# icon3 . addPixmap ( QtGui . QPixmap ( ':/icons/resources/date_next.png' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . btnNextDate . setIcon ( icon3 ) #NEWLINE# self . btnNextDate . setFlat ( True ) #NEWLINE# self . btnNextDate . setObjectName ( 'btnNextDate' ) #NEWLINE# self . horizontalLayout_4 . addWidget ( self . btnNextDate ) #NEWLINE# self . verticalLayout_5 . addWidget ( self . frameHistory ) #NEWLINE# MainWindow . setCentralWidget ( self . centralwidget ) #NEWLINE# self . retranslateUi ( MainWindow ) #NEWLINE# self . toolBox . setCurrentIndex ( 0 ) #NEWLINE# QtCore . QObject . connect ( self . historySlider , QtCore . SIGNAL ( 'valueChanged(int)' ) , MainWindow . load_old_note ) #NEWLINE# QtCore . QObject . connect ( self . btnPrevDate , QtCore . SIGNAL ( 'clicked()' ) , icon3 . click_older_date ) #NEWLINE# QtCore . QObject . connect ( self . btnNextDate , QtCore . SIGNAL ( 'clicked()' ) , MainWindow . click_newer_date ) #NEWLINE# QtCore . QObject . connect ( self . omniBar , QtCore . SIGNAL ( 'textChanged(QString)' ) , MainWindow . start_search ) #NEWLINE# QtCore . QObject . connect ( self . btnSettings , QtCore . SIGNAL ( 'clicked()' ) , MainWindow . load_settings ) #NEWLINE# QtCore . QObject . connect ( self . omniBar , QtCore . SIGNAL ( 'returnPressed()' ) , MainWindow . new_note ) #NEWLINE# QtCore . QObject . connect ( self . historyLabel , QtCore . SIGNAL ( 'linkActivated(QString)' ) , MainWindow . toggle_history_bar_view ) #NEWLINE# QtCore . QMetaObject . connectSlotsByName ( MainWindow ) #NEWLINE# MainWindow . setTabOrder ( self . omniBar , self . toolBox ) #NEWLINE# MainWindow . setTabOrder ( self . toolBox , self . btnPrevDate ) #NEWLINE# MainWindow . setTabOrder ( self . btnPrevDate , self . btnNextDate ) #NEWLINE# MainWindow . setTabOrder ( self . btnNextDate , self . historySlider ) #NEWLINE# MainWindow . setTabOrder ( self . historySlider , self . btnSettings ) #NEWLINE# MainWindow . setTabOrder ( self . btnSettings , self . noteDiff ) #NEWLINE# MainWindow . setTabOrder ( self . noteDiff , self . notePreview )