Andreas Tscharner avatar Andreas Tscharner committed 1a3c855

gui: Create new instance of ListHandler and provide it the AddRemoveHandlers class

Comments (0)

Files changed (2)

src/gui/MainWindow.cxx

 	resFileView->append_column("Verschlüsselung", m_resColModel->FEncryptType);
 	resFileView->append_column("Passwort", m_resColModel->FEncPassword);
 #endif
+
+	m_listHandler = new ListHandler(m_listResFiles, m_resColModel);
+	m_addRemove->setListHandler(m_listHandler);
 }
 
 MainWindow::~MainWindow()
 {
+	delete m_listHandler;
 	delete m_resColModel;
 	delete m_addRemove;
 

src/gui/MainWindow.hxx

  * classes
  *
  * \author Andreas Tscharner
- * \date 2012-06-17
+ * \date 2012-07-29
  */
 
 
 #include <gtkmm/liststore.h>
 #include "AddRemoveHandlers.hxx"
 #include "ResColumnModel.hxx"
+#include "ListHandler.hxx"
 
 
 /*! \class MainWindow
 
 		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
 
 	public:
 		/*! \brief Constructor
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.