1. Andreas Tscharner
  2. lrc


lrc / src / gui / MainWindow.hxx

 * MainWindow.hxx
 * Copyright 2012 Andreas Tscharner <andy@vis.ethz.ch>
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.

/*! \file MainWindow.hxx
 * This file contains the declaration of the MainWindow class. This class
 * is responsible for all stuff of the main window.
 * It may delegate some tasks (like the menu or the list view) to separate
 * classes
 * \author Andreas Tscharner
 * \date 2012-09-01

#ifndef __MAINWINDOW_HXX__
#define __MAINWINDOW_HXX__

// Include files
#include <gtkmm/builder.h>
#include <gtkmm/window.h>
#include <gtkmm/liststore.h>
#include "AddRemoveHandlers.hxx"
#include "ResColumnModel.hxx"
#include "ListHandler.hxx"

/*! \class MainWindow
 *  \brief Class to handle the main window
 * This class handles all the stuff of the main window. It uses other
 * classes to handle some special tasks (like the menu or the list view)
class MainWindow
		Gtk::Window *m_mainWindow;     //!< Reference to main window class
		Glib::RefPtr<Gtk::Builder> m_refBuilder;     //!< Reference to builder that created the UI from XML
		Glib::RefPtr<Gtk::ListStore> m_listResFiles; //!< Reference to list store for the main list view
		Glib::RefPtr<Gtk::ListStore> m_listCompTypes;//!< Reference to list store for the compression types combo
		Glib::RefPtr<Gtk::ListStore> m_listEncTypes; //!< Reference to list store for the encryption types combo

		AddRemoveHandlers *m_addRemove;//!< Class instance to handle the "Add" and "Remove" button
		ResColumnModel *m_resColModel; //!< Class that defines the column model for the list store
		ListHandler *m_listHandler;    //!< Class for handling the list in the view

		/*! \brief Constructor
		 * The constructor for the MainWindow class. It needs a pointer to
		 * the window and a reference pointer to the glade file as parameters
		 * \param[in] p_mainWin Pointer to GTK window
		 * \param[in] p_refBuilder Reference pointer to builder that loaded
		 *                         the glade file
		MainWindow(Gtk::Window *, Glib::RefPtr<Gtk::Builder>);
		/*! \brief Destructor
		 * The destructor cleans up any used memory from this class

#endif /* __MAINWINDOW_HXX__ */