| 1 | /* rgsummarywindow.h |
|---|
| 2 | * |
|---|
| 3 | * Copyright (c) 2000, 2001 Conectiva S/A |
|---|
| 4 | * 2002 Michael Vogt <mvo@debian.org> |
|---|
| 5 | * |
|---|
| 6 | * Author: Alfredo K. Kojima <kojima@conectiva.com.br> |
|---|
| 7 | * Michael Vogt <mvo@debian.org> |
|---|
| 8 | * |
|---|
| 9 | * This program is free software; you can redistribute it and/or |
|---|
| 10 | * modify it under the terms of the GNU General Public License as |
|---|
| 11 | * published by the Free Software Foundation; either version 2 of the |
|---|
| 12 | * License, or (at your option) any later version. |
|---|
| 13 | * |
|---|
| 14 | * This program is distributed in the hope that it will be useful, |
|---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | * GNU General Public License for more details. |
|---|
| 18 | * |
|---|
| 19 | * You should have received a copy of the GNU General Public License |
|---|
| 20 | * along with this program; if not, write to the Free Software |
|---|
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
|---|
| 22 | * USA |
|---|
| 23 | */ |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | #ifndef _RGSUMMARYWINDOW_H_ |
|---|
| 27 | #define _RGSUMMARYWINDOW_H_ |
|---|
| 28 | |
|---|
| 29 | #include "rggladewindow.h" |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | class RPackageLister; |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | class RGSummaryWindow:public RGGladeWindow { |
|---|
| 36 | GtkWidget *_topF; |
|---|
| 37 | GtkWidget *_middleF; |
|---|
| 38 | GtkWidget *_summaryL; |
|---|
| 39 | GtkWidget *_summarySpaceL; |
|---|
| 40 | bool _confirmed; |
|---|
| 41 | bool _potentialBreak; |
|---|
| 42 | RPackageLister *_lister; |
|---|
| 43 | GtkWidget *_dlonlyB; |
|---|
| 44 | GtkWidget *_checkSigsB; |
|---|
| 45 | |
|---|
| 46 | enum { |
|---|
| 47 | PKG_COLUMN, |
|---|
| 48 | N_COLUMNS |
|---|
| 49 | }; |
|---|
| 50 | GtkWidget *_tree; |
|---|
| 51 | GtkTreeStore *_treeStore; |
|---|
| 52 | |
|---|
| 53 | GtkWidget *_defBtn; |
|---|
| 54 | |
|---|
| 55 | static void clickedOk(GtkWidget *w, void *data); |
|---|
| 56 | static void clickedCancel(GtkWidget *w, void *data); |
|---|
| 57 | static void buildTree(RGSummaryWindow *me); |
|---|
| 58 | static void buildLabel(RGSummaryWindow *me); |
|---|
| 59 | static void clickedDetails(GtkWidget *w, void *data); |
|---|
| 60 | |
|---|
| 61 | public: |
|---|
| 62 | RGSummaryWindow(RGWindow *win, RPackageLister *lister); |
|---|
| 63 | |
|---|
| 64 | bool showAndConfirm(); |
|---|
| 65 | }; |
|---|
| 66 | |
|---|
| 67 | #endif |
|---|