Renamed source files.

Also a little change in CMakeLists.txt.

The next commit is going to change the object prefix.
This commit is contained in:
Přemysl Eric Janouch 2010-09-17 19:03:03 +02:00
parent db46ae5505
commit 341f51eb41
12 changed files with 41 additions and 38 deletions

View File

@ -18,7 +18,10 @@ endif (OPTION_NOINSTALL)
set (project_VERSION_MAJOR "0")
set (project_VERSION_MINOR "0")
set (project_VERSION_PATCH "1")
set (project_VERSION "0.0.1")
set (project_VERSION "${project_VERSION_MAJOR}")
set (project_VERSION "${project_VERSION}.${project_VERSION_MINOR}")
set (project_VERSION "${project_VERSION}.${project_VERSION_PATCH}")
# For custom modules
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
@ -76,19 +79,19 @@ GTK_DOC_RUN (WORKING_DIR ${project_DOC_DIR}
# Project source files
set (logdiag_SOURCES
src/main.c
src/window-main.c
src/document.c
src/canvas.c
src/symbol-library.c)
src/logdiag.c
src/ld-window-main.c
src/ld-document.c
src/ld-canvas.c
src/ld-symbol-library.c)
set (logdiag_HEADERS
${CMAKE_CURRENT_BINARY_DIR}/config.h
src/window-main.h
src/document.h
src/canvas.h
src/symbol.h
src/symbol-category.h
src/symbol-library.h)
src/ld-window-main.h
src/ld-document.h
src/ld-canvas.h
src/ld-symbol.h
src/ld-symbol-category.h
src/ld-symbol-library.h)
# Generate a configure file
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.h.in

View File

@ -1,5 +1,5 @@
/*
* canvas.c
* ld-canvas.c
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.
@ -12,13 +12,13 @@
#include "config.h"
#include "canvas.h"
#include "document.h"
#include "ld-canvas.h"
#include "ld-document.h"
/* http://www.gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28 */
/**
* SECTION:canvas
* SECTION:ld-canvas
* @short_description: A canvas.
* @see_also: #LogdiagDocument
*

View File

@ -1,5 +1,5 @@
/*
* canvas.h
* ld-canvas.h
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.

View File

@ -1,5 +1,5 @@
/*
* document.h
* ld-document.h
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.

View File

@ -1,5 +1,5 @@
/*
* symbol-category.h
* ld-symbol-category.h
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.

View File

@ -1,5 +1,5 @@
/*
* symbol-library.c
* ld-symbol-library.c
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.
@ -14,14 +14,14 @@
#include "config.h"
#include "symbol-library.h"
#include "symbol-category.h"
#include "symbol.h"
#include "ld-symbol-library.h"
#include "ld-symbol-category.h"
#include "ld-symbol.h"
/* ===== Symbol library ==================================================== */
/**
* SECTION:symbol-library
* SECTION:ld-symbol-library
* @short_description: A symbol library.
* @see_also: #LogdiagSymbol, #LogdiagSymbolCategory
*
@ -194,7 +194,7 @@ logdiag_symbol_library_clear (LogdiagSymbolLibrary *self)
/* ===== Symbol category =================================================== */
/**
* SECTION:symbol-category
* SECTION:ld-symbol-category
* @short_description: A category of symbols.
* @see_also: #LogdiagSymbol, #LogdiagSymbolLibrary
*
@ -268,7 +268,7 @@ logdiag_symbol_category_new (LogdiagSymbolLibrary *parent)
/* ===== Symbol ============================================================ */
/**
* SECTION:symbol
* SECTION:ld-symbol
* @short_description: A symbol.
* @see_also: #LogdiagDocument, #LogdiagCanvas
*

View File

@ -1,5 +1,5 @@
/*
* symbol-library.h
* ld-symbol-library.h
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.

View File

@ -1,5 +1,5 @@
/*
* symbol.h
* ld-symbol.h
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.

View File

@ -12,16 +12,16 @@
#include "config.h"
#include "window-main.h"
#include "canvas.h"
#include "document.h"
#include "symbol-library.h"
#include "symbol-category.h"
#include "symbol.h"
#include "ld-window-main.h"
#include "ld-canvas.h"
#include "ld-document.h"
#include "ld-symbol-library.h"
#include "ld-symbol-category.h"
#include "ld-symbol.h"
/**
* SECTION:window-main
* SECTION:ld-window-main
* @short_description: The main application window.
*
* #LogdiagWindowMain is the main window of the application.

View File

@ -1,5 +1,5 @@
/*
* window-main.h
* ld-window-main.h
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.

View File

@ -1,5 +1,5 @@
/*
* main.c -- logdiag main source file.
* logdiag.c -- logdiag main source file.
*
* This file is a part of logdiag.
* Copyright Přemysl Janouch 2010. All rights reserved.
@ -12,7 +12,7 @@
#include "config.h"
#include "window-main.h"
#include "ld-window-main.h"
int main (int argc, char *argv[])