# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer/cardlist.ui' # # by: PyQt4 UI code generator 4.7.2 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(599, 462) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/find.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) MainWindow.setWindowIcon(icon) self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout.setSpacing(0) self.verticalLayout.setContentsMargins(4, 0, 4, 4) self.verticalLayout.setObjectName("verticalLayout") self.hlayout1 = QtGui.QHBoxLayout() self.hlayout1.setSpacing(4) self.hlayout1.setContentsMargins(0, 4, 0, 4) self.hlayout1.setObjectName("hlayout1") self.label = QtGui.QLabel(self.centralwidget) self.label.setObjectName("label") self.hlayout1.addWidget(self.label) self.filterEdit = QtGui.QLineEdit(self.centralwidget) self.filterEdit.setText("") self.filterEdit.setObjectName("filterEdit") self.hlayout1.addWidget(self.filterEdit) self.label_2 = QtGui.QLabel(self.centralwidget) self.label_2.setObjectName("label_2") self.hlayout1.addWidget(self.label_2) self.tagList = QtGui.QComboBox(self.centralwidget) self.tagList.setObjectName("tagList") self.hlayout1.addWidget(self.tagList) self.label_3 = QtGui.QLabel(self.centralwidget) self.label_3.setObjectName("label_3") self.hlayout1.addWidget(self.label_3) self.sortOrder = QtGui.QPushButton(self.centralwidget) self.sortOrder.setMaximumSize(QtCore.QSize(20, 20)) self.sortOrder.setFocusPolicy(QtCore.Qt.NoFocus) self.sortOrder.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/icons/view-sort-ascending.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.sortOrder.setIcon(icon1) self.sortOrder.setFlat(True) self.sortOrder.setObjectName("sortOrder") self.hlayout1.addWidget(self.sortOrder) self.sortBox = QtGui.QComboBox(self.centralwidget) self.sortBox.setObjectName("sortBox") self.hlayout1.addWidget(self.sortBox) self.verticalLayout.addLayout(self.hlayout1) self.splitter = QtGui.QSplitter(self.centralwidget) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setChildrenCollapsible(False) self.splitter.setObjectName("splitter") self.tableView = QtGui.QTableView(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(4) sizePolicy.setHeightForWidth(self.tableView.sizePolicy().hasHeightForWidth()) self.tableView.setSizePolicy(sizePolicy) self.tableView.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu) self.tableView.setFrameShape(QtGui.QFrame.NoFrame) self.tableView.setFrameShadow(QtGui.QFrame.Plain) self.tableView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.tableView.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) self.tableView.setTabKeyNavigation(False) self.tableView.setAlternatingRowColors(True) self.tableView.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.tableView.setObjectName("tableView") self.frame = QtGui.QFrame(self.splitter) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(2) sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setFrameShape(QtGui.QFrame.NoFrame) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName("frame") self.verticalLayout_2 = QtGui.QVBoxLayout(self.frame) self.verticalLayout_2.setContentsMargins(-1, 0, -1, 2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.splitter2 = QtGui.QSplitter(self.frame) self.splitter2.setOrientation(QtCore.Qt.Horizontal) self.splitter2.setChildrenCollapsible(False) self.splitter2.setObjectName("splitter2") self.fieldsArea = QtGui.QWidget(self.splitter2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(7) sizePolicy.setVerticalStretch(2) sizePolicy.setHeightForWidth(self.fieldsArea.sizePolicy().hasHeightForWidth()) self.fieldsArea.setSizePolicy(sizePolicy) self.fieldsArea.setObjectName("fieldsArea") self.cardInfoGroup = QtGui.QGroupBox(self.splitter2) self.cardInfoGroup.setObjectName("cardInfoGroup") self.verticalLayout_4 = QtGui.QVBoxLayout(self.cardInfoGroup) self.verticalLayout_4.setSpacing(0) self.verticalLayout_4.setMargin(4) self.verticalLayout_4.setObjectName("verticalLayout_4") self.cardLabel = QtGui.QLabel(self.cardInfoGroup) self.cardLabel.setText("") self.cardLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.cardLabel.setObjectName("cardLabel") self.verticalLayout_4.addWidget(self.cardLabel) self.verticalLayout_2.addWidget(self.splitter2) self.verticalLayout.addWidget(self.splitter) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 599, 20)) self.menubar.setObjectName("menubar") self.menuEdit = QtGui.QMenu(self.menubar) self.menuEdit.setObjectName("menuEdit") self.menuActions = QtGui.QMenu(self.menubar) self.menuActions.setObjectName("menuActions") self.menuJump = QtGui.QMenu(self.menubar) self.menuJump.setObjectName("menuJump") self.menu_Help = QtGui.QMenu(self.menubar) self.menu_Help.setObjectName("menu_Help") MainWindow.setMenuBar(self.menubar) self.toolBar = QtGui.QToolBar(MainWindow) self.toolBar.setIconSize(QtCore.QSize(32, 32)) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.ToolBarArea(QtCore.Qt.TopToolBarArea), self.toolBar) self.actionDelete = QtGui.QAction(MainWindow) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/icons/editdelete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionDelete.setIcon(icon2) self.actionDelete.setObjectName("actionDelete") self.actionAddTag = QtGui.QAction(MainWindow) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/icons/Anki_Add_Tag.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionAddTag.setIcon(icon3) self.actionAddTag.setObjectName("actionAddTag") self.actionDeleteTag = QtGui.QAction(MainWindow) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/icons/Anki_Del_Tag.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionDeleteTag.setIcon(icon4) self.actionDeleteTag.setObjectName("actionDeleteTag") self.actionAddCards = QtGui.QAction(MainWindow) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/icons/Anki_Card.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionAddCards.setIcon(icon5) self.actionAddCards.setObjectName("actionAddCards") self.actionReschedule = QtGui.QAction(MainWindow) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(":/icons/edit-undo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionReschedule.setIcon(icon6) self.actionReschedule.setObjectName("actionReschedule") self.actionSelectAll = QtGui.QAction(MainWindow) self.actionSelectAll.setObjectName("actionSelectAll") self.actionUndo = QtGui.QAction(MainWindow) self.actionUndo.setIcon(icon6) self.actionUndo.setObjectName("actionUndo") self.actionRedo = QtGui.QAction(MainWindow) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(":/icons/edit-redo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionRedo.setIcon(icon7) self.actionRedo.setObjectName("actionRedo") self.actionInvertSelection = QtGui.QAction(MainWindow) self.actionInvertSelection.setObjectName("actionInvertSelection") self.actionFind = QtGui.QAction(MainWindow) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(":/icons/document-preview.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFind.setIcon(icon8) self.actionFind.setObjectName("actionFind") self.actionFact = QtGui.QAction(MainWindow) icon9 = QtGui.QIcon() icon9.addPixmap(QtGui.QPixmap(":/icons/Anki_Fact.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFact.setIcon(icon9) self.actionFact.setObjectName("actionFact") self.actionNextCard = QtGui.QAction(MainWindow) icon10 = QtGui.QIcon() icon10.addPixmap(QtGui.QPixmap(":/icons/go-next.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionNextCard.setIcon(icon10) self.actionNextCard.setObjectName("actionNextCard") self.actionPreviousCard = QtGui.QAction(MainWindow) icon11 = QtGui.QIcon() icon11.addPixmap(QtGui.QPixmap(":/icons/go-previous.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionPreviousCard.setIcon(icon11) self.actionPreviousCard.setObjectName("actionPreviousCard") self.actionFirstCard = QtGui.QAction(MainWindow) icon12 = QtGui.QIcon() icon12.addPixmap(QtGui.QPixmap(":/icons/go-first.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionFirstCard.setIcon(icon12) self.actionFirstCard.setObjectName("actionFirstCard") self.actionLastCard = QtGui.QAction(MainWindow) icon13 = QtGui.QIcon() icon13.addPixmap(QtGui.QPixmap(":/icons/go-last.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionLastCard.setIcon(icon13) self.actionLastCard.setObjectName("actionLastCard") self.actionGuide = QtGui.QAction(MainWindow) icon14 = QtGui.QIcon() icon14.addPixmap(QtGui.QPixmap(":/icons/help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionGuide.setIcon(icon14) self.actionGuide.setObjectName("actionGuide") self.actionChangeModel = QtGui.QAction(MainWindow) icon15 = QtGui.QIcon() icon15.addPixmap(QtGui.QPixmap(":/icons/system-software-update.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionChangeModel.setIcon(icon15) self.actionChangeModel.setObjectName("actionChangeModel") self.actionSelectFacts = QtGui.QAction(MainWindow) self.actionSelectFacts.setObjectName("actionSelectFacts") self.actionFindReplace = QtGui.QAction(MainWindow) self.actionFindReplace.setObjectName("actionFindReplace") self.actionCram = QtGui.QAction(MainWindow) icon16 = QtGui.QIcon() icon16.addPixmap(QtGui.QPixmap(":/icons/view-pim-calendar.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionCram.setIcon(icon16) self.actionCram.setObjectName("actionCram") self.actionFont = QtGui.QAction(MainWindow) self.actionFont.setObjectName("actionFont") self.actionSuspend = QtGui.QAction(MainWindow) icon17 = QtGui.QIcon() icon17.addPixmap(QtGui.QPixmap(":/icons/media-playback-pause.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionSuspend.setIcon(icon17) self.actionSuspend.setObjectName("actionSuspend") self.actionUnsuspend = QtGui.QAction(MainWindow) icon18 = QtGui.QIcon() icon18.addPixmap(QtGui.QPixmap(":/icons/media-playback-start2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionUnsuspend.setIcon(icon18) self.actionUnsuspend.setObjectName("actionUnsuspend") self.actionTags = QtGui.QAction(MainWindow) icon19 = QtGui.QIcon() icon19.addPixmap(QtGui.QPixmap(":/icons/anki-tag.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionTags.setIcon(icon19) self.actionTags.setObjectName("actionTags") self.actionSort = QtGui.QAction(MainWindow) self.actionSort.setIcon(icon1) self.actionSort.setObjectName("actionSort") self.actionAddItems = QtGui.QAction(MainWindow) icon20 = QtGui.QIcon() icon20.addPixmap(QtGui.QPixmap(":/icons/list-add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionAddItems.setIcon(icon20) self.actionAddItems.setObjectName("actionAddItems") self.actionToggleSuspend = QtGui.QAction(MainWindow) self.actionToggleSuspend.setCheckable(True) self.actionToggleSuspend.setIcon(icon17) self.actionToggleSuspend.setObjectName("actionToggleSuspend") self.actionToggleMark = QtGui.QAction(MainWindow) self.actionToggleMark.setCheckable(True) icon21 = QtGui.QIcon() icon21.addPixmap(QtGui.QPixmap(":/icons/rating.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionToggleMark.setIcon(icon21) self.actionToggleMark.setObjectName("actionToggleMark") self.actionCardList = QtGui.QAction(MainWindow) icon22 = QtGui.QIcon() icon22.addPixmap(QtGui.QPixmap(":/icons/generate_07.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.actionCardList.setIcon(icon22) self.actionCardList.setObjectName("actionCardList") self.actionFindDuplicates = QtGui.QAction(MainWindow) self.actionFindDuplicates.setObjectName("actionFindDuplicates") self.menuEdit.addAction(self.actionUndo) self.menuEdit.addAction(self.actionRedo) self.menuEdit.addSeparator() self.menuEdit.addAction(self.actionSelectAll) self.menuEdit.addAction(self.actionSelectFacts) self.menuEdit.addAction(self.actionInvertSelection) self.menuEdit.addSeparator() self.menuEdit.addAction(self.actionFindReplace) self.menuEdit.addAction(self.actionFindDuplicates) self.menuEdit.addSeparator() self.menuEdit.addAction(self.actionFont) self.menuActions.addAction(self.actionAddItems) self.menuActions.addAction(self.actionAddCards) self.menuActions.addSeparator() self.menuActions.addAction(self.actionAddTag) self.menuActions.addAction(self.actionDeleteTag) self.menuActions.addSeparator() self.menuActions.addAction(self.actionToggleSuspend) self.menuActions.addAction(self.actionToggleMark) self.menuActions.addSeparator() self.menuActions.addAction(self.actionChangeModel) self.menuActions.addSeparator() self.menuActions.addAction(self.actionCram) self.menuActions.addAction(self.actionReschedule) self.menuActions.addSeparator() self.menuActions.addAction(self.actionDelete) self.menuJump.addAction(self.actionFind) self.menuJump.addAction(self.actionTags) self.menuJump.addAction(self.actionSort) self.menuJump.addAction(self.actionFact) self.menuJump.addAction(self.actionCardList) self.menuJump.addSeparator() self.menuJump.addAction(self.actionFirstCard) self.menuJump.addAction(self.actionPreviousCard) self.menuJump.addAction(self.actionNextCard) self.menuJump.addAction(self.actionLastCard) self.menu_Help.addAction(self.actionGuide) self.menubar.addAction(self.menuActions.menuAction()) self.menubar.addAction(self.menuEdit.menuAction()) self.menubar.addAction(self.menuJump.menuAction()) self.menubar.addAction(self.menu_Help.menuAction()) self.toolBar.addAction(self.actionAddItems) self.toolBar.addAction(self.actionAddCards) self.toolBar.addSeparator() self.toolBar.addAction(self.actionAddTag) self.toolBar.addAction(self.actionDeleteTag) self.toolBar.addSeparator() self.toolBar.addAction(self.actionToggleMark) self.toolBar.addAction(self.actionToggleSuspend) self.toolBar.addSeparator() self.toolBar.addAction(self.actionDelete) self.retranslateUi(MainWindow) QtCore.QObject.connect(self.actionSelectAll, QtCore.SIGNAL("triggered()"), self.tableView.selectAll) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(_("Browse Items")) self.label.setText(_("Search:")) self.label_2.setText(_("Filter:")) self.label_3.setText(_("Sort:")) self.cardInfoGroup.setTitle(_("Current Card")) self.menuEdit.setTitle(_("&Edit")) self.menuActions.setTitle(_("&Actions")) self.menuJump.setTitle(_("&Go")) self.menu_Help.setTitle(_("&Help")) self.toolBar.setWindowTitle(_("toolBar")) self.actionDelete.setText(_("Delete")) self.actionDelete.setShortcut(_("Ctrl+Del")) self.actionAddTag.setText(_("&Add Tags...")) self.actionDeleteTag.setText(_("&Delete Tags...")) self.actionAddCards.setText(_("&Generate Cards...")) self.actionReschedule.setText(_("&Reschedule...")) self.actionSelectAll.setText(_("Select &All")) self.actionUndo.setText(_("&Undo")) self.actionRedo.setText(_("&Redo")) self.actionInvertSelection.setText(_("&Invert Selection")) self.actionFind.setText(_("&Find")) self.actionFind.setShortcut(_("Ctrl+F")) self.actionFact.setText(_("F&act")) self.actionFact.setShortcut(_("Ctrl+Shift+F")) self.actionNextCard.setText(_("&Next Card")) self.actionNextCard.setShortcut(_("Ctrl+N")) self.actionPreviousCard.setText(_("&Previous Card")) self.actionPreviousCard.setShortcut(_("Ctrl+P")) self.actionFirstCard.setText(_("F&irst Card")) self.actionFirstCard.setShortcut(_("Ctrl+Home")) self.actionLastCard.setText(_("&Last Card")) self.actionLastCard.setShortcut(_("Ctrl+End")) self.actionGuide.setText(_("&Documentation")) self.actionGuide.setShortcut(_("F1")) self.actionChangeModel.setText(_("Change &Model...")) self.actionSelectFacts.setText(_("Select &Facts")) self.actionFindReplace.setText(_("Find and Re&place...")) self.actionCram.setText(_("&Cram...")) self.actionFont.setText(_("Font...")) self.actionSuspend.setText(_("&Suspend Cards")) self.actionUnsuspend.setText(_("&Unsuspend Cards")) self.actionTags.setText(_("Fil&ters")) self.actionTags.setShortcut(_("Ctrl+T")) self.actionSort.setText(_("&Sort")) self.actionSort.setShortcut(_("Ctrl+Shift+S")) self.actionAddItems.setText(_("Add &Items")) self.actionAddItems.setShortcut(_("Ctrl+D")) self.actionToggleSuspend.setText(_("Toggle Suspend")) self.actionToggleMark.setText(_("Toggle Mark")) self.actionCardList.setText(_("Card List")) self.actionCardList.setShortcut(_("Ctrl+Shift+L")) self.actionFindDuplicates.setText(_("Find &Duplicates...")) import icons_rc