This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
st = "!git_stash_check; git status" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//~ Pour accéder au std::cerr | |
#include <iostream> | |
//~ Dépendances GTKmm | |
#include <gtkmm/main.h> | |
#include <libglademm.h> | |
int main( int argc, char * argv[] ) | |
{ | |
//~Pointeur sur le fichier glade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef HELLO_H | |
#define HELLO_H | |
#include <iostream> | |
#include <gtkmm.h> | |
#include <libglademm.h> | |
//~ Déclaration de la class de notre objet Hello, héritant de Gtk::Window | |
class Hello : public Gtk::Window | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include “hello.h” | |
//~ Ici notre constructeur un peu particulier. | |
Hello::Hello(BaseObjectType* cobject, const Glib::RefPtr& refGlade) | |
: Gtk::Window(cobject), | |
RefXmlGlade(refGlade) | |
{ | |
} | |
Hello::~Hello() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//~ Créer un pointeur windowHello sur l’élément window1 du fichier glade | |
RefXmlGlade->get_widget_derived(“window1″, windowHello); | |
if( windowHello ) | |
{ | |
//~ Ici la fenêtre est dessiné par GTK, et fonctionnelle. | |
kit.run(*windowHello); | |
//~ La ligne précédente est bloquante. Le curseur d’execution arrive | |
//~ ici qu’une fois la fenêtre détruite par GTK. | |
//~ Donc on libère la mémoire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef HELLO_H | |
#define HELLO_H | |
#include <iostream> | |
#include <gtkmm.h> | |
#include <libglademm.h> | |
class Hello : public Gtk::Window | |
{ | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include “hello.h” | |
Hello::Hello(BaseObjectType* cobject, const Glib::RefPtr& refGlade) | |
: Gtk::Window(cobject), | |
m_refXmlGlade(refGlade), | |
m_buttonQuit(0) | |
{ | |
//~ On pointe, dans le fichier glade, sur le bouton “button1″ | |
m_refXmlGlade->get_widget(“button1″, m_buttonQuit); | |
if ( m_buttonQuit ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include “hello.h” | |
//~ Ici j’ai ajouté le bouton, le label et la boite de text en initialization à 0 | |
Hello::Hello(BaseObjectType* cobject, const Glib::RefPtr& refGlade) | |
: Gtk::Window(cobject), | |
m_refXmlGlade(refGlade), | |
m_buttonQuit(0), | |
m_buttonApply(0), | |
m_entryName(0), | |
m_labelName(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC=g++ | |
CFLAGS=-ansi -pedantic -Wall -c -W | |
OTHERCFLAGS= | |
LDFLAGS= | |
OBJ=classa.o classb.o main.o | |
INSTALL=/usr/bin/install -c | |
BINDIR=/usr/local/bin | |
EXEC=appName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include | |
// include log4cxx header files. | |
#include "log4cxx/logger.h" | |
#include "log4cxx/basicconfigurator.h" | |
#include "log4cxx/propertyconfigurator.h" | |
#include "log4cxx/helpers/exception.h" | |
using namespace log4cxx; | |
using namespace log4cxx::helpers; |