Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aLAvr-0003qT-A0 for pgadmin-hackers@arkaria.postgresql.org; Mon, 18 Jan 2016 14:37:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aLAvq-0007M7-TG for pgadmin-hackers@arkaria.postgresql.org; Mon, 18 Jan 2016 14:37:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aLAvd-0006v3-4c for pgadmin-hackers@postgresql.org; Mon, 18 Jan 2016 14:37:09 +0000 Received: from mail-io0-x22a.google.com ([2607:f8b0:4001:c06::22a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aLAvZ-0003yp-Si for pgadmin-hackers@postgresql.org; Mon, 18 Jan 2016 14:37:07 +0000 Received: by mail-io0-x22a.google.com with SMTP id 77so519487941ioc.2 for ; Mon, 18 Jan 2016 06:37:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8GNdhFdL+skNIrM3ChwgugM294LTvET0PN7Y5xpGwA4=; b=h1XefAtV0jxgfugTsPcDOdur7pBdZNXX4GWFD4hu9VH4/aoVgnw24ldG5HvWLVPzym FB7SbupQJjt2oLlDtnKBuY4AyO9cbqEYuNpFxLUlvTqXYP2QHcLQq9G4piZ5iUGso/qE +nbsqkD43yRe/3ZqJmaCgRI369dhteiPWSNacs0ftxPjhQE0aWghXUQQivvtc5xb4fI4 3MhX2xYNTJ2CSNCvOSC1AssQPc8jOi0BSjBu+Bj94BKbMe+BZdmHnAY4Z6hid91vA60Z b70sSlN+f8kqgImpwBzdp8gj8hhbA6Vgq62UYZhyooF2gokKepIrODDHysOf/SulHW8C 61IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=8GNdhFdL+skNIrM3ChwgugM294LTvET0PN7Y5xpGwA4=; b=RYBtrfSpbSs7pDJVH7c4YWYzJU7roTOr5YxSG8lme02f5VAA/x5VXqX8hSOc3u+z+r gR5EDfyuLVU/HU6cEHyqd3Mi4elwa6I7LNCtnaQfNsV9K0dqj6D4VNO/SIe1b8VTLrK4 ktr83hlCOU1McndpVQUCxV4zeigdHJfbAnuQUYgu3LEN60elYirCLV4OIUOX0QSkcDlV 914ckB6XC9sOwyd6QB0rOdgiZ4+FmVJzHPgsWlUlcBvauteskV0BEiQkfbdHRMUiLmM0 c2z+ltcE7H9m1kPS+zUUoS7VvLhGFTENZWCm5qF4SitEgNwwUva0Lg0zRC+MtPP4tyWP OtsA== X-Gm-Message-State: ALoCoQljQEsnEBlPi9YorETfhoxwS5Hb9Sc/2X7NGTOchjnJoLlVURGBhZSpuRsu8mjaHu7oVPMCZlRUQMEyOtB+n15T4XF07Q== MIME-Version: 1.0 X-Received: by 10.107.6.209 with SMTP id f78mr22610699ioi.63.1453127825291; Mon, 18 Jan 2016 06:37:05 -0800 (PST) Received: by 10.64.0.195 with HTTP; Mon, 18 Jan 2016 06:37:05 -0800 (PST) In-Reply-To: References: Date: Mon, 18 Jan 2016 14:37:05 +0000 Message-ID: Subject: Re: [pgadmin-support] [pgAdmin4] - Desktop runtime patch From: Dave Page To: Neel Patel Cc: pgadmin-hackers , pgAdmin Support Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Thanks Neel. I've committed this with various minor tweaks, mostly around the tab button text and sizing. Please test on Windows and Linux to ensure I didn't inadvertently break anything. Mac seems fine here. On Fri, Jan 15, 2016 at 2:06 PM, Neel Patel wrote: > Hi, > > Please find the attached patch file for the below fix when pgAdmin 4 run in > desktop mode. > > Added functionality to open different website link and load the website data > to different tab. To achieve this, new customized QTabWidget and QWebView > are added to render the data to WebView widget. All the widgets (New Tab, > WebViewWinodw, and QToolButton) are added dynamically. QToolButton is used > to traverse back and forward to web document opened in WebViewWindow. > > Introduced the New class called WebViewWindow which is derived from > QWebView. Each tab of the QTabWidget contains the instance of WebViewWindow > class. WebViewWindow class is useful to display the web document. > > Introduced New class called TabWindow which is derived from QTabWidget. This > class is useful to achieve following functionality. > - Customize the close button of tabbar so that it can only be visible > other then main pgAdmin 4 window. > - Enable/Disable the toolbutton added left side of tabbar depending on > the web history traversed by the user in WebViewWindow. > - Set the tooltip text of the tabbar depending on the title change event > of WebViewWindow class. > > Modified the Qt project file to support the both the version of python 2 and > python 3. > > Qt5 is recommended to test pgAdmin4 in dektop mode. > > Attached patch is applied and tested on Linux, do let us know for any > comments/issues. > > Thanks, > Neel Patel > > > -- > Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-support > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers