From b4a399f4650b85a27f3ca1b4172d2c73dbd51ff4 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Fri, 21 Dec 2007 01:03:55 -0800 Subject: [PATCH] Change default window sizes to accomodate courier font Updated the main window to display a visible cursor Allow selection with the keyboard in the diff textedit Ensured that utils.header() is always 80 columns wide Signed-off by: David Aguilar --- py/utils.py | 12 ++++++++++-- ui/CommandDialog.ui | 2 +- ui/CommitBrowser.ui | 2 +- ui/CreateBranchDialog.ui | 2 +- ui/Window.ui | 21 ++++++++++++++++++--- 5 files changed, 31 insertions(+), 8 deletions(-) diff --git a/py/utils.py b/py/utils.py index 246ab91b..ae343659 100644 --- a/py/utils.py +++ b/py/utils.py @@ -103,6 +103,14 @@ def get_tmp_filename(): # Allow TMPDIR/TMP with a fallback to /tmp return '.ugit.%s.%s' % ( os.getpid(), time.time() ) +HEADER_LENGTH = 80 def header (msg): - pad = (76 - len (msg))/2 - return ':+' + ' ' * pad + msg + ' ' * pad + '+:' + '\n' + pad = HEADER_LENGTH - len (msg) - 4 # len (':+') + len ('+:') + extra = pad % 2 + pad /= 2 + return (':+' + + (' ' * pad) + + msg + + (' ' * (pad + extra)) + + '+:' + + '\n') diff --git a/ui/CommandDialog.ui b/ui/CommandDialog.ui index 1fa66028..734aaac3 100644 --- a/ui/CommandDialog.ui +++ b/ui/CommandDialog.ui @@ -5,7 +5,7 @@ 0 0 - 720 + 780 512 diff --git a/ui/CommitBrowser.ui b/ui/CommitBrowser.ui index c1cddc7c..2b608b1f 100644 --- a/ui/CommitBrowser.ui +++ b/ui/CommitBrowser.ui @@ -5,7 +5,7 @@ 0 0 - 720 + 780 512 diff --git a/ui/CreateBranchDialog.ui b/ui/CreateBranchDialog.ui index a8335f84..55f211e9 100644 --- a/ui/CreateBranchDialog.ui +++ b/ui/CreateBranchDialog.ui @@ -5,7 +5,7 @@ 0 0 - 720 + 780 512 diff --git a/ui/Window.ui b/ui/Window.ui index 1d9ddc77..8112f6fe 100644 --- a/ui/Window.ui +++ b/ui/Window.ui @@ -6,7 +6,7 @@ 0 0 - 720 + 780 512 @@ -310,6 +310,9 @@ If you are going to amend a commit you can use the "Commit -> Get Latest Comit Message" menu action to retrieve the latest commit message prior to committing. + + false + @@ -326,9 +329,21 @@ retrieve the latest commit message prior to committing. 11 + + true + true + + false + + + 8 + + + Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::NoTextInteraction|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse + @@ -339,8 +354,8 @@ retrieve the latest commit message prior to committing. 0 0 - 720 - 22 + 780 + 28 -- 2.11.4.GIT