From unknown Sat Apr 04 12:50:50 2026
X-Loop: git-admin@x2go.org
Subject: Bug#80: Improve resume session dialog
Reply-To: Ezra =?UTF-8?Q?B=C3=83=C2=BChler?= <me@easyb.ch>, 80@bugs.x2go.org
Resent-From: Ezra =?UTF-8?Q?B=C3=83=C2=BChler?= <me@easyb.ch>
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: git-admin@x2go.org
Resent-Date: Thu, 06 Dec 2012 23:03:01 +0000
Resent-Message-ID: <handler.80.B.135483409029763@bugs.x2go.org>
Resent-Sender: git-admin@x2go.org
X-X2Go-PR-Message: report 80
X-X2Go-PR-Package: x2goclient
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.135483409029763
          (code B); Thu, 06 Dec 2012 23:03:01 +0000
Received: (at submit) by bugs.x2go.org; 6 Dec 2012 22:48:10 +0000
Received: from mail-ea0-f179.google.com (mail-ea0-f179.google.com [209.85.215.179])
	by ymir (Postfix) with ESMTPS id 6FF9D3BC43
	for <submit@bugs.x2go.org>; Thu,  6 Dec 2012 23:48:10 +0100 (CET)
Received: by mail-ea0-f179.google.com with SMTP id i12so2921295eaa.24
        for <submit@bugs.x2go.org>; Thu, 06 Dec 2012 14:48:10 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=from:content-type:subject:message-id:date:to:mime-version:x-mailer
         :x-gm-message-state;
        bh=/Q5wmVrmHD/6umO38aAPKNdPzkkvDpUZtrdYt4oJqO8=;
        b=e4evFgLUqlyzjgpta3J6k6KZ3S5Nkq1/772T6uQW2lm62vH33PvDaYG2Eas9qi3F/i
         y/0/MhjAe7AaKTcJgmUQbl9S2upZwK1yhNc2AVNmII8M9/7uKpVFNrBZv8RPY7W+f30E
         hrThY7cO+EkfJCN23nbqHN5wCNIWmwhoQa3o3z6nh5ZVXXR3woC3LpirZbhfZ8PhcpW9
         GFaRsDRbx0yv0ZFqXk9NF00mzdWJJCaecvGmf3vJ444xg1o10gtYc4XLgfFh3WQPLMPi
         BdT2hDSbUxOHCcPz9HH70ir5Mas7bVdEG5er49nkSrqDs9TNHxC8jx3Y/kpuiAxNeexg
         BqrA==
Received: by 10.14.174.198 with SMTP id x46mr9683713eel.23.1354834090070;
        Thu, 06 Dec 2012 14:48:10 -0800 (PST)
Received: from [10.0.0.4] (46-127-89-101.dynamic.hispeed.ch. [46.127.89.101])
        by mx.google.com with ESMTPS id b49sm18766988eem.16.2012.12.06.14.48.08
        (version=TLSv1/SSLv3 cipher=OTHER);
        Thu, 06 Dec 2012 14:48:08 -0800 (PST)
From: Ezra =?UTF-8?Q?B=C3=BChler?= <me@easyb.ch>
Content-Type: multipart/mixed; boundary="Apple-Mail=_1D101142-98A0-4DEA-8E06-BE0EDC329C0D"
Message-Id: <786AF653-7FF6-4FB6-B613-4A31467F50F6@easyb.ch>
Date: Thu, 6 Dec 2012 23:48:07 +0100
To: submit@bugs.x2go.org
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Gm-Message-State: ALoCoQnE7xglEVxLHeQ7WjkGh5hR1gSevC1KTgcW2VTv82bM1tgjEuORZuM59NXBIDd+GhdffVck


--Apple-Mail=_1D101142-98A0-4DEA-8E06-BE0EDC329C0D
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

Package: x2goclient
Version: HEAD

