File: pkgwindow.h

package info (click to toggle)
paco 2.0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,136 kB
  • sloc: sh: 10,464; cpp: 6,463; ansic: 338; makefile: 277; perl: 260
file content (59 lines) | stat: -rw-r--r-- 1,213 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//=======================================================================
// pkgwindow.h
//-----------------------------------------------------------------------
// This file is part of the package paco
// Copyright (C) 2004-2009 David Rosal
// For more information visit http://paco.sourceforge.net
//=======================================================================

#ifndef GPACO_PKG_WINDOW_H
#define GPACO_PKG_WINDOW_H

#include <gtkmm/window.h>
#include <gtkmm/box.h>
#include <gtkmm/notebook.h>


namespace Gpaco
{

class Pkg;
class FilesTab;
class InfoTab;
class RemoveTab;
class PackageTab;

class PkgWindow : public Gtk::Window 
{
	public:

	PkgWindow(Pkg&);
	~PkgWindow();

	FilesTab* filesTab()	{ return mpFilesTab; }

	virtual bool on_delete_event(GdkEventAny*);
	void presentTab(int const&);

	private:

	Pkg&			mPkg;
	FilesTab*		mpFilesTab;
	InfoTab*		mpInfoTab;
	RemoveTab*		mpRemoveTab;
	PackageTab*		mpPackageTab;
	Gtk::Notebook	mNotebook;

	class TabLabel : public Gtk::HBox
	{
		public:
		TabLabel(Glib::ustring const& title, Gtk::StockID id);
		TabLabel(Glib::ustring const& title, Glib::ustring const& file);
		~TabLabel();
	};
};

} // namespace Gpaco


#endif  // GPACO_PKG_WINDOW_H