Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
QHyodaX11XtermLog.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7#ifndef Q_HYODA_XTERM_LOG_H
8#define Q_HYODA_XTERM_LOG_H
9
10#include <QtWidgets>
11#include <QWindow>
12#include "QHyoda.h"
13#include "QHyodaJob.h"
14#include "QHyodaX11.h"
15#include <QResizeEvent>
16
17class QHyodaX11XtermLog: public QWidget{
18 Q_OBJECT
19 public:
20 QHyodaX11XtermLog(QHyodaJob*,QWidget*,QString);
21 ~QHyodaX11XtermLog(void){}
22public:
23 void resizeEvent(QResizeEvent*);
24 void xwininfoStart();
25public slots:
26 void xtermFinished(int, QProcess::ExitStatus);
27 void xwininfoOutput();
28private:
29 void setupUI(QWidget*);
30 void setXtermSizeWithXdotool(const QSize);
31private:
32 QHyodaJob *job;
33 QProcess *xterm;
34 QProcess *xwininfo;
35 QProcess *xdotool;
36 QWidget *xWidget;
37 QString xtermTitle;
38 WId WinId;
39 QSize size;
40};
41
42#endif // Q_HYODA_XTERM_LOG_H