From eb267792cd70a763bf2dcbfce6e7a09251b3913f Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Fri, 20 Mar 2015 10:55:35 +0400 Subject: [PATCH 1/4] Small update --- .gitignore | 13 ++----------- main.cpp | 40 ++++++++++++++++++++++++++-------------- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 6e16385..f010513 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,2 @@ -#For codeblocks project: -/*.depend -/*.layout -/*.cbp -/*.cbTemp -/bin -/obj -/Doxyfile -/Doxygen -*.untracked - +#I have an Untraked folder +Untracked diff --git a/main.cpp b/main.cpp index c392103..b2f344f 100644 --- a/main.cpp +++ b/main.cpp @@ -25,7 +25,7 @@ #include "Website.hpp" - +#include /** @@ -39,29 +39,41 @@ int main(int argc, char *argv[]){ - //TEST PARSER FAKE ARGUMENT - FileManParser xmlParser(""); - std::vector *siteWeb=xmlParser.getWebsites(); - - siteWeb->erase(siteWeb->begin()+1); - - xmlParser.updateParser(); + /* Initialisation de GTK+ */ + gtk_init(&argc, &argv); - //Save modification in file + GtkWidget* MainWindow=NULL; - FileManIOFile save("Doxygen/bob.bin"); + MainWindow=gtk_window_new(GTK_WINDOW_TOPLEVEL); - save.write("loic", xmlParser.getDocument()); + g_signal_connect(G_OBJECT(MainWindow), "delete-event", G_CALLBACK(gtk_main_quit), NULL); - //Print - std::cout << xmlParser.getDocument(); + + GtkWidget* bouton; + + bouton=gtk_button_new_with_label("Hello Bro :"); + gtk_container_add(GTK_CONTAINER(MainWindow), bouton); + + g_signal_connect(G_OBJECT(bouton), "leave", G_CALLBACK(gtk_main_quit), NULL); + + gtk_window_set_title(GTK_WINDOW(MainWindow), "forgetIt"); + gtk_window_set_default_size(GTK_WINDOW(MainWindow), 500,500); + + gtk_window_set_position(GTK_WINDOW(MainWindow), GTK_WIN_POS_CENTER); + gtk_widget_show_all(MainWindow); + + + gtk_main(); + + + + return EXIT_SUCCESS; - return 0; } From 45f7cc5d27b338dae1d36c211cc5720c82f3de35 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Fri, 20 Mar 2015 10:57:03 +0400 Subject: [PATCH 2/4] Change file architecture --- {CryptClass => src/CryptClass}/AESCrypt.cpp | 0 {CryptClass => src/CryptClass}/AESCrypt.hpp | 0 {CryptClass => src/CryptClass}/AbstractSKA.hpp | 0 {CryptClass => src/CryptClass}/HASHCrypt.cpp | 0 {CryptClass => src/CryptClass}/HASHCrypt.hpp | 0 {IOFileClass => src/IOFileClass}/FileManIOFile.cpp | 0 {IOFileClass => src/IOFileClass}/FileManIOFile.hpp | 0 {ParserClass => src/ParserClass}/AbstractIDManager.cpp | 0 {ParserClass => src/ParserClass}/AbstractIDManager.hpp | 0 {ParserClass => src/ParserClass}/FileManContainer/Website.cpp | 0 {ParserClass => src/ParserClass}/FileManContainer/Website.hpp | 0 {ParserClass => src/ParserClass}/FileManParser.cpp | 0 {ParserClass => src/ParserClass}/FileManParser.hpp | 0 main.cpp => src/main.cpp | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename {CryptClass => src/CryptClass}/AESCrypt.cpp (100%) rename {CryptClass => src/CryptClass}/AESCrypt.hpp (100%) rename {CryptClass => src/CryptClass}/AbstractSKA.hpp (100%) rename {CryptClass => src/CryptClass}/HASHCrypt.cpp (100%) rename {CryptClass => src/CryptClass}/HASHCrypt.hpp (100%) rename {IOFileClass => src/IOFileClass}/FileManIOFile.cpp (100%) rename {IOFileClass => src/IOFileClass}/FileManIOFile.hpp (100%) rename {ParserClass => src/ParserClass}/AbstractIDManager.cpp (100%) rename {ParserClass => src/ParserClass}/AbstractIDManager.hpp (100%) rename {ParserClass => src/ParserClass}/FileManContainer/Website.cpp (100%) rename {ParserClass => src/ParserClass}/FileManContainer/Website.hpp (100%) rename {ParserClass => src/ParserClass}/FileManParser.cpp (100%) rename {ParserClass => src/ParserClass}/FileManParser.hpp (100%) rename main.cpp => src/main.cpp (100%) diff --git a/CryptClass/AESCrypt.cpp b/src/CryptClass/AESCrypt.cpp similarity index 100% rename from CryptClass/AESCrypt.cpp rename to src/CryptClass/AESCrypt.cpp diff --git a/CryptClass/AESCrypt.hpp b/src/CryptClass/AESCrypt.hpp similarity index 100% rename from CryptClass/AESCrypt.hpp rename to src/CryptClass/AESCrypt.hpp diff --git a/CryptClass/AbstractSKA.hpp b/src/CryptClass/AbstractSKA.hpp similarity index 100% rename from CryptClass/AbstractSKA.hpp rename to src/CryptClass/AbstractSKA.hpp diff --git a/CryptClass/HASHCrypt.cpp b/src/CryptClass/HASHCrypt.cpp similarity index 100% rename from CryptClass/HASHCrypt.cpp rename to src/CryptClass/HASHCrypt.cpp diff --git a/CryptClass/HASHCrypt.hpp b/src/CryptClass/HASHCrypt.hpp similarity index 100% rename from CryptClass/HASHCrypt.hpp rename to src/CryptClass/HASHCrypt.hpp diff --git a/IOFileClass/FileManIOFile.cpp b/src/IOFileClass/FileManIOFile.cpp similarity index 100% rename from IOFileClass/FileManIOFile.cpp rename to src/IOFileClass/FileManIOFile.cpp diff --git a/IOFileClass/FileManIOFile.hpp b/src/IOFileClass/FileManIOFile.hpp similarity index 100% rename from IOFileClass/FileManIOFile.hpp rename to src/IOFileClass/FileManIOFile.hpp diff --git a/ParserClass/AbstractIDManager.cpp b/src/ParserClass/AbstractIDManager.cpp similarity index 100% rename from ParserClass/AbstractIDManager.cpp rename to src/ParserClass/AbstractIDManager.cpp diff --git a/ParserClass/AbstractIDManager.hpp b/src/ParserClass/AbstractIDManager.hpp similarity index 100% rename from ParserClass/AbstractIDManager.hpp rename to src/ParserClass/AbstractIDManager.hpp diff --git a/ParserClass/FileManContainer/Website.cpp b/src/ParserClass/FileManContainer/Website.cpp similarity index 100% rename from ParserClass/FileManContainer/Website.cpp rename to src/ParserClass/FileManContainer/Website.cpp diff --git a/ParserClass/FileManContainer/Website.hpp b/src/ParserClass/FileManContainer/Website.hpp similarity index 100% rename from ParserClass/FileManContainer/Website.hpp rename to src/ParserClass/FileManContainer/Website.hpp diff --git a/ParserClass/FileManParser.cpp b/src/ParserClass/FileManParser.cpp similarity index 100% rename from ParserClass/FileManParser.cpp rename to src/ParserClass/FileManParser.cpp diff --git a/ParserClass/FileManParser.hpp b/src/ParserClass/FileManParser.hpp similarity index 100% rename from ParserClass/FileManParser.hpp rename to src/ParserClass/FileManParser.hpp diff --git a/main.cpp b/src/main.cpp similarity index 100% rename from main.cpp rename to src/main.cpp From 576253d42518b319e5418aa46d37da71fcf81bad Mon Sep 17 00:00:00 2001 From: Loic GUEGAN Date: Sat, 21 Mar 2015 05:52:55 +0100 Subject: [PATCH 3/4] Add src readme --- src/Readme.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/Readme.md diff --git a/src/Readme.md b/src/Readme.md new file mode 100644 index 0000000..e69de29 From 697d44fd357779309bb0c1931f589a92bb88a642 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Sat, 21 Mar 2015 06:53:07 +0100 Subject: [PATCH 4/4] Edit readme --- src/Readme.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/Readme.md b/src/Readme.md index e69de29..6600ef4 100644 --- a/src/Readme.md +++ b/src/Readme.md @@ -0,0 +1,21 @@ +Class organisation +===== + +##CryptClass +> Contain all crypting algorithm, and use +**crypto++** library. + +##IOFileClass +> Contain all class that manage IO in file. +*FileManIOFile* class load and save encrypted files, and use +class from *CryptClass*. + +##ParserClass +> Contain class for parsing data (exemple: parsing a decrypted file from *FileManIOFile*. + +##Coming soon: +>GTK+Class to manager GUI. +

+ +PLEASE USE DOXYGEN COMMENTS +===== \ No newline at end of file