--Apple-Mail=_1D101142-98A0-4DEA-8E06-BE0EDC329C0D
Content-Disposition: attachment;
	filename=0001-Improve-resume-session-dialog.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="0001-Improve-resume-session-dialog.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=20623b6f8f4f3a30cd1608dab9fecb5eb0fb808dd7=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Ezra=20Buehler=20<spam@easyb.ch>=0ADate:=20=
Thu,=206=20Dec=202012=2020:57:20=20+0000=0ASubject:=20[PATCH]=20Improve=20=
resume=20session=20dialog=0ATo:=20patches@x2go.org=0A=0AMakes=20it=20=
possible=20to=20resume=20a=20session=20using=20the=20keyboard=20only.=0A=
Also=20fixes=20the=20tab=20order=20in=20the=20resume=20session=20dialog=20=
by=0Achanging=20the=20focus=20policy=20of=20the=20main=20window.=0A=0A=
Signed-off-by:=20Ezra=20Buehler=20<spam@easyb.ch>=0A---=0A=20=
onmainwindow.cpp=20|=2012=20+++++++-----=0A=20onmainwindow.h=20=20=20|=20=
24=20++++++++++++++++++++++--=0A=202=20files=20changed,=2029=20=
insertions(+),=207=20deletions(-)=0A=0Adiff=20--git=20a/onmainwindow.cpp=20=
b/onmainwindow.cpp=0Aindex=2076f8ba9..f5b1a91=20100644=0A---=20=
a/onmainwindow.cpp=0A+++=20b/onmainwindow.cpp=0A@@=20-51,7=20+51,7=20@@=20=
ONMainWindow::ONMainWindow=20(=20QWidget=20*parent=20)=20:QMainWindow=20=
(=20parent=20)=0A=20=20=20=20=20image=3Dshape=3D0;=0A=20#endif=0A=20=20=20=
=20=20x2goDebug<<"ONMainWindow=20constructor"<<endl;=0A-=20=20=20=20=
setFocusPolicy=20(=20Qt::StrongFocus=20);=0A+=20=20=20=20setFocusPolicy=20=
(=20Qt::NoFocus=20);=0A=20=20=20=20=20installTranslator();=0A=20=20=20=20=
=20cleanAllFiles=3Dfalse;=0A=20=20=20=20=20drawMenu=3Dtrue;=0A@@=20=
-4177,6=20+4177,9=20@@=20void=20ONMainWindow::selectSession=20(=20=
QStringList&=20sessions=20)=0A=20=20=20=20=20=20=20=20=20=
desktopFilter->setFocus();=0A=20=20=20=20=20=20=20=20=20=
desktopFilter->selectAll();=0A=20=20=20=20=20}=0A+=0A+=20=20=20=20=
sessTv->setCurrentIndex=20(=20sessTv->model()->index=20(=200,=200=20)=20=
);=0A+=20=20=20=20sessTv->setFocus();=0A=20=20=20=20=20=
selectSessionDlg->show();=0A=20}=0A=20=0A@@=20-10411,7=20+10414,7=20@@=20=
void=20ONMainWindow::initSelectSessDlg()=0A=20=20=20=20=20=
selectSessionDlg->setEnabled=20(=20true=20);=0A=20=20=20=20=20setEnabled=20=
(=20true=20);=0A=20=0A-=20=20=20=20sessTv=3Dnew=20QTreeView=20(=20=
selectSessionDlg=20);=0A+=20=20=20=20sessTv=3Dnew=20SessTreeView=20(=20=
selectSessionDlg=20);=0A=20=20=20=20=20setWidgetStyle=20(=20sessTv=20);=0A=
=20=20=20=20=20setWidgetStyle=20(=20sessTv->horizontalScrollBar()=20);=0A=
=20=20=20=20=20setWidgetStyle=20(=20sessTv->verticalScrollBar()=20);=0A=
@@=20-10518,10=20+10521,9=20@@=20void=20=
ONMainWindow::initSelectSessDlg()=0A=20=20=20=20=20bSusp->hide();=0A=20=20=
=20=20=20bTerm->hide();=0A=20=0A-=20=20=20=20connect=20(=20sessTv,SIGNAL=20=
(=20clicked=20(=20const=20QModelIndex&=20)=20),=0A+=20=20=20=20connect=20=
(=20sessTv,SIGNAL=20(=20selected=20(=20const=20QModelIndex&=20)=20),=0A=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20this,SLOT=20(=20slotActivated=20=
(=20const=20QModelIndex&=20)=20)=20);=0A-=0A-=20=20=20=20connect=20(=20=
sessTv,SIGNAL=20(=20doubleClicked=20(=20const=20QModelIndex&=20)=20),=0A=
+=20=20=20=20connect=20(=20sessTv,SIGNAL=20(=20activated=20(=20const=20=
QModelIndex&=20)=20),=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
this,SLOT=20(=20slotResumeDoubleClick=20(=20const=20QModelIndex&=20)=20)=20=
);=0A=20=0A=20=20=20=20=20connect=20(=20sOk,SIGNAL=20(=20clicked()=20=
),this,=20SLOT=20(=20slotResumeSess()=20)=20);=0Adiff=20--git=20=
a/onmainwindow.h=20b/onmainwindow.h=0Aindex=207c1b2a5..550aa12=20100644=0A=
---=20a/onmainwindow.h=0A+++=20b/onmainwindow.h=0A@@=20-40,6=20+40,7=20=
@@=0A=20#include=20<QPushButton>=0A=20#include=20<QPixmap>=0A=20#include=20=
<QProcess>=0A+#include=20<QTreeView>=0A=20#include=20"LDAPSession.h"=0A=20=
#include=20<QToolBar>=0A=20#include=20<QSystemTrayIcon>=0A@@=20-73,7=20=
+74,6=20@@=20class=20SVGFrame;=0A=20class=20SessionButton;=0A=20class=20=
QAction;=0A=20class=20QCheckBox;=0A-class=20QTreeView;=0A=20class=20=
QModelIndex;=0A=20class=20SshMasterConnection;=0A=20class=20IMGFrame;=0A=
@@=20-247,6=20+247,26=20@@=20private:=0A=20=20=20=20=20ONMainWindow*=20=
parent;=0A=20};=0A=20#endif=0A+=0A+=0A+class=20SessTreeView=20:=20public=20=
QTreeView=0A+{=0A+=20=20=20=20Q_OBJECT=0A+=0A+public:=0A+=20=20=20=20=
SessTreeView=20(=20QWidget*=20parent=20=3D=200=20)=20:=20QTreeView=20(=20=
parent=20)=20{}=0A+=0A+=20=20=20=20virtual=20void=20selectionChanged=20(=20=
const=20QItemSelection&=20selected,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
const=20QItemSelection&=20deselected=20)=20{=0A+=20=20=20=20=20=20=20=20=
emit=20this->selected=20(=20currentIndex()=20);=0A+=20=20=20=20=20=20=20=20=
QTreeView::selectionChanged=20(=20selected,=20deselected=20);=0A+=20=20=20=
=20}=0A+=0A+Q_SIGNALS:=0A+=20=20=20=20void=20selected=20(=20const=20=
QModelIndex&=20index=20);=0A+};=0A+=0A+=0A=20class=20ClickLineEdit;=0A=20=
class=20ONMainWindow=20:=20public=20QMainWindow=0A=20#ifdef=20CFGPLUGIN=0A=
@@=20-580,7=20+600,7=20@@=20private:=0A=20=0A=20=0A=20=20=20=20=20=
QLabel*=20selectSessionLabel;=0A-=20=20=20=20QTreeView*=20sessTv;=0A+=20=20=
=20=20SessTreeView*=20sessTv;=0A=20=0A=20=20=20=20=20QLineEdit*=20=
desktopFilter;=0A=20=20=20=20=20QCheckBox*=20desktopFilterCb;=0A--=20=0A=
1.8.0=0A=0A=

--Apple-Mail=_1D101142-98A0-4DEA-8E06-BE0EDC329C0D--
