Commits

Andreas Tscharner committed 9b69b17

gui: Prepare for DropDown controls for compression and encryption

Make these columns a string instead of a not-shown enum

  • Participants
  • Parent commits c505551

Comments (0)

Files changed (2)

File src/gui/ListHandler.cxx

 
 		singleRow[m_resColModel->FUniqueResID] = "";
 		singleRow[m_resColModel->FResFilename] = singleEntry;
-		singleRow[m_resColModel->FCompressType] = lrc::NoneCompression;
+		singleRow[m_resColModel->FCompressType] = "Keine";
 #ifndef NO_ENCRYPTION
-		singleRow[m_resColModel->FEncryptType] = lrc::NoneEncryption;
+		singleRow[m_resColModel->FEncryptType] = "Keine";
 		singleRow[m_resColModel->FEncPassword] = "";
 #endif
 	};

File src/gui/ResColumnModel.hxx

  * main part of the main window).
  *
  * \author Andreas Tscharner
- * \date 2012-07-29
+ * \date 2012-09-01
  */
 
 
 
 
 #include <gtkmm/treemodelcolumn.h>
-#include "../include/CompressDecompress.hxx"
-#include "../include/EncryptDecrypt.hxx"
+#include <gtkmm/combobox.h>
 
 
 /*! \class ResColumnModel
 	public:
 		Gtk::TreeModelColumn<Glib::ustring> FUniqueResID;            //!< ID for resource
 		Gtk::TreeModelColumn<Glib::ustring> FResFilename;            //!< Filename for resource
-		Gtk::TreeModelColumn<lrc::CompressionType> FCompressType;    //!< Compression type for resource
-		Gtk::TreeModelColumn<lrc::EncryptionType> FEncryptType;      //!< Encryption type for resource
+		Gtk::TreeModelColumn<Glib::ustring> FCompressType;           //!< Compression type for resource
+		Gtk::TreeModelColumn<Glib::ustring> FEncryptType;            //!< Encryption type for resource
 		Gtk::TreeModelColumn<Glib::ustring> FEncPassword;            //!< Password if resource is encrypted
 
 	public: