source: projects/synaptic/trunk/gtk/rgterminstallprogress.h @ 280

Revision 280, 1.9 KB checked in by yasumichi, 15 years ago (diff)

first import

Line 
1/* rgzvtinstallprogress.h
2 *
3 * Copyright (c) 2002 Michael Vogt
4 *
5 * Author: Michael Vogt <mvo@debian.org>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 */
22
23
24#ifndef _RGTERMNSTALLPROGRESS_H_
25#define _RGTERMINSTALLPROGRESS_H_
26
27#ifdef HAVE_TERMINAL
28
29#include "rpackagemanager.h"
30#include "rgmainwindow.h"
31#include "rinstallprogress.h"
32#include "rgwindow.h"
33
34#include <vte/vte.h>
35#include <vte/reaper.h>
36
37class RGTermInstallProgress : public RInstallProgress, public RGGladeWindow {
38  GtkWidget *_term;
39  GtkWidget *_statusL;
40  GtkWidget *_closeB;
41  GtkWidget *_closeOnF;
42  GtkWidget *_sock;
43
44  pkgPackageManager::OrderResult res;
45  static gboolean zvtFocus (GtkWidget *widget, GdkEventButton *event, gpointer user_data);
46
47protected:
48  bool child_has_exited;
49  static void child_exited(VteReaper *vtereaper,gint child_pid, gint ret,
50                           gpointer data);
51  virtual void startUpdate();
52  virtual void updateInterface();
53  virtual void finishUpdate();
54  static void stopShell(GtkWidget *self, void* data);
55  virtual bool close();
56
57  pid_t _child_id;
58
59public:
60   RGTermInstallProgress(RGMainWindow *main);
61   ~RGTermInstallProgress() {};
62
63   virtual pkgPackageManager::OrderResult start(RPackageManager *pm,
64                                                int numPackages = 0,
65                                                int totalPackages = 0);
66
67};
68
69#endif /* HAVT_TERMINAL */
70
71#endif
Note: See TracBrowser for help on using the repository browser.