#NEWLINE# def setupUi( self , MainWindow ) : #NEWLINE# #INDENT# MainWindow . setObjectName ( 'MainWindow' ) #NEWLINE# MainWindow . resize ( 574 , 601 ) #NEWLINE# icon = QtGui . QIcon ( ) #NEWLINE# icon . addPixmap ( QtGui . QPixmap ( ':/icons/kaddressbook.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# MainWindow . setWindowIcon ( icon ) #NEWLINE# self . centralWidget = QtGui . QWidget ( MainWindow ) #NEWLINE# self . centralWidget . setObjectName ( 'centralWidget' ) #NEWLINE# self . horizontalLayout_3 = QtGui . QHBoxLayout ( self . centralWidget ) #NEWLINE# self . horizontalLayout_3 . setMargin ( 3 ) #NEWLINE# self . horizontalLayout_3 . setObjectName ( 'horizontalLayout_3' ) #NEWLINE# self . tabs = QtGui . QTabWidget ( self . centralWidget ) #NEWLINE# sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Expanding ) #NEWLINE# sizePolicy . setHorizontalStretch ( 0 ) #NEWLINE# sizePolicy . setVerticalStretch ( 0 ) #NEWLINE# sizePolicy . setHeightForWidth ( self . tabs . sizePolicy ( ) . hasHeightForWidth ( ) ) #NEWLINE# self . tabs . setSizePolicy ( sizePolicy ) #NEWLINE# self . tabs . setObjectName ( 'tabs' ) #NEWLINE# self . tab = QtGui . QWidget ( ) #NEWLINE# self . tab . setObjectName ( 'tab' ) #NEWLINE# self . horizontalLayout = QtGui . QHBoxLayout ( self . tab ) #NEWLINE# self . horizontalLayout . setMargin ( 0 ) #NEWLINE# self . horizontalLayout . setObjectName ( 'horizontalLayout' ) #NEWLINE# self . text = CodeEditor ( self . tab ) #NEWLINE# font = QtGui . QFont ( ) #NEWLINE# font . setFamily ( 'DejaVu Sans Mono' ) #NEWLINE# self . text . setFont ( font ) #NEWLINE# self . text . setFrameShape ( QtGui . QFrame . NoFrame ) #NEWLINE# self . text . setFrameShadow ( QtGui . QFrame . Plain ) #NEWLINE# self . text . setLineWidth ( 0 ) #NEWLINE# self . text . setObjectName ( 'text' ) #NEWLINE# self . horizontalLayout . addWidget ( self . text ) #NEWLINE# self . tabs . addTab ( self . tab , '' ) #NEWLINE# self . tab_2 = QtGui . QWidget ( ) #NEWLINE# self . tab_2 . setObjectName ( 'tab_2' ) #NEWLINE# self . horizontalLayout_2 = QtGui . QHBoxLayout ( self . tab_2 ) #NEWLINE# self . horizontalLayout_2 . setMargin ( 0 ) #NEWLINE# self . horizontalLayout_2 . setObjectName ( 'horizontalLayout_2' ) #NEWLINE# self . style = CodeEditor ( self . tab_2 ) #NEWLINE# font = QtGui . QFont ( ) #NEWLINE# font . setFamily ( 'DejaVu Sans Mono' ) #NEWLINE# self . style . setFont ( font ) #NEWLINE# self . style . setFrameShape ( QtGui . QFrame . NoFrame ) #NEWLINE# self . style . setObjectName ( 'style' ) #NEWLINE# self . horizontalLayout_2 . addWidget ( self . style ) #NEWLINE# self . tabs . addTab ( self . tab_2 , '' ) #NEWLINE# self . horizontalLayout_3 . addWidget ( self . tabs ) #NEWLINE# MainWindow . setCentralWidget ( self . centralWidget ) #NEWLINE# self . statusBar = QtGui . QStatusBar ( MainWindow ) #NEWLINE# self . statusBar . setObjectName ( 'statusBar' ) #NEWLINE# MainWindow . setStatusBar ( self . statusBar ) #NEWLINE# self . menuBar = QtGui . QMenuBar ( MainWindow ) #NEWLINE# self . menuBar . setGeometry ( QtCore . QRect ( 0 , 0 , 574 , 32 ) ) #NEWLINE# self . menuBar . setObjectName ( 'menuBar' ) #NEWLINE# self . menuText = QtGui . QMenu ( self . menuBar ) #NEWLINE# self . menuText . setObjectName ( 'menuText' ) #NEWLINE# self . menuView = QtGui . QMenu ( self . menuBar ) #NEWLINE# self . menuView . setObjectName ( 'menuView' ) #NEWLINE# self . menuEdit = QtGui . QMenu ( self . menuBar ) #NEWLINE# self . menuEdit . setObjectName ( 'menuEdit' ) #NEWLINE# self . menuHelp = QtGui . QMenu ( self . menuBar ) #NEWLINE# self . menuHelp . setObjectName ( 'menuHelp' ) #NEWLINE# MainWindow . setMenuBar ( self . menuBar ) #NEWLINE# self . toolBar = QtGui . QToolBar ( MainWindow ) #NEWLINE# self . toolBar . setObjectName ( 'toolBar' ) #NEWLINE# MainWindow . addToolBar ( QtCore . Qt . TopToolBarArea , MainWindow . toolBar ) #NEWLINE# self . pdfbar = QtGui . QToolBar ( MainWindow ) #NEWLINE# self . pdfbar . setObjectName ( 'pdfbar' ) #NEWLINE# MainWindow . addToolBar ( QtCore . Qt . TopToolBarArea , self . pdfbar ) #NEWLINE# self . dock = QtGui . QDockWidget ( MainWindow ) #NEWLINE# icon1 = QtGui . QIcon ( ) #NEWLINE# icon1 . addPixmap ( QtGui . QPixmap ( ':/icons/pdf.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . dock . setWindowIcon ( icon1 ) #NEWLINE# self . dock . setObjectName ( 'dock' ) #NEWLINE# self . dockWidgetContents = QtGui . QWidget ( ) #NEWLINE# self . dockWidgetContents . setObjectName ( 'dockWidgetContents' ) #NEWLINE# self . verticalLayout = QtGui . QVBoxLayout ( self . dockWidgetContents ) #NEWLINE# self . verticalLayout . setMargin ( 0 ) #NEWLINE# self . verticalLayout . setObjectName ( 'verticalLayout' ) #NEWLINE# self . dockLayout = QtGui . QVBoxLayout ( ) #NEWLINE# self . dockLayout . setSpacing ( 0 ) #NEWLINE# self . dockLayout . setSizeConstraint ( QtGui . QLayout . SetNoConstraint ) #NEWLINE# self . dockLayout . setContentsMargins ( ( - 1 ) , ( - 1 ) , ( - 1 ) , 0 ) #NEWLINE# self . dockLayout . setObjectName ( 'dockLayout' ) #NEWLINE# self . verticalLayout . addLayout ( self . dockLayout ) #NEWLINE# self . dock . setWidget ( self . dockWidgetContents ) #NEWLINE# MainWindow . addDockWidget ( QtCore . Qt . DockWidgetArea ( 2 ) , self . dock ) #NEWLINE# self . editbar = QtGui . QToolBar ( MainWindow ) #NEWLINE# self . editbar . setObjectName ( 'editbar' ) #NEWLINE# MainWindow . addToolBar ( QtCore . Qt . TopToolBarArea , self . editbar ) #NEWLINE# self . searchbar = QtGui . QToolBar ( MainWindow ) #NEWLINE# self . searchbar . setMovable ( False ) #NEWLINE# self . searchbar . setAllowedAreas ( QtCore . Qt . BottomToolBarArea ) #NEWLINE# self . searchbar . setFloatable ( False ) #NEWLINE# self . searchbar . setObjectName ( 'searchbar' ) #NEWLINE# MainWindow . addToolBar ( QtCore . Qt . BottomToolBarArea , self . searchbar ) #NEWLINE# self . structure = QtGui . QDockWidget ( MainWindow ) #NEWLINE# self . structure . setObjectName ( 'structure' ) #NEWLINE# self . dockWidgetContents_2 = QtGui . QWidget ( ) #NEWLINE# self . dockWidgetContents_2 . setObjectName ( 'dockWidgetContents_2' ) #NEWLINE# self . verticalLayout_3 = QtGui . QVBoxLayout ( self . dockWidgetContents_2 ) #NEWLINE# self . verticalLayout_3 . setMargin ( 0 ) #NEWLINE# self . verticalLayout_3 . setObjectName ( 'verticalLayout_3' ) #NEWLINE# self . verticalLayout_2 = QtGui . QVBoxLayout ( ) #NEWLINE# self . verticalLayout_2 . setObjectName ( 'verticalLayout_2' ) #NEWLINE# self . tree = QtGui . QTreeWidget ( self . dockWidgetContents_2 ) #NEWLINE# self . tree . setEditTriggers ( QtGui . QAbstractItemView . NoEditTriggers ) #NEWLINE# self . tree . setProperty ( 'showDropIndicator' , QtCore . QVariant ( False ) ) #NEWLINE# self . tree . setAlternatingRowColors ( True ) #NEWLINE# self . tree . setHeaderHidden ( False ) #NEWLINE# self . tree . setObjectName ( 'tree' ) #NEWLINE# self . tree . header ( ) . setVisible ( True ) #NEWLINE# self . tree . header ( ) . setStretchLastSection ( False ) #NEWLINE# self . verticalLayout_2 . addWidget ( self . tree ) #NEWLINE# self . verticalLayout_3 . addLayout ( self . verticalLayout_2 ) #NEWLINE# self . structure . setWidget ( self . dockWidgetContents_2 ) #NEWLINE# MainWindow . addDockWidget ( QtCore . Qt . DockWidgetArea ( 1 ) , self . structure ) #NEWLINE# self . actionLoad_Text = QtGui . QAction ( MainWindow ) #NEWLINE# icon2 = QtGui . QIcon ( ) #NEWLINE# icon2 . addPixmap ( QtGui . QPixmap ( ':/icons/fileopen.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionLoad_Text . setIcon ( icon2 ) #NEWLINE# self . actionLoad_Text . setObjectName ( 'actionLoad_Text' ) #NEWLINE# self . actionLoad_Style = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionLoad_Style . setIcon ( icon2 ) #NEWLINE# self . actionLoad_Style . setObjectName ( 'actionLoad_Style' ) #NEWLINE# self . actionRender = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionRender . setIcon ( icon1 ) #NEWLINE# self . actionRender . setObjectName ( 'actionRender' ) #NEWLINE# self . actionSave_Text = QtGui . QAction ( MainWindow ) #NEWLINE# icon3 = QtGui . QIcon ( ) #NEWLINE# icon3 . addPixmap ( QtGui . QPixmap ( ':/icons/filesave.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionSave_Text . setIcon ( icon3 ) #NEWLINE# self . actionSave_Text . setObjectName ( 'actionSave_Text' ) #NEWLINE# self . actionSave_Style = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionSave_Style . setIcon ( icon3 ) #NEWLINE# self . actionSave_Style . setObjectName ( 'actionSave_Style' ) #NEWLINE# self . actionSave_PDF = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionSave_PDF . setIcon ( icon1 ) #NEWLINE# self . actionSave_PDF . setObjectName ( 'actionSave_PDF' ) #NEWLINE# self . actionSaveAs_Text = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionSaveAs_Text . setIcon ( icon3 ) #NEWLINE# self . actionSaveAs_Text . setObjectName ( 'actionSaveAs_Text' ) #NEWLINE# self . actionSaveAs_Style = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionSaveAs_Style . setIcon ( icon3 ) #NEWLINE# self . actionSaveAs_Style . setObjectName ( 'actionSaveAs_Style' ) #NEWLINE# self . actionSaveAs_PDF = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionSaveAs_PDF . setIcon ( icon1 ) #NEWLINE# self . actionSaveAs_PDF . setObjectName ( 'actionSaveAs_PDF' ) #NEWLINE# self . actionUndo1 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionUndo1 . setEnabled ( False ) #NEWLINE# icon4 = QtGui . QIcon ( ) #NEWLINE# icon4 . addPixmap ( QtGui . QPixmap ( ':/icons/undo.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionUndo1 . setIcon ( icon4 ) #NEWLINE# self . actionUndo1 . setObjectName ( 'actionUndo1' ) #NEWLINE# self . actionRedo1 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionRedo1 . setEnabled ( False ) #NEWLINE# icon5 = QtGui . QIcon ( ) #NEWLINE# icon5 . addPixmap ( QtGui . QPixmap ( ':/icons/redo.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionRedo1 . setIcon ( icon5 ) #NEWLINE# self . actionRedo1 . setObjectName ( 'actionRedo1' ) #NEWLINE# self . actionCut1 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionCut1 . setEnabled ( False ) #NEWLINE# icon6 = QtGui . QIcon ( ) #NEWLINE# icon6 . addPixmap ( QtGui . QPixmap ( ':/icons/editcut.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionCut1 . setIcon ( icon6 ) #NEWLINE# self . actionCut1 . setObjectName ( 'actionCut1' ) #NEWLINE# self . actionCopy1 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionCopy1 . setEnabled ( False ) #NEWLINE# icon7 = QtGui . QIcon ( ) #NEWLINE# icon7 . addPixmap ( QtGui . QPixmap ( ':/icons/editcopy.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionCopy1 . setIcon ( icon7 ) #NEWLINE# self . actionCopy1 . setObjectName ( 'actionCopy1' ) #NEWLINE# self . actionPaste1 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionPaste1 . setEnabled ( False ) #NEWLINE# icon8 = QtGui . QIcon ( ) #NEWLINE# icon8 . addPixmap ( QtGui . QPixmap ( ':/icons/editpaste.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionPaste1 . setIcon ( icon8 ) #NEWLINE# self . actionPaste1 . setObjectName ( 'actionPaste1' ) #NEWLINE# self . actionUndo2 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionUndo2 . setEnabled ( False ) #NEWLINE# self . actionUndo2 . setIcon ( icon4 ) #NEWLINE# self . actionUndo2 . setObjectName ( 'actionUndo2' ) #NEWLINE# self . actionRedo2 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionRedo2 . setEnabled ( False ) #NEWLINE# self . actionRedo2 . setIcon ( icon5 ) #NEWLINE# self . actionRedo2 . setObjectName ( 'actionRedo2' ) #NEWLINE# self . actionCut2 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionCut2 . setEnabled ( False ) #NEWLINE# self . actionCut2 . setIcon ( icon6 ) #NEWLINE# self . actionCut2 . setObjectName ( 'actionCut2' ) #NEWLINE# self . actionCopy2 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionCopy2 . setEnabled ( False ) #NEWLINE# self . actionCopy2 . setIcon ( icon7 ) #NEWLINE# self . actionCopy2 . setObjectName ( 'actionCopy2' ) #NEWLINE# self . actionPaste2 = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionPaste2 . setEnabled ( False ) #NEWLINE# self . actionPaste2 . setIcon ( icon8 ) #NEWLINE# self . actionPaste2 . setObjectName ( 'actionPaste2' ) #NEWLINE# self . actionFind = QtGui . QAction ( MainWindow ) #NEWLINE# icon9 = QtGui . QIcon ( ) #NEWLINE# icon9 . addPixmap ( QtGui . QPixmap ( ':/icons/find.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionFind . setIcon ( icon9 ) #NEWLINE# self . actionFind . setObjectName ( 'actionFind' ) #NEWLINE# self . actionAbout_Bookrest = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionAbout_Bookrest . setObjectName ( 'actionAbout_Bookrest' ) #NEWLINE# self . actionTest_Action = QtGui . QAction ( MainWindow ) #NEWLINE# self . actionTest_Action . setObjectName ( 'actionTest_Action' ) #NEWLINE# self . actionSettings = QtGui . QAction ( MainWindow ) #NEWLINE# icon10 = QtGui . QIcon ( ) #NEWLINE# icon10 . addPixmap ( QtGui . QPixmap ( ':/icons/configure.svg' ) , QtGui . QIcon . Normal , QtGui . QIcon . Off ) #NEWLINE# self . actionSettings . setIcon ( icon10 ) #NEWLINE# self . actionSettings . setObjectName ( 'actionSettings' ) #NEWLINE# self . menuText . addAction ( self . actionLoad_Text ) #NEWLINE# self . menuText . addAction ( self . actionLoad_Style ) #NEWLINE# self . menuText . addSeparator ( ) #NEWLINE# self . menuText . addAction ( self . actionSave_Text ) #NEWLINE# self . menuText . addAction ( self . actionSaveAs_Text ) #NEWLINE# self . menuText . addAction ( self . actionSave_Style ) #NEWLINE# self . menuText . addAction ( self . actionSaveAs_Style ) #NEWLINE# self . menuText . addAction ( self . actionSave_PDF ) #NEWLINE# self . menuText . addAction ( self . actionSaveAs_PDF ) #NEWLINE# self . menuEdit . addAction ( self . actionUndo1 ) #NEWLINE# self . menuEdit . addAction ( self . actionUndo2 ) #NEWLINE# self . menuEdit . addAction ( self . actionRedo1 ) #NEWLINE# self . menuEdit . addAction ( self . actionRedo2 ) #NEWLINE# self . menuEdit . addSeparator ( ) #NEWLINE# self . menuEdit . addAction ( self . actionCut1 ) #NEWLINE# self . menuEdit . addAction ( self . actionCut2 ) #NEWLINE# self . menuEdit . addAction ( self . actionCopy1 ) #NEWLINE# self . menuEdit . addAction ( self . actionCopy2 ) #NEWLINE# self . menuEdit . addAction ( self . actionPaste1 ) #NEWLINE# self . menuEdit . addAction ( self . actionPaste2 ) #NEWLINE# self . menuEdit . addSeparator ( ) #NEWLINE# self . menuEdit . addAction ( self . actionFind ) #NEWLINE# self . menuEdit . addSeparator ( ) #NEWLINE# self . menuEdit . addAction ( self . actionSettings ) #NEWLINE# self . menuHelp . addAction ( self . actionAbout_Bookrest ) #NEWLINE# self . menuBar . addAction ( self . menuText . menuAction ( ) ) #NEWLINE# self . menuBar . addAction ( self . menuEdit . menuAction ( ) ) #NEWLINE# self . menuBar . addAction ( self . menuView . menuAction ( ) ) #NEWLINE# self . menuBar . addAction ( self . menuHelp . menuAction ( ) ) #NEWLINE# self . toolBar . addAction ( self . actionLoad_Text ) #NEWLINE# self . toolBar . addAction ( self . actionRender ) #NEWLINE# self . toolBar . addAction ( self . actionSettings ) #NEWLINE# self . editbar . addAction ( self . actionUndo1 ) #NEWLINE# self . editbar . addAction ( self . actionUndo2 ) #NEWLINE# self . editbar . addAction ( self . actionRedo1 ) #NEWLINE# self . editbar . addAction ( self . actionRedo2 ) #NEWLINE# self . editbar . addAction ( self . actionCut1 ) #NEWLINE# self . editbar . addAction ( self . actionCut2 ) #NEWLINE# self . editbar . addAction ( self . actionCopy1 ) #NEWLINE# self . editbar . addAction ( self . actionCopy2 ) #NEWLINE# self . editbar . addAction ( self . actionPaste1 ) #NEWLINE# self . editbar . addAction ( self . actionPaste2 ) #NEWLINE# self . retranslateUi ( MainWindow ) #NEWLINE# self . tabs . setCurrentIndex ( 0 ) #NEWLINE# QtCore . QMetaObject . connectSlotsByName ( MainWindow ) #NEWLINE# MainWindow . setTabOrder ( self . text , self . tabs ) #NEWLINE# MainWindow . setTabOrder ( self . tabs , self . style )