From bee3e158963c3685211f54b08d8b59d6c5113757 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Tue, 22 Apr 2008 05:21:24 -0700 Subject: [PATCH] views: add a bookmarks view Signed-off-by: David Aguilar --- ugit/views/__init__.py | 9 ++++- ui/bookmark.ui | 101 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 ui/bookmark.ui diff --git a/ugit/views/__init__.py b/ugit/views/__init__.py index d784695d..3d8082de 100644 --- a/ugit/views/__init__.py +++ b/ugit/views/__init__.py @@ -19,6 +19,7 @@ from search import Ui_search from options import Ui_options from createbranch import Ui_createbranch from merge import Ui_merge +from bookmark import Ui_bookmark class View(Ui_main, QMainWindow): '''The main ugit interface.''' @@ -181,6 +182,12 @@ class SearchView(Ui_search, QDialog): class MergeView(Ui_merge, QDialog): def __init__(self, parent=None): QDialog.__init__(self, parent) - Ui_search.__init__(self) + Ui_merge.__init__(self) self.setupUi(self) self.revision.setFocus() + +class BookmarkView(Ui_bookmark, QDialog): + def __init__(self, parent=None): + QDialog.__init__(self, parent) + Ui_bookmark.__init__(self) + self.setupUi(self) diff --git a/ui/bookmark.ui b/ui/bookmark.ui new file mode 100644 index 00000000..7afb12e0 --- /dev/null +++ b/ui/bookmark.ui @@ -0,0 +1,101 @@ + + bookmark + + + + 0 + 0 + 531 + 513 + + + + Bookmarks + + + + + + + + + + + Open + + + + + + + Delete + + + + + + + Qt::Horizontal + + + + 91 + 20 + + + + + + + + Save + + + + + + + Cancel + + + + + + + + + + + button_save + clicked() + bookmark + accept() + + + 398 + 490 + + + 265 + 256 + + + + + button_cancel + clicked() + bookmark + reject() + + + 483 + 490 + + + 265 + 256 + + + + + -- 2.11.4.GIT