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 "classa.h" | |
#include "classb.h" | |
// include log4cxx header files. | |
#include "log4cxx/logger.h" | |
#include "log4cxx/basicconfigurator.h" | |
#include "log4cxx/propertyconfigurator.h" | |
#include "log4cxx/helpers/exception.h" | |
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 CLASS_A_H | |
#define CLASS_A_H | |
#include | |
#include | |
class ClassA | |
{ | |
public: | |
ClassA(); |
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 "classa.h" | |
ClassA::ClassA() : | |
logger(log4cxx::Logger::getLogger("ClassA")) | |
{ | |
std::cout << "Hello !" << std::endl << "Je suis ClassA !" << std::endl; | |
LOG4CXX_DEBUG(logger, "Ce log vient de ClassA !"); | |
} | |
ClassA::~ClassA() |
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
class A | |
{ | |
public: | |
virtual ~A(); | |
}; |
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
class A | |
{ | |
private: | |
int size; | |
int height; | |
int width; | |
public: | |
A(); | |
~A(); |
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++ | |
PKGCONFIG=`pkg-config --cflags --libs libhelloworld` | |
CFLAGS=-pedantic -Wall -W $(PKGCONFIG) | |
LDFLAGS=$(PKGCONFIG) | |
OBJ=main.o | |
EXEC=testHelloWorld | |
all: $(EXEC) |
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 WMAIN_H | |
#define WMAIN_H | |
#include | |
#include | |
class DerivedWMain : public Gtk::Window | |
{ | |
public: | |
DerivedWMain(BaseObjectType* cobject, const Glib::RefPtr& refGlade); |
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
DerivedWMain::DerivedWMain(BaseObjectType* cobject, const Glib::RefPtr& refGlade) : | |
Gtk::Window(cobject), | |
refXmlGlade(refGlade) | |
{ | |
... | |
refXmlGlade->get_widget("tvList", gtkTreeViewList); | |
if ( !gtkTreeViewList ) | |
{ |
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
Gtk::TreeModel::Row row = *( refTreeStore->append() ); | |
row[ modelColumns.columnId ] = 1; | |
row[ modelColumns.columnName ] = "Test"; |
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
Gtk::TreeModel::Row childOne = *( refTreeStore->append( row.children() ) ); | |
row[ modelColumns.columnId ] = 11; | |
row[ modelColumns.columnName ] = "Test enfant"; | |
Gtk::TreeModel::Row childTwo = *( refTreeStore->append( row.children() ) ); | |
row[ modelColumns.columnId ] = 12; | |
row[ modelColumns.columnName ] = "Test enfant 2"; |