Browse the code
| Old | New | Code |
|---|---|---|
| 1 |
<Project name="Biblix" fileversion="2.0" DefaultNamespace="biblix" language="C#" clr-version="Net_2_0" ctype="DotNetProject"> | |
| 1 |
<Project name="Biblix" fileversion="2.0" language="C#" DefaultNamespace="biblix" clr-version="Net_2_0" targetFramework="2.0" ctype="DotNetProject">
| |
| 2 | 2 |
<Configurations active="Debug"> |
| 3 | 3 |
<Configuration name="Debug" ctype="DotNetProjectConfiguration"> |
| 4 | 4 |
<Output directory="bin/Debug" assemblyKeyFile="." assembly="Biblix" /> |
| 5 | 5 |
<Build debugmode="True" target="Exe" /> |
| 6 | 6 |
<Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" /> |
| 7 |
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" generatexmldocumentation="False" win32Icon="." langversion="ISO_2" ctype="CSharpCompilerParameters" /> | |
| 7 |
<EnvironmentVariables />
| |
| 8 |
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> | |
| 8 | 9 |
</Configuration> |
| 9 | 10 |
<Configuration name="Release" ctype="DotNetProjectConfiguration"> |
| 10 | 11 |
<Output directory="bin/Release" assembly="Biblix" /> |
| 11 | 12 |
<Build debugmode="False" target="Exe" /> |
| 12 | 13 |
<Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" /> |
| 13 |
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" generatexmldocumentation="False" win32Icon="." langversion="ISO_2" ctype="CSharpCompilerParameters" /> | |
| 14 |
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
| |
| 14 | 15 |
</Configuration> |
| 15 | 16 |
</Configurations> |
| 16 | 17 |
<Contents> |
| 18 | 19 |
<File name="gtk-gui/generated.cs" subtype="Code" buildaction="Compile" /> |
| 19 | 20 |
<File name="Main.cs" subtype="Code" buildaction="Compile" /> |
| 20 | 21 |
<File name="AssemblyInfo.cs" subtype="Code" buildaction="Compile" /> |
| 21 |
<File name="biblix.desktop" subtype="Code" buildaction="FileCopy" DeployService.TargetDirectoryId="Linux.DesktopApplications" /> | |
| 22 |
<File name="biblix.desktop" subtype="Code" DeployService.TargetDirectoryId="Linux.DesktopApplications" buildaction="FileCopy" />
| |
| 22 | 23 |
<File name="winBiblix.cs" subtype="Code" buildaction="Compile" /> |
| 23 | 24 |
<File name="gtk-gui/biblix.winBiblix.cs" subtype="Code" buildaction="Compile" /> |
| 24 | 25 |
<File name="dlgDateSelect.cs" subtype="Code" buildaction="Compile" /> |
| 26 | 27 |
<File name="dlgNewRefValue.cs" subtype="Code" buildaction="Compile" /> |
| 27 | 28 |
<File name="gtk-gui/biblix.dlgNewRefValue.cs" subtype="Code" buildaction="Compile" /> |
| 28 | 29 |
<File name="More" subtype="Directory" buildaction="Compile" /> |
| 29 |
<File name="More/AUTHORS" subtype="Code" buildaction="FileCopy" DeployService.RelativeDeployPath="./doc/biblix/AUTHORS" DeployService.TargetDirectoryId="CommonApplicationDataRoot" Gettext.ScanForTranslations="False" /> | |
| 30 |
<File name="More/COPYING" subtype="Code" buildaction="FileCopy" DeployService.RelativeDeployPath="./doc/biblix/COPYING" DeployService.TargetDirectoryId="CommonApplicationDataRoot" Gettext.ScanForTranslations="False" /> | |
| 31 |
<File name="More/README" subtype="Code" buildaction="FileCopy" DeployService.RelativeDeployPath="./doc/biblix/README" DeployService.TargetDirectoryId="CommonApplicationDataRoot" Gettext.ScanForTranslations="False" /> | |
| 30 |
<File name="More/AUTHORS" subtype="Code" DeployService.RelativeDeployPath="./doc/biblix/AUTHORS" DeployService.TargetDirectoryId="CommonApplicationDataRoot" Gettext.ScanForTranslations="False" buildaction="FileCopy" />
| |
| 31 |
<File name="More/COPYING" subtype="Code" DeployService.RelativeDeployPath="./doc/biblix/COPYING" DeployService.TargetDirectoryId="CommonApplicationDataRoot" Gettext.ScanForTranslations="False" buildaction="FileCopy" /> | |
| 32 |
<File name="More/README" subtype="Code" DeployService.RelativeDeployPath="./doc/biblix/README" DeployService.TargetDirectoryId="CommonApplicationDataRoot" Gettext.ScanForTranslations="False" buildaction="FileCopy" /> | |
| 32 | 33 |
<File name="dlgAddBook.cs" subtype="Code" buildaction="Compile" /> |
| 33 | 34 |
<File name="gtk-gui/biblix.dlgAddBook.cs" subtype="Code" buildaction="Compile" /> |
| 34 |
<File name="icons/date.png" subtype="Code" buildaction="EmbedAsResource" /> | |
| 35 |
<File name="icons/book.png" subtype="Code" buildaction="EmbedAsResource" /> | |
| 36 |
<File name="More/Biblix.png" subtype="Code" buildaction="FileCopy" DeployService.RelativeDeployPath="./pixmaps/Biblix.png" DeployService.TargetDirectoryId="CommonApplicationDataRoot" Gettext.ScanForTranslations="False" /> | |
| 35 |
<File name="More/Biblix.png" subtype="Code" DeployService.RelativeDeployPath="./pixmaps/Biblix.png" DeployService.TargetDirectoryId="CommonApplicationDataRoot" Gettext.ScanForTranslations="False" buildaction="FileCopy" />
| |
| 37 | 36 |
<File name="option.cs" subtype="Code" buildaction="Compile" /> |
| 38 |
<File name="winSearch.cs" subtype="Code" buildaction="Compile" /> | |
| 39 |
<File name="gtk-gui/biblix.winSearch.cs" subtype="Code" buildaction="Compile" /> | |
| 37 |
<File name="dlgAddAuteur.cs" subtype="Code" buildaction="Compile" />
| |
| 38 |
<File name="gtk-gui/biblix.dlgAddAuteur.cs" subtype="Code" buildaction="Compile" /> | |
| 39 |
<File name="winAuteurs.cs" subtype="Code" buildaction="Compile" /> | |
| 40 |
<File name="gtk-gui/biblix.winAuteurs.cs" subtype="Code" buildaction="Compile" /> | |
| 40 | 41 |
</Contents> |
| 41 | 42 |
<References> |
| 42 | 43 |
<ProjectReference type="Project" localcopy="True" refto="biblix-lib" /> |
| 46 | 47 |
<ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> |
| 47 | 48 |
<ProjectReference type="Gac" localcopy="True" refto="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> |
| 48 | 49 |
<ProjectReference type="Gac" localcopy="True" refto="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> |
| 49 |
<ProjectReference type="Gac" localcopy="True" refto="gnome-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> | |
| 50 | 50 |
</References> |
| 51 |
<GtkDesignInfo gtkVersion="2.12.0" /> | |
| 51 |
<LanguageParameters ApplicationIcon="." ctype="CSharpProjectParameters" />
| |
| 52 | 52 |
</Project> |
| 53 | 53 |
| Old | New | Code |
|---|---|---|
| 1 | 1 | |
| 2 |
EXTRA_DIST = | |
| 2 |
EXTRA_DIST =
| |
| 3 | 3 | |
| 4 | 4 |
# Warning: This is an automatically generated file, do not edit! |
| 5 | 5 | |
| 6 | 6 |
if ENABLE_DEBUG |
| 7 | 7 |
ASSEMBLY_COMPILER_COMMAND = gmcs |
| 8 |
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG | |
| 9 |
ASSEMBLY = ./bin/Debug/Biblix.exe | |
| 8 |
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
| |
| 9 |
ASSEMBLY = bin/Debug/Biblix.exe | |
| 10 | 10 |
ASSEMBLY_MDB = $(ASSEMBLY).mdb |
| 11 | 11 |
COMPILE_TARGET = exe |
| 12 | 12 |
PROJECT_REFERENCES = \ |
| 13 | 13 |
../biblix-lib/bin/Debug/biblix-lib.dll |
| 14 |
BUILD_DIR = ./bin/Debug | |
| 14 |
BUILD_DIR = bin/Debug
| |
| 15 | 15 | |
| 16 |
COPYING_SOURCE=./More/COPYING | |
| 17 |
README_SOURCE=./More/README | |
| 16 |
BIBLIX_DESKTOP_SOURCE=biblix.desktop
| |
| 17 |
AUTHORS_SOURCE=More/AUTHORS | |
| 18 |
COPYING_SOURCE=More/COPYING | |
| 19 |
README_SOURCE=More/README | |
| 20 |
BIBLIX_PNG_SOURCE=More/Biblix.png | |
| 18 | 21 |
BIBLIX_LIB_DLL_SOURCE=../biblix-lib/bin/Debug/biblix-lib.dll |
| 19 | 22 |
BIBLIX_LIB_DLL_MDB_SOURCE=../biblix-lib/bin/Debug/biblix-lib.dll.mdb |
| 20 | 23 |
BIBLIX_LIB_DLL_MDB=$(BUILD_DIR)/biblix-lib.dll.mdb |
| 21 |
BIBLIX_DESKTOP_SOURCE=./biblix.desktop | |
| 22 |
BIBLIX_PNG_SOURCE=./More/Biblix.png | |
| 23 |
AUTHORS_SOURCE=./More/AUTHORS | |
| 24 |
BIBLIX_EXE_MDB_SOURCE=bin/Debug/Biblix.exe.mdb
| |
| 25 |
BIBLIX_EXE_MDB=$(BUILD_DIR)/Biblix.exe.mdb | |
| 24 | 26 | |
| 25 | 27 |
endif |
| 26 | 28 | |
| 27 | 29 |
if ENABLE_RELEASE |
| 28 | 30 |
ASSEMBLY_COMPILER_COMMAND = gmcs |
| 29 |
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 | |
| 30 |
ASSEMBLY = ./bin/Release/Biblix.exe | |
| 31 |
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
| |
| 32 |
ASSEMBLY = bin/Release/Biblix.exe | |
| 31 | 33 |
ASSEMBLY_MDB = |
| 32 | 34 |
COMPILE_TARGET = exe |
| 33 | 35 |
PROJECT_REFERENCES = \ |
| 34 | 36 |
../biblix-lib/bin/Release/biblix-lib.dll |
| 35 |
BUILD_DIR = ./bin/Release | |
| 37 |
BUILD_DIR = bin/Release
| |
| 36 | 38 | |
| 37 |
COPYING_SOURCE=./More/COPYING | |
| 38 |
README_SOURCE=./More/README | |
| 39 |
BIBLIX_DESKTOP_SOURCE=biblix.desktop
| |
| 40 |
AUTHORS_SOURCE=More/AUTHORS | |
| 41 |
COPYING_SOURCE=More/COPYING | |
| 42 |
README_SOURCE=More/README | |
| 43 |
BIBLIX_PNG_SOURCE=More/Biblix.png | |
| 39 | 44 |
BIBLIX_LIB_DLL_SOURCE=../biblix-lib/bin/Release/biblix-lib.dll |
| 40 | 45 |
BIBLIX_LIB_DLL_MDB= |
| 41 |
BIBLIX_DESKTOP_SOURCE=./biblix.desktop | |
| 42 |
BIBLIX_PNG_SOURCE=./More/Biblix.png | |
| 43 |
AUTHORS_SOURCE=./More/AUTHORS | |
| 46 |
BIBLIX_EXE_MDB=
| |
| 44 | 47 | |
| 45 | 48 |
endif |
| 46 | 49 | |
| 50 |
AL=al2 | |
| 51 |
SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll | |
| 47 | 52 | |
| 48 |
COMMONAPPLICATIONDATAROOT_PIXMAPS = \ | |
| 49 |
$(BIBLIX_PNG) | |
| 53 |
LINUX_DESKTOPAPPLICATIONS = \
| |
| 54 |
$(BIBLIX_DESKTOP) | |
| 50 | 55 | |
| 51 | 56 |
COMMONAPPLICATIONDATAROOT_DOC_BIBLIX = \ |
| 57 |
$(AUTHORS) \ | |
| 52 | 58 |
$(COPYING) \ |
| 53 |
$(README) \ | |
| 54 |
$(AUTHORS) | |
| 59 |
$(README)
| |
| 55 | 60 | |
| 61 |
COMMONAPPLICATIONDATAROOT_PIXMAPS = \ | |
| 62 |
$(BIBLIX_PNG) | |
| 63 | ||
| 56 | 64 |
PROGRAMFILES = \ |
| 57 | 65 |
$(BIBLIX_LIB_DLL) \ |
| 58 |
$(BIBLIX_LIB_DLL_MDB) | |
| 66 |
$(BIBLIX_LIB_DLL_MDB) \
| |
| 67 |
$(BIBLIX_EXE_MDB) | |
| 59 | 68 | |
| 60 |
LINUX_DESKTOPAPPLICATIONS = \ | |
| 61 |
$(BIBLIX_DESKTOP) | |
| 62 | ||
| 63 | 69 |
BINARIES = \ |
| 64 | 70 |
$(BIBLIX) |
| 65 | 71 | |
| 66 | 72 | |
| 73 |
RESGEN=resgen2 | |
| 67 | 74 |
|
| 68 |
all: $(ASSEMBLY) $(COMMONAPPLICATIONDATAROOT_PIXMAPS) $(COMMONAPPLICATIONDATAROOT_DOC_BIBLIX) $(PROGRAMFILES) $(LINUX_DESKTOPAPPLICATIONS) $(BINARIES) | |
| 75 |
all: $(ASSEMBLY) $(LINUX_DESKTOPAPPLICATIONS) $(COMMONAPPLICATIONDATAROOT_DOC_BIBLIX) $(COMMONAPPLICATIONDATAROOT_PIXMAPS) $(PROGRAMFILES) $(BINARIES)
| |
| 69 | 76 | |
| 70 | 77 |
FILES = \ |
| 71 | 78 |
gtk-gui/generated.cs \ |
| 78 | 85 |
dlgNewRefValue.cs \ |
| 79 | 86 |
gtk-gui/biblix.dlgNewRefValue.cs \ |
| 80 | 87 |
dlgAddBook.cs \ |
| 81 |
gtk-gui/biblix.dlgAddBook.cs | |
| 88 |
gtk-gui/biblix.dlgAddBook.cs \
| |
| 89 |
option.cs \ | |
| 90 |
dlgAddAuteur.cs \ | |
| 91 |
gtk-gui/biblix.dlgAddAuteur.cs \ | |
| 92 |
winAuteurs.cs \ | |
| 93 |
gtk-gui/biblix.winAuteurs.cs | |
| 82 | 94 | |
| 83 |
DATA_FILES = \ | |
| 84 |
biblix.desktop \ | |
| 85 |
More/AUTHORS \ | |
| 86 |
More/COPYING \ | |
| 87 |
More/README \ | |
| 88 |
More/Biblix.png | |
| 95 |
DATA_FILES =
| |
| 89 | 96 | |
| 90 | 97 |
RESOURCES = \ |
| 91 |
gtk-gui/gui.stetic \ | |
| 92 |
icons/date.png \ | |
| 93 |
icons/book.png | |
| 98 |
gtk-gui/gui.stetic
| |
| 94 | 99 | |
| 95 | 100 |
EXTRAS = \ |
| 96 | 101 |
biblix.in |
| 97 | 102 | |
| 98 | 103 |
REFERENCES = \ |
| 99 |
$(GTK_SHARP_20_LIBS) \ | |
| 100 |
$(GLIB_SHARP_20_LIBS) \ | |
| 101 | 104 |
System \ |
| 102 | 105 |
Mono.Posix \ |
| 103 |
$(GNOME_SHARP_20_LIBS) | |
| 106 |
$(GTK_SHARP_20_LIBS) \
| |
| 107 |
$(GLIB_SHARP_20_LIBS) | |
| 104 | 108 | |
| 105 | 109 |
DLL_REFERENCES = |
| 106 | 110 | |
| 107 |
COPYING = $(BUILD_DIR)/COPYING | |
| 108 |
README = $(BUILD_DIR)/README | |
| 111 |
CLEANFILES = $(LINUX_DESKTOPAPPLICATIONS) $(COMMONAPPLICATIONDATAROOT_DOC_BIBLIX) $(COMMONAPPLICATIONDATAROOT_PIXMAPS) $(PROGRAMFILES) $(BINARIES)
| |
| 112 | ||
| 113 |
include $(top_srcdir)/Makefile.include | |
| 114 | ||
| 115 |
BIBLIX_DESKTOP = $(BUILD_DIR)/biblix.desktop | |
| 116 |
AUTHORS = $(BUILD_DIR)/./doc/biblix/AUTHORS | |
| 117 |
COPYING = $(BUILD_DIR)/./doc/biblix/COPYING | |
| 118 |
README = $(BUILD_DIR)/./doc/biblix/README | |
| 119 |
BIBLIX_PNG = $(BUILD_DIR)/./pixmaps/Biblix.png | |
| 109 | 120 |
BIBLIX_LIB_DLL = $(BUILD_DIR)/biblix-lib.dll |
| 110 | 121 |
BIBLIX = $(BUILD_DIR)/biblix |
| 111 |
BIBLIX_DESKTOP = $(BUILD_DIR)/biblix.desktop | |
| 112 |
BIBLIX_PNG = $(BUILD_DIR)/Biblix.png | |
| 113 |
AUTHORS = $(BUILD_DIR)/AUTHORS | |
| 114 | 122 | |
| 115 |
$(COPYING): $(COPYING_SOURCE) | |
| 116 |
mkdir -p $(BUILD_DIR) | |
| 117 |
cp '$<' '$@' | |
| 123 |
$(eval $(call emit-deploy-target,BIBLIX_DESKTOP))
| |
| 124 |
$(eval $(call emit-deploy-target,AUTHORS)) | |
| 125 |
$(eval $(call emit-deploy-target,COPYING)) | |
| 126 |
$(eval $(call emit-deploy-target,README)) | |
| 127 |
$(eval $(call emit-deploy-target,BIBLIX_PNG)) | |
| 128 |
$(eval $(call emit-deploy-target,BIBLIX_LIB_DLL)) | |
| 129 |
$(eval $(call emit-deploy-target,BIBLIX_LIB_DLL_MDB)) | |
| 130 |
$(eval $(call emit-deploy-wrapper,BIBLIX,biblix,x)) | |
| 118 | 131 | |
| 119 |
$(README): $(README_SOURCE) | |
| 120 |
mkdir -p $(BUILD_DIR) | |
| 121 |
cp '$<' '$@' | |
| 122 | 132 | |
| 123 |
$(BIBLIX_LIB_DLL): $(BIBLIX_LIB_DLL_SOURCE) | |
| 124 |
mkdir -p $(BUILD_DIR) | |
| 125 |
cp '$<' '$@' | |
| 126 | ||
| 127 |
$(BIBLIX_LIB_DLL_MDB): $(BIBLIX_LIB_DLL_MDB_SOURCE) | |
| 128 |
mkdir -p $(BUILD_DIR) | |
| 129 |
cp '$<' '$@' | |
| 130 | ||
| 131 |
$(BIBLIX): biblix | |
| 132 |
mkdir -p $(BUILD_DIR) | |
| 133 |
cp '$<' '$@' | |
| 134 | ||
| 135 |
$(BIBLIX_DESKTOP): $(BIBLIX_DESKTOP_SOURCE) | |
| 136 |
mkdir -p $(BUILD_DIR) | |
| 137 |
cp '$<' '$@' | |
| 138 | ||
| 139 |
$(BIBLIX_PNG): $(BIBLIX_PNG_SOURCE) | |
| 140 |
mkdir -p $(BUILD_DIR) | |
| 141 |
cp '$<' '$@' | |
| 142 | ||
| 143 |
$(AUTHORS): $(AUTHORS_SOURCE) | |
| 144 |
mkdir -p $(BUILD_DIR) | |
| 145 |
cp '$<' '$@' | |
| 146 | ||
| 147 | ||
| 148 | ||
| 133 |
$(eval $(call emit_resgen_targets)) | |
| 149 | 134 |
$(build_xamlg_list): %.xaml.g.cs: %.xaml |
| 150 | 135 |
xamlg '$<' |
| 151 | 136 | |
| 152 |
$(build_resx_resources) : %.resources: %.resx | |
| 153 |
resgen2 '$<' '$@' | |
| 154 | ||
| 155 |
$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) | |
| 156 |
mkdir -p $(dir $(ASSEMBLY)) | |
| 137 |
$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
| |
| 138 |
mkdir -p $(shell dirname $(ASSEMBLY)) | |
| 157 | 139 |
$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref) |
| 158 | ||
| 159 |
include $(top_srcdir)/Makefile.include | |
| 160 | 140 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
#!/bin/sh |
| 2 | 2 | |
| 3 |
exec mono "@prefix@/lib/@PACKAGE@/Biblix.exe" "$@" | |
| 3 |
exec mono "@expanded_libdir@/@PACKAGE@/Biblix.exe" "$@"
| |
| 4 | 4 |
| Old | New | Code |
|---|---|---|
| 18 | 18 |
// |
| 19 | 19 | |
| 20 | 20 |
using System; |
| 21 |
using Gtk; | |
| 21 | 22 | |
| 22 | 23 |
namespace biblix |
| 23 | 24 |
{
|
| 25 | 26 |
|
| 26 | 27 |
public partial class dlgAddBook : Gtk.Dialog |
| 27 | 28 |
{
|
| 28 |
private booklist mybase; | |
| 29 |
private BookList mybase;
| |
| 29 | 30 |
|
| 30 |
public book newbook; | |
| 31 |
public Book newbook;
| |
| 31 | 32 |
|
| 32 |
public dlgAddBook(booklist workingbase) | |
| 33 |
public dlgAddBook(BookList workingbase)
| |
| 33 | 34 |
{
|
| 34 | 35 |
this.Build(); |
| 35 | 36 |
mybase = workingbase; |
| 36 |
foreach(string genre in mybase.GetGenreList()) | |
| 37 |
cbxGenre.AppendText(genre); | |
| 38 |
newbook = new book(); | |
| 37 |
//initialisation de la liste des genres
| |
| 38 |
ListStore lstListeGenre = new ListStore(typeof(int),typeof(string)); | |
| 39 |
CellRendererText cellgenre = new CellRendererText(); | |
| 40 |
cbxGenre.AddAttribute(cellgenre,"text",1); | |
| 41 |
cbxGenre.PackStart(cellgenre,false); | |
| 42 |
cbxGenre.Model = lstListeGenre; | |
| 43 |
foreach(Genre _genre in mybase.GetGenreList()) | |
| 44 |
lstListeGenre.AppendValues(_genre.Id,_genre.Lib_genre); | |
| 45 | ||
| 46 |
//initialisation de la liste des sources | |
| 47 |
ListStore lstListSource = new ListStore(typeof(int),typeof(string)); | |
| 48 |
CellRendererText cellsource = new CellRendererText(); | |
| 49 |
cbxSource.PackStart(cellsource,false); | |
| 50 |
cbxSource.AddAttribute(cellsource,"text",1); | |
| 51 |
cbxSource.Model = lstListSource; | |
| 52 |
foreach(Source _source in mybase.GetSourceList()) | |
| 53 |
lstListSource.AppendValues(_source.Id,_source.Lib_Source); | |
| 54 |
| |
| 55 |
//initialisation de la liste des Auteurs | |
| 56 |
//Liste de référence. | |
| 57 |
ListStore lstBaseAuteur = new ListStore(typeof(Auteur),typeof(string)); | |
| 58 |
CellRendererText cellauteur = new CellRendererText(); | |
| 59 |
cbxAuteurs.PackStart(cellauteur,false); | |
| 60 |
cbxAuteurs.AddAttribute(cellauteur,"text",1); | |
| 61 |
cbxAuteurs.Model=lstBaseAuteur; | |
| 62 |
foreach(Auteur _auteur in mybase.GetAuteurList()) | |
| 63 |
lstBaseAuteur.AppendValues(_auteur,_auteur.Nom+", "+_auteur.Prenom); | |
| 64 | ||
| 65 |
ListStore lstAuteurs = new ListStore(typeof(Auteur),typeof(String),typeof(String)); | |
| 66 |
trvLIstAuteur.Model = lstAuteurs; | |
| 67 |
trvLIstAuteur.AppendColumn("Nom",new CellRendererText(),"text",1);
| |
| 68 |
trvLIstAuteur.AppendColumn("Prénom",new CellRendererText(),"text",2);
| |
| 69 |
| |
| 70 |
newbook = new Book(); | |
| 39 | 71 |
} |
| 40 | 72 | |
| 41 |
protected virtual void OnBtnOKClicked (object sender, System.EventArgs e) | |
| 73 |
protected virtual void OnBtnOKClicked (object sender, System.EventArgs e){
| |
| 74 |
newbook.Titre = entTitle.Text; | |
| 75 |
TreeIter iter; | |
| 76 |
if(trvLIstAuteur.Model.GetIterFirst(out iter)){
| |
| 77 |
do{
| |
| 78 |
newbook.Auteurs.Add((Auteur)trvLIstAuteur.Model.GetValue(iter,0)); | |
| 79 |
} | |
| 80 |
while(trvLIstAuteur.Model.IterNext(ref iter)); | |
| 81 |
} | |
| 82 |
newbook.Serie = entSerie.Text; | |
| 83 |
Genre _genre = new Genre(); | |
| 84 |
cbxGenre.GetActiveIter(out iter); | |
| 85 |
_genre.Id = (int)cbxGenre.Model.GetValue(iter,0); | |
| 86 |
_genre.Lib_genre= (string)cbxGenre.Model.GetValue(iter,1); | |
| 87 |
newbook.Genre = _genre; | |
| 88 |
| |
| 89 |
Source _source = new Source(); | |
| 90 |
cbxSource.GetActiveIter(out iter); | |
| 91 |
_source.Id = (int)cbxSource.Model.GetValue(iter,0); | |
| 92 |
_source.Lib_Source = (string)cbxSource.Model.GetValue(iter,1); | |
| 93 |
newbook.Source=_source; | |
| 94 |
| |
| 95 |
newbook.Volume = spbTome.ValueAsInt; | |
| 96 |
newbook.Note = spbNote.ValueAsInt; | |
| 97 |
newbook.Lu = ckbLu.Active; | |
| 98 |
newbook.Pret = ckbPret.Active; | |
| 99 |
newbook.PublishYear = entPublication.Text; | |
| 100 |
newbook.Buydate = cldBuyDate.Date; | |
| 101 |
} | |
| 102 |
protected virtual void OnBtnCancelClicked (object sender, System.EventArgs e){
| |
| 103 |
newbook = null; | |
| 104 |
} | |
| 105 | ||
| 106 |
protected virtual void OnBtnAddAuteurClicked (object sender, System.EventArgs e) | |
| 42 | 107 |
{
|
| 43 |
newbook.titre = entTitle.Text; | |
| 44 |
newbook.auteur = entAuteur.Text; | |
| 45 |
newbook.serie = entSerie.Text; | |
| 46 |
newbook.genre = cbxGenre.ActiveText; | |
| 47 |
newbook.volume = spbTome.ValueAsInt; | |
| 48 |
newbook.note = spbNote.ValueAsInt; | |
| 49 |
newbook.lu = ckbLu.Active; | |
| 50 |
newbook.pret = ckbPret.Active; | |
| 51 |
newbook.publishyear = entPublication.Text; | |
| 108 |
TreeIter iter;
| |
| 109 |
cbxAuteurs.GetActiveIter(out iter); | |
| 110 |
Auteur _auteur = (Auteur)cbxAuteurs.Model.GetValue(iter,0); | |
| 111 |
(trvLIstAuteur.Model as ListStore).AppendValues(_auteur,_auteur.Nom,_auteur.Prenom); | |
| 52 | 112 |
} |
| 53 | 113 | |
| 54 |
protected virtual void OnBtnCancelClicked (object sender, System.EventArgs e) | |
| 114 |
protected virtual void OnBtnDeleteAuteurClicked (object sender, System.EventArgs e)
| |
| 55 | 115 |
{
|
| 56 |
newbook = null; | |
| 116 |
TreeIter iter;
| |
| 117 |
trvLIstAuteur.Selection.GetSelected(out iter); | |
| 118 |
(trvLIstAuteur.Model as ListStore).Remove(ref iter); | |
| 57 | 119 |
} |
| 58 | ||
| 59 | 120 |
} |
| 60 | 121 |
} |
| 61 | 122 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
// ------------------------------------------------------------------------------ |
| 2 | 2 |
// <autogenerated> |
| 3 | 3 |
// This code was generated by a tool. |
| 4 |
// Mono Runtime Version: 2.0.50727.42 | |
| 4 |
//
| |
| 5 | 5 |
// |
| 6 | 6 |
// Changes to this file may cause incorrect behavior and will be lost if |
| 7 | 7 |
// the code is regenerated. |
| 13 | 13 |
|
| 14 | 14 |
public partial class dlgAddBook {
|
| 15 | 15 |
|
| 16 |
private Gtk.VBox vbox2; | |
| 17 |
| |
| 18 |
private Gtk.Label label1; | |
| 19 |
| |
| 20 | 16 |
private Gtk.Alignment alignment1; |
| 21 | 17 |
|
| 22 |
private Gtk.VBox vbox6; | |
| 18 |
private Gtk.Table table1;
| |
| 23 | 19 |
|
| 24 |
private Gtk.HBox hbox3; | |
| 20 |
private Gtk.ComboBox cbxAuteurs;
| |
| 25 | 21 |
|
| 26 |
private Gtk.Label label4; | |
| 22 |
private Gtk.ComboBox cbxGenre;
| |
| 27 | 23 |
|
| 28 |
private Gtk.Alignment alignment2; | |
| 24 |
private Gtk.ComboBox cbxSource;
| |
| 29 | 25 |
|
| 30 |
private Gtk.Entry entTitle; | |
| 26 |
private Gtk.CheckButton ckbLu;
| |
| 31 | 27 |
|
| 32 |
private Gtk.HBox hbox4; | |
| 28 |
private Gtk.CheckButton ckbPret;
| |
| 33 | 29 |
|
| 34 |
private Gtk.Label label5; | |
| 30 |
private Gtk.Calendar cldBuyDate;
| |
| 35 | 31 |
|
| 36 |
private Gtk.Entry entAuteur; | |
| 32 |
private Gtk.Entry entPublication;
| |
| 37 | 33 |
|
| 38 |
private Gtk.HBox hbox8; | |
| 34 |
private Gtk.Entry entSerie;
| |
| 39 | 35 |
|
| 40 |
private Gtk.Label label9; | |
| 36 |
private Gtk.Entry entTitle;
| |
| 41 | 37 |
|
| 42 |
private Gtk.Alignment alignment4; | |
| 38 |
private Gtk.ScrolledWindow GtkScrolledWindow;
| |
| 43 | 39 |
|
| 44 |
private Gtk.Entry entSerie; | |
| 40 |
private Gtk.TreeView trvLIstAuteur;
| |
| 45 | 41 |
|
| 46 |
private Gtk.Label label10; | |
| 42 |
private Gtk.HButtonBox hbuttonbox2;
| |
| 47 | 43 |
|
| 48 |
private Gtk.SpinButton spbTome; | |
| 44 |
private Gtk.Button btnAddAuteur;
| |
| 49 | 45 |
|
| 50 |
private Gtk.HBox hbox5; | |
| 46 |
private Gtk.Button btnDeleteAuteur;
| |
| 51 | 47 |
|
| 52 |
private Gtk.Label label6; | |
| 48 |
private Gtk.Label label1;
| |
| 53 | 49 |
|
| 54 |
private Gtk.Alignment alignment3; | |
| 50 |
private Gtk.Label label10;
| |
| 55 | 51 |
|
| 56 |
private Gtk.ComboBox cbxGenre; | |
| 57 |
| |
| 58 | 52 |
private Gtk.Label label11; |
| 59 | 53 |
|
| 60 |
private Gtk.SpinButton spbNote; | |
| 54 |
private Gtk.Label label12;
| |
| 61 | 55 |
|
| 62 |
private Gtk.Alignment alignment6; | |
| 56 |
private Gtk.Label label2;
| |
| 63 | 57 |
|
| 64 |
private Gtk.CheckButton ckbLu; | |
| 58 |
private Gtk.Label label3;
| |
| 65 | 59 |
|
| 66 |
private Gtk.HBox hbox6; | |
| 60 |
private Gtk.Label label4;
| |
| 67 | 61 |
|
| 68 |
private Gtk.Label label12; | |
| 62 |
private Gtk.Label label5;
| |
| 69 | 63 |
|
| 70 |
private Gtk.Entry entPublication; | |
| 64 |
private Gtk.Label label6;
| |
| 71 | 65 |
|
| 72 |
private Gtk.Alignment alignment5; | |
| 66 |
private Gtk.Label label9;
| |
| 73 | 67 |
|
| 74 |
private Gtk.CheckButton ckbPret; | |
| 68 |
private Gtk.SpinButton spbNote;
| |
| 75 | 69 |
|
| 70 |
private Gtk.SpinButton spbTome; | |
| 71 |
| |
| 76 | 72 |
private Gtk.Button btnCancel; |
| 77 | 73 |
|
| 78 | 74 |
private Gtk.Button btnOK; |
| 93 | 89 |
w1.Name = "dialog1_VBox"; |
| 94 | 90 |
w1.BorderWidth = ((uint)(2)); |
| 95 | 91 |
// Container child dialog1_VBox.Gtk.Box+BoxChild |
| 96 |
this.vbox2 = new Gtk.VBox(); | |
| 97 |
this.vbox2.Name = "vbox2"; | |
| 98 |
this.vbox2.Spacing = 6; | |
| 99 |
// Container child vbox2.Gtk.Box+BoxChild | |
| 100 |
this.label1 = new Gtk.Label(); | |
| 101 |
this.label1.Name = "label1"; | |
| 102 |
this.label1.Xalign = 0F; | |
| 103 |
this.label1.LabelProp = Mono.Unix.Catalog.GetString("<b>Détails du livre</b>");
| |
| 104 |
this.label1.UseMarkup = true; | |
| 105 |
this.vbox2.Add(this.label1); | |
| 106 |
Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); | |
| 107 |
w2.Position = 0; | |
| 108 |
w2.Expand = false; | |
| 109 |
w2.Fill = false; | |
| 110 |
// Container child vbox2.Gtk.Box+BoxChild | |
| 111 | 92 |
this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); |
| 112 | 93 |
this.alignment1.Name = "alignment1"; |
| 113 |
this.alignment1.LeftPadding = ((uint)(12)); | |
| 94 |
this.alignment1.LeftPadding = ((uint)(10));
| |
| 114 | 95 |
// Container child alignment1.Gtk.Container+ContainerChild |
| 115 |
this.vbox6 = new Gtk.VBox(); | |
| 116 |
this.vbox6.Name = "vbox6"; | |
| 117 |
this.vbox6.Spacing = 6; | |
| 118 |
// Container child vbox6.Gtk.Box+BoxChild | |
| 119 |
this.hbox3 = new Gtk.HBox(); | |
| 120 |
this.hbox3.Name = "hbox3"; | |
| 121 |
this.hbox3.Spacing = 6; | |
| 122 |
// Container child hbox3.Gtk.Box+BoxChild | |
| 123 |
this.label4 = new Gtk.Label(); | |
| 124 |
this.label4.Name = "label4"; | |
| 125 |
this.label4.LabelProp = Mono.Unix.Catalog.GetString("Titre");
| |
| 126 |
this.hbox3.Add(this.label4); | |
| 127 |
Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox3[this.label4])); | |
| 128 |
w3.Position = 0; | |
| 129 |
w3.Expand = false; | |
| 130 |
w3.Fill = false; | |
| 131 |
// Container child hbox3.Gtk.Box+BoxChild | |
| 132 |
this.alignment2 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); | |
| 133 |
this.alignment2.Name = "alignment2"; | |
| 134 |
this.alignment2.LeftPadding = ((uint)(14)); | |
| 135 |
// Container child alignment2.Gtk.Container+ContainerChild | |
| 96 |
this.table1 = new Gtk.Table(((uint)(12)), ((uint)(3)), false);
| |
| 97 |
this.table1.Name = "table1"; | |
| 98 |
this.table1.RowSpacing = ((uint)(6)); | |
| 99 |
this.table1.ColumnSpacing = ((uint)(6)); | |
| 100 |
// Container child table1.Gtk.Table+TableChild | |
| 101 |
this.cbxAuteurs = new Gtk.ComboBox(); | |
| 102 |
this.cbxAuteurs.Name = "cbxAuteurs"; | |
| 103 |
this.table1.Add(this.cbxAuteurs); | |
| 104 |
Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.cbxAuteurs])); | |
| 105 |
w2.TopAttach = ((uint)(3)); | |
| 106 |
w2.BottomAttach = ((uint)(4)); | |
| 107 |
w2.LeftAttach = ((uint)(1)); | |
| 108 |
w2.RightAttach = ((uint)(3)); | |
| 109 |
w2.XOptions = ((Gtk.AttachOptions)(4)); | |
| 110 |
w2.YOptions = ((Gtk.AttachOptions)(4)); | |
| 111 |
// Container child table1.Gtk.Table+TableChild | |
| 112 |
this.cbxGenre = Gtk.ComboBox.NewText(); | |
| 113 |
this.cbxGenre.Name = "cbxGenre"; | |
| 114 |
this.table1.Add(this.cbxGenre); | |
| 115 |
Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.cbxGenre])); | |
| 116 |
w3.TopAttach = ((uint)(7)); | |
| 117 |
w3.BottomAttach = ((uint)(8)); | |
| 118 |
w3.LeftAttach = ((uint)(1)); | |
| 119 |
w3.RightAttach = ((uint)(2)); | |
| 120 |
w3.XOptions = ((Gtk.AttachOptions)(4)); | |
| 121 |
w3.YOptions = ((Gtk.AttachOptions)(4)); | |
| 122 |
// Container child table1.Gtk.Table+TableChild | |
| 123 |
this.cbxSource = new Gtk.ComboBox(); | |
| 124 |
this.cbxSource.CanFocus = true; | |
| 125 |
this.cbxSource.Name = "cbxSource"; | |
| 126 |
this.table1.Add(this.cbxSource); | |
| 127 |
Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.cbxSource])); | |
| 128 |
w4.TopAttach = ((uint)(8)); | |
| 129 |
w4.BottomAttach = ((uint)(9)); | |
| 130 |
w4.LeftAttach = ((uint)(1)); | |
| 131 |
w4.RightAttach = ((uint)(2)); | |
| 132 |
w4.XOptions = ((Gtk.AttachOptions)(4)); | |
| 133 |
w4.YOptions = ((Gtk.AttachOptions)(4)); | |
| 134 |
// Container child table1.Gtk.Table+TableChild | |
| 135 |
this.ckbLu = new Gtk.CheckButton(); | |
| 136 |
this.ckbLu.CanFocus = true; | |
| 137 |
this.ckbLu.Name = "ckbLu"; | |
| 138 |
this.ckbLu.Label = Mono.Unix.Catalog.GetString("Lu");
| |
| 139 |
this.ckbLu.DrawIndicator = true; | |
| 140 |
this.ckbLu.UseUnderline = true; | |
| 141 |
this.table1.Add(this.ckbLu); | |
| 142 |
Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.ckbLu])); | |
| 143 |
w5.TopAttach = ((uint)(9)); | |
| 144 |
w5.BottomAttach = ((uint)(10)); | |
| 145 |
w5.XOptions = ((Gtk.AttachOptions)(4)); | |
| 146 |
w5.YOptions = ((Gtk.AttachOptions)(4)); | |
| 147 |
// Container child table1.Gtk.Table+TableChild | |
| 148 |
this.ckbPret = new Gtk.CheckButton(); | |
| 149 |
this.ckbPret.CanFocus = true; | |
| 150 |
this.ckbPret.Name = "ckbPret"; | |
| 151 |
this.ckbPret.Label = Mono.Unix.Catalog.GetString("Prété");
| |
| 152 |
this.ckbPret.DrawIndicator = true; | |
| 153 |
this.ckbPret.UseUnderline = true; | |
| 154 |
this.ckbPret.Xalign = 1F; | |
| 155 |
this.table1.Add(this.ckbPret); | |
| 156 |
Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.ckbPret])); | |
| 157 |
w6.TopAttach = ((uint)(9)); | |
| 158 |
w6.BottomAttach = ((uint)(10)); | |
| 159 |
w6.LeftAttach = ((uint)(1)); | |
| 160 |
w6.RightAttach = ((uint)(2)); | |
| 161 |
w6.XOptions = ((Gtk.AttachOptions)(4)); | |
| 162 |
w6.YOptions = ((Gtk.AttachOptions)(4)); | |
| 163 |
// Container child table1.Gtk.Table+TableChild | |
| 164 |
this.cldBuyDate = new Gtk.Calendar(); | |
| 165 |
this.cldBuyDate.CanFocus = true; | |
| 166 |
this.cldBuyDate.Name = "cldBuyDate"; | |
| 167 |
this.cldBuyDate.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35)); | |
| 168 |
this.table1.Add(this.cldBuyDate); | |
| 169 |
Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.cldBuyDate])); | |
| 170 |
w7.TopAttach = ((uint)(6)); | |
| 171 |
w7.BottomAttach = ((uint)(12)); | |
| 172 |
w7.LeftAttach = ((uint)(2)); | |
| 173 |
w7.RightAttach = ((uint)(3)); | |
| 174 |
w7.XOptions = ((Gtk.AttachOptions)(4)); | |
| 175 |
w7.YOptions = ((Gtk.AttachOptions)(4)); | |
| 176 |
// Container child table1.Gtk.Table+TableChild | |
| 177 |
this.entPublication = new Gtk.Entry(); | |
| 178 |
this.entPublication.CanFocus = true; | |
| 179 |
this.entPublication.Name = "entPublication"; | |
| 180 |
this.entPublication.IsEditable = true; | |
| 181 |
this.entPublication.WidthChars = 4; | |
| 182 |
this.entPublication.MaxLength = 4; | |
| 183 |
this.entPublication.InvisibleChar = '●'; | |
| 184 |
this.table1.Add(this.entPublication); | |
| 185 |
Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.entPublication])); | |
| 186 |
w8.TopAttach = ((uint)(11)); | |
| 187 |
w8.BottomAttach = ((uint)(12)); | |
| 188 |
w8.LeftAttach = ((uint)(1)); | |
| 189 |
w8.RightAttach = ((uint)(2)); | |
| 190 |
w8.XOptions = ((Gtk.AttachOptions)(4)); | |
| 191 |
w8.YOptions = ((Gtk.AttachOptions)(4)); | |
| 192 |
// Container child table1.Gtk.Table+TableChild | |
| 193 |
this.entSerie = new Gtk.Entry(); | |
| 194 |
this.entSerie.CanFocus = true; | |
| 195 |
this.entSerie.Name = "entSerie"; | |
| 196 |
this.entSerie.IsEditable = true; | |
| 197 |
this.entSerie.InvisibleChar = '●'; | |
| 198 |
this.table1.Add(this.entSerie); | |
| 199 |
Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.entSerie])); | |
| 200 |
w9.TopAttach = ((uint)(5)); | |
| 201 |
w9.BottomAttach = ((uint)(6)); | |
| 202 |
w9.LeftAttach = ((uint)(1)); | |
| 203 |
w9.RightAttach = ((uint)(2)); | |
| 204 |
w9.XOptions = ((Gtk.AttachOptions)(4)); | |
| 205 |
w9.YOptions = ((Gtk.AttachOptions)(4)); | |
| 206 |
// Container child table1.Gtk.Table+TableChild | |
| 136 | 207 |
this.entTitle = new Gtk.Entry(); |
| 137 | 208 |
this.entTitle.CanFocus = true; |
| 138 | 209 |
this.entTitle.Name = "entTitle"; |
| 139 | 210 |
this.entTitle.IsEditable = true; |
| 140 | 211 |
this.entTitle.InvisibleChar = '●'; |
| 141 |
this.alignment2.Add(this.entTitle); | |
| 142 |
this.hbox3.Add(this.alignment2); | |
| 143 |
Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox3[this.alignment2])); | |
| 144 |
w5.Position = 1; | |
| 145 |
this.vbox6.Add(this.hbox3); | |
| 146 |
Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox3])); | |
| 147 |
w6.Position = 0; | |
| 148 |
w6.Expand = false; | |
| 149 |
w6.Fill = false; | |
| 150 |
// Container child vbox6.Gtk.Box+BoxChild | |
| 151 |
this.hbox4 = new Gtk.HBox(); | |
| 152 |
this.hbox4.Name = "hbox4"; | |
| 153 |
this.hbox4.Spacing = 6; | |
| 154 |
// Container child hbox4.Gtk.Box+BoxChild | |
| 155 |
this.label5 = new Gtk.Label(); | |
| 156 |
this.label5.Name = "label5"; | |
| 157 |
this.label5.LabelProp = Mono.Unix.Catalog.GetString("Auteur");
| |
| 158 |
this.hbox4.Add(this.label5); | |
| 159 |
Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.label5])); | |
| 160 |
w7.Position = 0; | |
| 161 |
w7.Expand = false; | |
| 162 |
w7.Fill = false; | |
| 163 |
// Container child hbox4.Gtk.Box+BoxChild | |
| 164 |
this.entAuteur = new Gtk.Entry(); | |
| 165 |
this.entAuteur.CanFocus = true; | |
| 166 |
this.entAuteur.Name = "entAuteur"; | |
| 167 |
this.entAuteur.IsEditable = true; | |
| 168 |
this.entAuteur.InvisibleChar = '●'; | |
| 169 |
this.hbox4.Add(this.entAuteur); | |
| 170 |
Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.entAuteur])); | |
| 171 |
w8.Position = 1; | |
| 172 |
this.vbox6.Add(this.hbox4); | |
| 173 |
Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox4])); | |
| 174 |
w9.Position = 1; | |
| 175 |
w9.Expand = false; | |
| 176 |
w9.Fill = false; | |
| 177 |
// Container child vbox6.Gtk.Box+BoxChild | |
| 178 |
this.hbox8 = new Gtk.HBox(); | |
| 179 |
this.hbox8.Name = "hbox8"; | |
| 180 |
this.hbox8.Spacing = 6; | |
| 181 |
// Container child hbox8.Gtk.Box+BoxChild | |
| 182 |
this.label9 = new Gtk.Label(); | |
| 183 |
this.label9.Name = "label9"; | |
| 184 |
this.label9.LabelProp = Mono.Unix.Catalog.GetString("Série");
| |
| 185 |
this.hbox8.Add(this.label9); | |
| 186 |
Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox8[this.label9])); | |
| 187 |
w10.Position = 0; | |
| 188 |
w10.Expand = false; | |
| 189 |
w10.Fill = false; | |
| 190 |
// Container child hbox8.Gtk.Box+BoxChild | |
| 191 |
this.alignment4 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); | |
| 192 |
this.alignment4.Name = "alignment4"; | |
| 193 |
this.alignment4.LeftPadding = ((uint)(11)); | |
| 194 |
// Container child alignment4.Gtk.Container+ContainerChild | |
| 195 |
this.entSerie = new Gtk.Entry(); | |
| 196 |
this.entSerie.CanFocus = true; | |
| 197 |
this.entSerie.Name = "entSerie"; | |
| 198 |
this.entSerie.IsEditable = true; | |
| 199 |
this.entSerie.InvisibleChar = '●'; | |
| 200 |
this.alignment4.Add(this.entSerie); | |
| 201 |
this.hbox8.Add(this.alignment4); | |
| 202 |
Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox8[this.alignment4])); | |
| 203 |
w12.Position = 1; | |
| 204 |
// Container child hbox8.Gtk.Box+BoxChild | |
| 205 |
this.label10 = new Gtk.Label(); | |
| 206 |
this.label10.Name = "label10"; | |
| 207 |
this.label10.LabelProp = Mono.Unix.Catalog.GetString("Tome");
| |
| 208 |
this.hbox8.Add(this.label10); | |
| 209 |
Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox8[this.label10])); | |
| 210 |
w13.Position = 2; | |
| 212 |
this.table1.Add(this.entTitle);
| |
| 213 |
Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.entTitle])); | |
| 214 |
w10.TopAttach = ((uint)(1)); | |
| 215 |
w10.BottomAttach = ((uint)(2)); | |
| 216 |
w10.LeftAttach = ((uint)(1)); | |
| 217 |
w10.RightAttach = ((uint)(3)); | |
| 218 |
w10.YOptions = ((Gtk.AttachOptions)(4)); | |
| 219 |
// Container child table1.Gtk.Table+TableChild | |
| 220 |
this.GtkScrolledWindow = new Gtk.ScrolledWindow(); | |
| 221 |
this.GtkScrolledWindow.Name = "GtkScrolledWindow"; | |
| 222 |
this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); | |
| 223 |
// Container child GtkScrolledWindow.Gtk.Container+ContainerChild | |
| 224 |
this.trvLIstAuteur = new Gtk.TreeView(); | |
| 225 |
this.trvLIstAuteur.CanFocus = true; | |
| 226 |
this.trvLIstAuteur.Name = "trvLIstAuteur"; | |
| 227 |
this.GtkScrolledWindow.Add(this.trvLIstAuteur); | |
| 228 |
this.table1.Add(this.GtkScrolledWindow); | |
| 229 |
Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow])); | |
| 230 |
w12.TopAttach = ((uint)(2)); | |
| 231 |
w12.BottomAttach = ((uint)(3)); | |
| 232 |
w12.LeftAttach = ((uint)(1)); | |
| 233 |
w12.RightAttach = ((uint)(3)); | |
| 234 |
w12.XOptions = ((Gtk.AttachOptions)(4)); | |
| 235 |
w12.YOptions = ((Gtk.AttachOptions)(4)); | |
| 236 |
// Container child table1.Gtk.Table+TableChild | |
| 237 |
this.hbuttonbox2 = new Gtk.HButtonBox(); | |
| 238 |
this.hbuttonbox2.Name = "hbuttonbox2"; | |
| 239 |
this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(1)); | |
| 240 |
// Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild | |
| 241 |
this.btnAddAuteur = new Gtk.Button(); | |
| 242 |
this.btnAddAuteur.CanFocus = true; | |
| 243 |
this.btnAddAuteur.Name = "btnAddAuteur"; | |
| 244 |
this.btnAddAuteur.UseStock = true; | |
| 245 |
this.btnAddAuteur.UseUnderline = true; | |
| 246 |
this.btnAddAuteur.Label = "gtk-add"; | |
| 247 |
this.hbuttonbox2.Add(this.btnAddAuteur); | |
| 248 |
Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.btnAddAuteur])); | |
| 211 | 249 |
w13.Expand = false; |
| 212 | 250 |
w13.Fill = false; |
| 213 |
// Container child hbox8.Gtk.Box+BoxChild | |
| 214 |
this.spbTome = new Gtk.SpinButton(0, 20, 1); | |
| 215 |
this.spbTome.CanFocus = true; | |
| 216 |
this.spbTome.Name = "spbTome"; | |
| 217 |
this.spbTome.Adjustment.PageIncrement = 10; | |
| 218 |
this.spbTome.ClimbRate = 1; | |
| 219 |
this.spbTome.Numeric = true; | |
| 220 |
this.hbox8.Add(this.spbTome); | |
| 221 |
Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox8[this.spbTome])); | |
| 222 |
w14.Position = 3; | |
| 251 |
// Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
| |
| 252 |
this.btnDeleteAuteur = new Gtk.Button(); | |
| 253 |
this.btnDeleteAuteur.CanFocus = true; | |
| 254 |
this.btnDeleteAuteur.Name = "btnDeleteAuteur"; | |
| 255 |
this.btnDeleteAuteur.UseStock = true; | |
| 256 |
this.btnDeleteAuteur.UseUnderline = true; | |
| 257 |
this.btnDeleteAuteur.Label = "gtk-delete"; | |
| 258 |
this.hbuttonbox2.Add(this.btnDeleteAuteur); | |
| 259 |
Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.btnDeleteAuteur])); | |
| 260 |
w14.Position = 1; | |
| 223 | 261 |
w14.Expand = false; |
| 224 | 262 |
w14.Fill = false; |
| 225 |
this.vbox6.Add(this.hbox8); | |
| 226 |
Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox8])); | |
| 227 |
w15.Position = 2; | |
| 228 |
w15.Expand = false; | |
| 229 |
w15.Fill = false; | |
| 230 |
// Container child vbox6.Gtk.Box+BoxChild | |
| 231 |
this.hbox5 = new Gtk.HBox(); | |
| 232 |
this.hbox5.Name = "hbox5"; | |
| 233 |
this.hbox5.Spacing = 6; | |
| 234 |
// Container child hbox5.Gtk.Box+BoxChild | |
| 263 |
this.table1.Add(this.hbuttonbox2);
| |
| 264 |
Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.hbuttonbox2])); | |
| 265 |
w15.TopAttach = ((uint)(4)); | |
| 266 |
w15.BottomAttach = ((uint)(5)); | |
| 267 |
w15.LeftAttach = ((uint)(1)); | |
| 268 |
w15.RightAttach = ((uint)(3)); | |
| 269 |
w15.XOptions = ((Gtk.AttachOptions)(4)); | |
| 270 |
w15.YOptions = ((Gtk.AttachOptions)(4)); | |
| 271 |
// Container child table1.Gtk.Table+TableChild | |
| 272 |
this.label1 = new Gtk.Label(); | |
| 273 |
this.label1.Name = "label1"; | |
| 274 |
this.label1.Xalign = 0F; | |
| 275 |
this.label1.LabelProp = Mono.Unix.Catalog.GetString("Acheté/emprunté/lu le : ");
| |
| 276 |
this.table1.Add(this.label1); | |
| 277 |
Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.label1])); | |
| 278 |
w16.TopAttach = ((uint)(5)); | |
| 279 |
w16.BottomAttach = ((uint)(6)); | |
| 280 |
w16.LeftAttach = ((uint)(2)); | |
| 281 |
w16.RightAttach = ((uint)(3)); | |
| 282 |
w16.XOptions = ((Gtk.AttachOptions)(4)); | |
| 283 |
w16.YOptions = ((Gtk.AttachOptions)(4)); | |
| 284 |
// Container child table1.Gtk.Table+TableChild | |
| 285 |
this.label10 = new Gtk.Label(); | |
| 286 |
this.label10.Name = "label10"; | |
| 287 |
this.label10.Xalign = 0F; | |
| 288 |
this.label10.LabelProp = Mono.Unix.Catalog.GetString("Tome");
| |
| 289 |
this.table1.Add(this.label10); | |
| 290 |
Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.label10])); | |
| 291 |
w17.TopAttach = ((uint)(6)); | |
| 292 |
w17.BottomAttach = ((uint)(7)); | |
| 293 |
w17.XOptions = ((Gtk.AttachOptions)(4)); | |
| 294 |
w17.YOptions = ((Gtk.AttachOptions)(4)); | |
| 295 |
// Container child table1.Gtk.Table+TableChild | |
| 296 |
this.label11 = new Gtk.Label(); | |
| 297 |
this.label11.Name = "label11"; | |
| 298 |
this.label11.Xalign = 0F; | |
| 299 |
this.label11.LabelProp = Mono.Unix.Catalog.GetString("Note");
| |
| 300 |
this.table1.Add(this.label11); | |
| 301 |
Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.label11])); | |
| 302 |
w18.TopAttach = ((uint)(10)); | |
| 303 |
w18.BottomAttach = ((uint)(11)); | |
| 304 |
w18.XOptions = ((Gtk.AttachOptions)(4)); | |
| 305 |
w18.YOptions = ((Gtk.AttachOptions)(4)); | |
| 306 |
// Container child table1.Gtk.Table+TableChild | |
| 307 |
this.label12 = new Gtk.Label(); | |
| 308 |
this.label12.Name = "label12"; | |
| 309 |
this.label12.Xalign = 0F; | |
| 310 |
this.label12.LabelProp = Mono.Unix.Catalog.GetString("Publié en");
| |
| 311 |
this.table1.Add(this.label12); | |
| 312 |
Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.label12])); | |
| 313 |
w19.TopAttach = ((uint)(11)); | |
| 314 |
w19.BottomAttach = ((uint)(12)); | |
| 315 |
w19.XOptions = ((Gtk.AttachOptions)(4)); | |
| 316 |
w19.YOptions = ((Gtk.AttachOptions)(4)); | |
| 317 |
// Container child table1.Gtk.Table+TableChild | |
| 318 |
this.label2 = new Gtk.Label(); | |
| 319 |
this.label2.Name = "label2"; | |
| 320 |
this.label2.Xalign = 0F; | |
| 321 |
this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Détails du livre</b>");
| |
| 322 |
this.label2.UseMarkup = true; | |
| 323 |
this.table1.Add(this.label2); | |
| 324 |
Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.label2])); | |
| 325 |
w20.RightAttach = ((uint)(3)); | |
| 326 |
w20.XOptions = ((Gtk.AttachOptions)(4)); | |
| 327 |
w20.YOptions = ((Gtk.AttachOptions)(4)); | |
| 328 |
// Container child table1.Gtk.Table+TableChild | |
| 329 |
this.label3 = new Gtk.Label(); | |
| 330 |
this.label3.Name = "label3"; | |
| 331 |
this.label3.Xalign = 0F; | |
| 332 |
this.label3.LabelProp = Mono.Unix.Catalog.GetString("Source");
| |
| 333 |
this.table1.Add(this.label3); | |
| 334 |
Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.label3])); | |
| 335 |
w21.TopAttach = ((uint)(8)); | |
| 336 |
w21.BottomAttach = ((uint)(9)); | |
| 337 |
w21.XOptions = ((Gtk.AttachOptions)(4)); | |
| 338 |
w21.YOptions = ((Gtk.AttachOptions)(4)); | |
| 339 |
// Container child table1.Gtk.Table+TableChild | |
| 340 |
this.label4 = new Gtk.Label(); | |
| 341 |
this.label4.Name = "label4"; | |
| 342 |
this.label4.Xalign = 0F; | |
| 343 |
this.label4.LabelProp = Mono.Unix.Catalog.GetString("Titre");
| |
| 344 |
this.table1.Add(this.label4); | |
| 345 |
Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.label4])); | |
| 346 |
w22.TopAttach = ((uint)(1)); | |
| 347 |
w22.BottomAttach = ((uint)(2)); | |
| 348 |
w22.XOptions = ((Gtk.AttachOptions)(4)); | |
| 349 |
w22.YOptions = ((Gtk.AttachOptions)(4)); | |
| 350 |
// Container child table1.Gtk.Table+TableChild | |
| 351 |
this.label5 = new Gtk.Label(); | |
| 352 |
this.label5.Name = "label5"; | |
| 353 |
this.label5.Xalign = 0F; | |
| 354 |
this.label5.Yalign = 0F; | |
| 355 |
this.label5.LabelProp = Mono.Unix.Catalog.GetString("Auteurs");
| |
| 356 |
this.table1.Add(this.label5); | |
| 357 |
Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.label5])); | |
| 358 |
w23.TopAttach = ((uint)(2)); | |
| 359 |
w23.BottomAttach = ((uint)(5)); | |
| 360 |
w23.XOptions = ((Gtk.AttachOptions)(4)); | |
| 361 |
w23.YOptions = ((Gtk.AttachOptions)(4)); | |
| 362 |
// Container child table1.Gtk.Table+TableChild | |
| 235 | 363 |
this.label6 = new Gtk.Label(); |
| 236 | 364 |
this.label6.Name = "label6"; |
| 365 |
this.label6.Xalign = 0F; | |
| 237 | 366 |
this.label6.LabelProp = Mono.Unix.Catalog.GetString("Genre");
|
| 238 |
this.hbox5.Add(this.label6); | |
| 239 |
Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox5[this.label6])); | |
| 240 |
w16.Position = 0; | |
| 241 |
w16.Expand = false; | |
| 242 |
w16.Fill = false; | |
| 243 |
// Container child hbox5.Gtk.Box+BoxChild | |
| 244 |
this.alignment3 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); | |
| 245 |
this.alignment3.Name = "alignment3"; | |
| 246 |
this.alignment3.LeftPadding = ((uint)(5)); | |
| 247 |
// Container child alignment3.Gtk.Container+ContainerChild | |
| 248 |
this.cbxGenre = Gtk.ComboBox.NewText(); | |
| 249 |
this.cbxGenre.Name = "cbxGenre"; | |
| 250 |
this.alignment3.Add(this.cbxGenre); | |
| 251 |
this.hbox5.Add(this.alignment3); | |
| 252 |
Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox5[this.alignment3])); | |
| 253 |
w18.Position = 1; | |
| 254 |
// Container child hbox5.Gtk.Box+BoxChild | |
| 255 |
this.label11 = new Gtk.Label(); | |
| 256 |
this.label11.Name = "label11"; | |
| 257 |
this.label11.Xalign = 1F; | |
| 258 |
this.label11.LabelProp = Mono.Unix.Catalog.GetString("Note");
| |
| 259 |
this.hbox5.Add(this.label11); | |
| 260 |
Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox5[this.label11])); | |
| 261 |
w19.Position = 2; | |
| 262 |
// Container child hbox5.Gtk.Box+BoxChild | |
| 367 |
this.table1.Add(this.label6);
| |
| 368 |
Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label6])); | |
| 369 |
w24.TopAttach = ((uint)(7)); | |
| 370 |
w24.BottomAttach = ((uint)(8)); | |
| 371 |
w24.XOptions = ((Gtk.AttachOptions)(4)); | |
| 372 |
w24.YOptions = ((Gtk.AttachOptions)(4)); | |
| 373 |
// Container child table1.Gtk.Table+TableChild | |
| 374 |
this.label9 = new Gtk.Label(); | |
| 375 |
this.label9.Name = "label9"; | |
| 376 |
this.label9.Xalign = 0F; | |
| 377 |
this.label9.LabelProp = Mono.Unix.Catalog.GetString("Série");
| |
| 378 |
this.table1.Add(this.label9); | |
| 379 |
Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.label9])); | |
| 380 |
w25.TopAttach = ((uint)(5)); | |
| 381 |
w25.BottomAttach = ((uint)(6)); | |
| 382 |
w25.XOptions = ((Gtk.AttachOptions)(4)); | |
| 383 |
w25.YOptions = ((Gtk.AttachOptions)(4)); | |
| 384 |
// Container child table1.Gtk.Table+TableChild | |
| 263 | 385 |
this.spbNote = new Gtk.SpinButton(-1, 5, 1); |
| 264 | 386 |
this.spbNote.CanFocus = true; |
| 265 | 387 |
this.spbNote.Name = "spbNote"; |
| 267 | 389 |
this.spbNote.ClimbRate = 1; |
| 268 | 390 |
this.spbNote.Numeric = true; |
| 269 | 391 |
this.spbNote.Value = -1; |
| 270 |
this.hbox5.Add(this.spbNote); | |
| 271 |
Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox5[this.spbNote])); | |
| 272 |
w20.Position = 3; | |
| 273 |
// Container child hbox5.Gtk.Box+BoxChild | |
| 274 |
this.alignment6 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); | |
| 275 |
this.alignment6.Name = "alignment6"; | |
| 276 |
this.alignment6.RightPadding = ((uint)(32)); | |
| 277 |
// Container child alignment6.Gtk.Container+ContainerChild | |
| 278 |
this.ckbLu = new Gtk.CheckButton(); | |
| 279 |
this.ckbLu.CanFocus = true; | |
| 280 |
this.ckbLu.Name = "ckbLu"; | |
| 281 |
this.ckbLu.Label = Mono.Unix.Catalog.GetString("Lu");
| |
| 282 |
this.ckbLu.DrawIndicator = true; | |
| 283 |
this.ckbLu.UseUnderline = true; | |
| 284 |
this.alignment6.Add(this.ckbLu); | |
| 285 |
this.hbox5.Add(this.alignment6); | |
| 286 |
Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox5[this.alignment6])); | |
| 287 |
w22.Position = 4; | |
| 288 |
w22.Expand = false; | |
| 289 |
w22.Fill = false; | |
| 290 |
this.vbox6.Add(this.hbox5); | |
| 291 |
Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox5])); | |
| 292 |
w23.Position = 3; | |
| 293 |
w23.Expand = false; | |
| 294 |
w23.Fill = false; | |
| 295 |
// Container child vbox6.Gtk.Box+BoxChild | |
| 296 |
this.hbox6 = new Gtk.HBox(); | |
| 297 |
this.hbox6.Name = "hbox6"; | |
| 298 |
this.hbox6.Spacing = 6; | |
| 299 |
// Container child hbox6.Gtk.Box+BoxChild | |
| 300 |
this.label12 = new Gtk.Label(); | |
| 301 |
this.label12.Name = "label12"; | |
| 302 |
this.label12.LabelProp = Mono.Unix.Catalog.GetString("Année de publication");
| |
| 303 |
this.hbox6.Add(this.label12); | |
| 304 |
Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox6[this.label12])); | |
| 305 |
w24.Position = 0; | |
| 306 |
w24.Expand = false; | |
| 307 |
w24.Fill = false; | |
| 308 |
// Container child hbox6.Gtk.Box+BoxChild | |
| 309 |
this.entPublication = new Gtk.Entry(); | |
| 310 |
this.entPublication.CanFocus = true; | |
| 311 |
this.entPublication.Name = "entPublication"; | |
| 312 |
this.entPublication.IsEditable = true; | |
| 313 |
this.entPublication.WidthChars = 4; | |
| 314 |
this.entPublication.MaxLength = 4; | |
| 315 |
this.entPublication.InvisibleChar = '●'; | |
| 316 |
this.hbox6.Add(this.entPublication); | |
| 317 |
Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox6[this.entPublication])); | |
| 318 |
w25.Position = 1; | |
| 319 |
// Container child hbox6.Gtk.Box+BoxChild | |
| 320 |
this.alignment5 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); | |
| 321 |
this.alignment5.Name = "alignment5"; | |
| 322 |
this.alignment5.RightPadding = ((uint)(13)); | |
| 323 |
// Container child alignment5.Gtk.Container+ContainerChild | |
| 324 |
this.ckbPret = new Gtk.CheckButton(); | |
| 325 |
this.ckbPret.CanFocus = true; | |
| 326 |
this.ckbPret.Name = "ckbPret"; | |
| 327 |
this.ckbPret.Label = Mono.Unix.Catalog.GetString("Prété");
| |
| 328 |
this.ckbPret.DrawIndicator = true; | |
| 329 |
this.ckbPret.UseUnderline = true; | |
| 330 |
this.ckbPret.Xalign = 1F; | |
| 331 |
this.alignment5.Add(this.ckbPret); | |
| 332 |
this.hbox6.Add(this.alignment5); | |
| 333 |
Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox6[this.alignment5])); | |
| 334 |
w27.Position = 3; | |
| 335 |
w27.Expand = false; | |
| 336 |
w27.Fill = false; | |
| 337 |
this.vbox6.Add(this.hbox6); | |
| 338 |
Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox6])); | |
| 339 |
w28.Position = 4; | |
| 340 |
w28.Expand = false; | |
| 341 |
w28.Fill = false; | |
| 342 |
this.alignment1.Add(this.vbox6); | |
| 343 |
this.vbox2.Add(this.alignment1); | |
| 344 |
Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox2[this.alignment1])); | |
| 345 |
w30.Position = 1; | |
| 346 |
w30.Expand = false; | |
| 347 |
w30.Fill = false; | |
| 348 |
w1.Add(this.vbox2); | |
| 349 |
Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); | |
| 350 |
w31.Position = 0; | |
| 351 |
w31.Expand = false; | |
| 352 |
w31.Fill = false; | |
| 392 |
this.table1.Add(this.spbNote);
| |
| 393 |
Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.spbNote])); | |
| 394 |
w26.TopAttach = ((uint)(10)); | |
| 395 |
w26.BottomAttach = ((uint)(11)); | |
| 396 |
w26.LeftAttach = ((uint)(1)); | |
| 397 |
w26.RightAttach = ((uint)(2)); | |
| 398 |
w26.XOptions = ((Gtk.AttachOptions)(4)); | |
| 399 |
w26.YOptions = ((Gtk.AttachOptions)(4)); | |
| 400 |
// Container child table1.Gtk.Table+TableChild | |
| 401 |
this.spbTome = new Gtk.SpinButton(0, 20, 1); | |
| 402 |
this.spbTome.CanFocus = true; | |
| 403 |
this.spbTome.Name = "spbTome"; | |
| 404 |
this.spbTome.Adjustment.PageIncrement = 10; | |
| 405 |
this.spbTome.ClimbRate = 1; | |
| 406 |
this.spbTome.Numeric = true; | |
| 407 |
this.table1.Add(this.spbTome); | |
| 408 |
Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.spbTome])); | |
| 409 |
w27.TopAttach = ((uint)(6)); | |
| 410 |
w27.BottomAttach = ((uint)(7)); | |
| 411 |
w27.LeftAttach = ((uint)(1)); | |
| 412 |
w27.RightAttach = ((uint)(2)); | |
| 413 |
w27.XOptions = ((Gtk.AttachOptions)(4)); | |
| 414 |
w27.YOptions = ((Gtk.AttachOptions)(4)); | |
| 415 |
this.alignment1.Add(this.table1); | |
| 416 |
w1.Add(this.alignment1); | |
| 417 |
Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(w1[this.alignment1])); | |
| 418 |
w29.Position = 0; | |
| 419 |
w29.Expand = false; | |
| 420 |
w29.Fill = false; | |
| 353 | 421 |
// Internal child biblix.dlgAddBook.ActionArea |
| 354 |
Gtk.HButtonBox w32 = this.ActionArea; | |
| 355 |
w32.Name = "dialog1_ActionArea"; | |
| 356 |
w32.Spacing = 6; | |
| 357 |
w32.BorderWidth = ((uint)(5)); | |
| 358 |
w32.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); | |
| 422 |
Gtk.HButtonBox w30 = this.ActionArea;
| |
| 423 |
w30.Name = "dialog1_ActionArea"; | |
| 424 |
w30.Spacing = 6; | |
| 425 |
w30.BorderWidth = ((uint)(5)); | |
| 426 |
w30.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); | |
| 359 | 427 |
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild |
| 360 | 428 |
this.btnCancel = new Gtk.Button(); |
| 361 | 429 |
this.btnCancel.CanDefault = true; |
| 365 | 433 |
this.btnCancel.UseUnderline = true; |
| 366 | 434 |
this.btnCancel.Label = "gtk-cancel"; |
| 367 | 435 |
this.AddActionWidget(this.btnCancel, -6); |
| 368 |
Gtk.ButtonBox.ButtonBoxChild w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w32[this.btnCancel])); | |
| 369 |
w33.Expand = false; | |
| 370 |
w33.Fill = false; | |
| 436 |
Gtk.ButtonBox.ButtonBoxChild w31 = ((Gtk.ButtonBox.ButtonBoxChild)(w30[this.btnCancel]));
| |
| 437 |
w31.Expand = false; | |
| 438 |
w31.Fill = false; | |
| 371 | 439 |
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild |
| 372 | 440 |
this.btnOK = new Gtk.Button(); |
| 373 | 441 |
this.btnOK.CanFocus = true; |
| 376 | 444 |
this.btnOK.UseUnderline = true; |
| 377 | 445 |
this.btnOK.Label = "gtk-ok"; |
| 378 | 446 |
this.AddActionWidget(this.btnOK, -5); |
| 379 |
Gtk.ButtonBox.ButtonBoxChild w34 = ((Gtk.ButtonBox.ButtonBoxChild)(w32[this.btnOK])); | |
| 380 |
w34.Position = 1; | |
| 381 |
w34.Expand = false; | |
| 382 |
w34.Fill = false; | |
| 447 |
Gtk.ButtonBox.ButtonBoxChild w32 = ((Gtk.ButtonBox.ButtonBoxChild)(w30[this.btnOK]));
| |
| 448 |
w32.Position = 1; | |
| 449 |
w32.Expand = false; | |
| 450 |
w32.Fill = false; | |
| 383 | 451 |
if ((this.Child != null)) {
|
| 384 | 452 |
this.Child.ShowAll(); |
| 385 | 453 |
} |
| 386 |
this.DefaultWidth = 486; | |
| 387 |
this.DefaultHeight = 269; | |
| 454 |
this.DefaultWidth = 564;
| |
| 455 |
this.DefaultHeight = 495; | |
| 388 | 456 |
this.Show(); |
| 457 |
this.btnAddAuteur.Clicked += new System.EventHandler(this.OnBtnAddAuteurClicked); | |
| 458 |
this.btnDeleteAuteur.Clicked += new System.EventHandler(this.OnBtnDeleteAuteurClicked); | |
| 389 | 459 |
this.btnCancel.Clicked += new System.EventHandler(this.OnBtnCancelClicked); |
| 390 | 460 |
this.btnOK.Clicked += new System.EventHandler(this.OnBtnOKClicked); |
| 391 | 461 |
} |
| 392 | 462 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
// ------------------------------------------------------------------------------ |
| 2 | 2 |
// <autogenerated> |
| 3 | 3 |
// This code was generated by a tool. |
| 4 |
// Mono Runtime Version: 2.0.50727.42 | |
| 4 |
//
| |
| 5 | 5 |
// |
| 6 | 6 |
// Changes to this file may cause incorrect behavior and will be lost if |
| 7 | 7 |
// the code is regenerated. |
| 8 | 8 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
// ------------------------------------------------------------------------------ |
| 2 | 2 |
// <autogenerated> |
| 3 | 3 |
// This code was generated by a tool. |
| 4 |
// Mono Runtime Version: 2.0.50727.42 | |
| 4 |
//
| |
| 5 | 5 |
// |
| 6 | 6 |
// Changes to this file may cause incorrect behavior and will be lost if |
| 7 | 7 |
// the code is regenerated. |
| 49 | 49 |
// Container child vbox2.Gtk.Box+BoxChild |
| 50 | 50 |
this.LblPrompt = new Gtk.Label(); |
| 51 | 51 |
this.LblPrompt.Name = "LblPrompt"; |
| 52 |
this.LblPrompt.Xalign = 0.15F; | |
| 53 | 52 |
this.LblPrompt.LabelProp = Mono.Unix.Catalog.GetString("<b>Quel genre voulez vous ajouter :</b>");
|
| 54 | 53 |
this.LblPrompt.UseMarkup = true; |
| 55 | 54 |
this.vbox2.Add(this.LblPrompt); |
| 56 | 55 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
// ------------------------------------------------------------------------------ |
| 2 | 2 |
// <autogenerated> |
| 3 | 3 |
// This code was generated by a tool. |
| 4 |
// Mono Runtime Version: 2.0.50727.42 | |
| 4 |
//
| |
| 5 | 5 |
// |
| 6 | 6 |
// Changes to this file may cause incorrect behavior and will be lost if |
| 7 | 7 |
// the code is regenerated. |
| 13 | 13 |
|
| 14 | 14 |
public partial class winBiblix {
|
| 15 | 15 |
|
| 16 |
private Gtk.UIManager UIManager; | |
| 17 |
| |
| 18 |
private Gtk.Action actAddAuteur; | |
| 19 |
| |
| 20 |
private Gtk.Action actRemoveAuteur; | |
| 21 |
| |
| 16 | 22 |
private Gtk.VBox vbox1; |
| 17 | 23 |
|
| 18 | 24 |
private Gtk.VBox mnuBox; |
| 61 | 67 |
|
| 62 | 68 |
private Gtk.Alignment alignment2; |
| 63 | 69 |
|
| 64 |
private Gtk.Entry entAuthor; | |
| 70 |
private Gtk.ScrolledWindow GtkScrolledWindow;
| |
| 65 | 71 |
|
| 72 |
private Gtk.TreeView trvAuteurs; | |
| 73 |
| |
| 74 |
private Gtk.VBox vbox4; | |
| 75 |
| |
| 76 |
private Gtk.Toolbar toolbar1; | |
| 77 |
| |
| 78 |
private Gtk.ComboBox cbxListeAuteur; | |
| 79 |
| |
| 66 | 80 |
private Gtk.HBox hbox6; |
| 67 | 81 |
|
| 68 | 82 |
private Gtk.Label label3; |
| 111 | 125 |
|
| 112 | 126 |
private Gtk.Button btnDate; |
| 113 | 127 |
|
| 114 |
private Gtk.HBox hbox14; | |
| 115 |
| |
| 116 |
private Gtk.Image image6; | |
| 117 |
| |
| 118 |
private Gtk.Label lblDate; | |
| 119 |
| |
| 120 | 128 |
private Gtk.Alignment alignment5; |
| 121 | 129 |
|
| 122 | 130 |
private Gtk.CheckButton ckbReadBook; |
| 156 | 164 |
protected virtual void Build() {
|
| 157 | 165 |
Stetic.Gui.Initialize(this); |
| 158 | 166 |
// Widget biblix.winBiblix |
| 159 |
Gtk.UIManager w1 = new Gtk.UIManager(); | |
| 160 |
Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
| |
| 161 |
w1.InsertActionGroup(w2, 0); | |
| 162 |
this.AddAccelGroup(w1.AccelGroup); | |
| 167 |
this.UIManager = new Gtk.UIManager();
| |
| 168 |
Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
| |
| 169 |
this.actAddAuteur = new Gtk.Action("actAddAuteur", null, Mono.Unix.Catalog.GetString("Ajouter l'auteur"), "gtk-add");
| |
| 170 |
w1.Add(this.actAddAuteur, null); | |
| 171 |
this.actRemoveAuteur = new Gtk.Action("actRemoveAuteur", null, Mono.Unix.Catalog.GetString("Supprimer l'auteur de la liste"), "gtk-remove");
| |
| 172 |
w1.Add(this.actRemoveAuteur, null); | |
| 173 |
this.UIManager.InsertActionGroup(w1, 0); | |
| 174 |
this.AddAccelGroup(this.UIManager.AccelGroup); | |
| 163 | 175 |
this.Name = "biblix.winBiblix"; |
| 164 | 176 |
this.Title = Mono.Unix.Catalog.GetString("Biblix");
|
| 165 |
this.Icon = Gdk.Pixbuf.LoadFromResource("book.png");
| |
| 177 |
this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-file", Gtk.IconSize.Menu, 16);
| |
| 166 | 178 |
this.WindowPosition = ((Gtk.WindowPosition)(4)); |
| 167 | 179 |
// Container child biblix.winBiblix.Gtk.Container+ContainerChild |
| 168 | 180 |
this.vbox1 = new Gtk.VBox(); |
| 173 | 185 |
this.mnuBox.Name = "mnuBox"; |
| 174 | 186 |
this.mnuBox.Spacing = -2; |
| 175 | 187 |
this.vbox1.Add(this.mnuBox); |
| 176 |
Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.mnuBox])); | |
| 177 |
w3.Position = 0; | |
| 178 |
w3.Expand = false; | |
| 188 |
Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.mnuBox]));
| |
| 189 |
w2.Position = 0; | |
| 190 |
w2.Expand = false; | |
| 179 | 191 |
// Container child vbox1.Gtk.Box+BoxChild |
| 180 | 192 |
this.hbox1 = new Gtk.HBox(); |
| 181 | 193 |
this.hbox1.Name = "hbox1"; |
| 188 | 200 |
this.ckbFilter.DrawIndicator = true; |
| 189 | 201 |
this.ckbFilter.UseUnderline = true; |
| 190 | 202 |
this.hbox1.Add(this.ckbFilter); |
| 191 |
Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.ckbFilter])); | |
| 192 |
w4.Position = 0; | |
| 193 |
w4.Expand = false; | |
| 203 |
Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.ckbFilter]));
| |
| 204 |
w3.Position = 0; | |
| 205 |
w3.Expand = false; | |
| 194 | 206 |
// Container child hbox1.Gtk.Box+BoxChild |
| 195 | 207 |
this.cbxFilterItem = Gtk.ComboBox.NewText(); |
| 208 |
this.cbxFilterItem.AppendText(Mono.Unix.Catalog.GetString("Genre"));
| |
| 209 |
this.cbxFilterItem.AppendText(Mono.Unix.Catalog.GetString("Source"));
| |
| 196 | 210 |
this.cbxFilterItem.AppendText(Mono.Unix.Catalog.GetString("Auteur"));
|
| 197 |
this.cbxFilterItem.AppendText(Mono.Unix.Catalog.GetString("Genre"));
| |
| 198 | 211 |
this.cbxFilterItem.AppendText(Mono.Unix.Catalog.GetString("Note"));
|
| 199 | 212 |
this.cbxFilterItem.AppendText(Mono.Unix.Catalog.GetString("Lu"));
|
| 213 |
this.cbxFilterItem.AppendText(Mono.Unix.Catalog.GetString("Pret"));
| |
| 200 | 214 |
this.cbxFilterItem.Sensitive = false; |
| 201 | 215 |
this.cbxFilterItem.Name = "cbxFilterItem"; |
| 202 | 216 |
this.hbox1.Add(this.cbxFilterItem); |
| 203 |
Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.cbxFilterItem])); | |
| 204 |
w5.Position = 1; | |
| 205 |
w5.Expand = false; | |
| 206 |
w5.Fill = false; | |
| 217 |
Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.cbxFilterItem]));
| |
| 218 |
w4.Position = 1; | |
| 219 |
w4.Expand = false; | |
| 220 |
w4.Fill = false; | |
| 207 | 221 |
// Container child hbox1.Gtk.Box+BoxChild |
| 208 |
this.cbxFilterValue = Gtk.ComboBox.NewText(); | |
| 222 |
this.cbxFilterValue = new Gtk.ComboBox();
| |
| 209 | 223 |
this.cbxFilterValue.Sensitive = false; |
| 210 | 224 |
this.cbxFilterValue.Name = "cbxFilterValue"; |
| 211 | 225 |
this.hbox1.Add(this.cbxFilterValue); |
| 212 |
Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.cbxFilterValue])); | |
| 213 |
w6.Position = 2; | |
| 226 |
Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.cbxFilterValue]));
| |
| 227 |
w5.Position = 2; | |
| 228 |
w5.Expand = false; | |
| 229 |
w5.Fill = false; | |
| 230 |
this.vbox1.Add(this.hbox1); | |
| 231 |
Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); | |
| 232 |
w6.Position = 1; | |
| 214 | 233 |
w6.Expand = false; |
| 215 | 234 |
w6.Fill = false; |
| 216 |
this.vbox1.Add(this.hbox1); | |
| 217 |
Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); | |
| 218 |
w7.Position = 1; | |
| 219 |
w7.Expand = false; | |
| 220 |
w7.Fill = false; | |
| 221 | 235 |
// Container child vbox1.Gtk.Box+BoxChild |
| 222 | 236 |
this.hpaned1 = new Gtk.HPaned(); |
| 223 | 237 |
this.hpaned1.CanFocus = true; |
| 233 | 247 |
this.trvBooklist.CanFocus = true; |
| 234 | 248 |
this.trvBooklist.Name = "trvBooklist"; |
| 235 | 249 |
this.trvBooklist.RulesHint = true; |
| 236 |
this.trvBooklist.HeadersClickable = true; | |
| 237 | 250 |
this.scrolledwindow1.Add(this.trvBooklist); |
| 238 | 251 |
this.hpaned1.Add(this.scrolledwindow1); |
| 239 |
Gtk.Paned.PanedChild w9 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1])); | |
| 240 |
w9.Resize = false; | |
| 252 |
Gtk.Paned.PanedChild w8 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.scrolledwindow1]));
| |
| 253 |
w8.Resize = false; | |
| 241 | 254 |
// Container child hpaned1.Gtk.Paned+PanedChild |
| 242 | 255 |
this.hbox2 = new Gtk.HBox(); |
| 243 | 256 |
this.hbox2.Name = "hbox2"; |
| 249 | 262 |
// Container child vbox2.Gtk.Box+BoxChild |
| 250 | 263 |
this.label7 = new Gtk.Label(); |
| 251 | 264 |
this.label7.Name = "label7"; |
| 252 |
this.label7.Xalign = 0.13F; | |
| 253 | 265 |
this.label7.LabelProp = Mono.Unix.Catalog.GetString("<b>Détail du livre</b>");
|
| 254 | 266 |
this.label7.UseMarkup = true; |
| 255 | 267 |
this.vbox2.Add(this.label7); |
| 256 |
Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox2[this.label7])); | |
| 257 |
w10.Position = 0; | |
| 258 |
w10.Expand = false; | |
| 259 |
w10.Fill = false; | |
| 268 |
Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.label7]));
| |
| 269 |
w9.Position = 0; | |
| 270 |
w9.Expand = false; | |
| 271 |
w9.Fill = false; | |
| 260 | 272 |
// Container child vbox2.Gtk.Box+BoxChild |
| 261 | 273 |
this.hbox3 = new Gtk.HBox(); |
| 262 | 274 |
this.hbox3.Name = "hbox3"; |
| 284 | 296 |
this.label1.Xalign = 1F; |
| 285 | 297 |
this.label1.LabelProp = Mono.Unix.Catalog.GetString("Titre");
|
| 286 | 298 |
this.hbox4.Add(this.label1); |
| 287 |
Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox4[this.label1])); | |
| 288 |
w11.Position = 0; | |
| 289 |
w11.Expand = false; | |
| 299 |
Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox4[this.label1]));
| |
| 300 |
w10.Position = 0; | |
| 301 |
w10.Expand = false; | |
| 290 | 302 |
// Container child hbox4.Gtk.Box+BoxChild |
| 291 | 303 |
this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); |
| 292 | 304 |
this.alignment1.Name = "alignment1"; |
| 300 | 312 |
this.entTitle.InvisibleChar = '●'; |
| 301 | 313 |
this.alignment1.Add(this.entTitle); |
| 302 | 314 |
this.hbox4.Add(this.alignment1); |
| 303 |
Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.alignment1])); | |
| 304 |
w13.Position = 1; | |
| 315 |
Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox4[this.alignment1]));
| |
| 316 |
w12.Position = 1; | |
| 305 | 317 |
// Container child hbox4.Gtk.Box+BoxChild |
| 306 | 318 |
this.label12 = new Gtk.Label(); |
| 307 | 319 |
this.label12.Name = "label12"; |
| 308 | 320 |
this.label12.Xalign = 1F; |
| 309 | 321 |
this.label12.LabelProp = Mono.Unix.Catalog.GetString("Année de publication : ");
|
| 310 | 322 |
this.hbox4.Add(this.label12); |
| 311 |
Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.label12])); | |
| 312 |
w14.Position = 2; | |
| 313 |
w14.Expand = false; | |
| 314 |
w14.Fill = false; | |
| 323 |
Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.label12]));
| |
| 324 |
w13.Position = 2; | |
| 325 |
w13.Expand = false; | |
| 326 |
w13.Fill = false; | |
| 315 | 327 |
// Container child hbox4.Gtk.Box+BoxChild |
| 316 | 328 |
this.entPublishYear = new Gtk.Entry(); |
| 317 | 329 |
this.entPublishYear.CanFocus = true; |
| 321 | 333 |
this.entPublishYear.MaxLength = 4; |
| 322 | 334 |
this.entPublishYear.InvisibleChar = '●'; |
| 323 | 335 |
this.hbox4.Add(this.entPublishYear); |
| 324 |
Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox4[this.entPublishYear])); | |
| 325 |
w15.Position = 3; | |
| 336 |
Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.entPublishYear]));
| |
| 337 |
w14.Position = 3; | |
| 338 |
w14.Expand = false; | |
| 339 |
w14.Fill = false; | |
| 340 |
this.vbox5.Add(this.hbox4); | |
| 341 |
Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox4])); | |
| 342 |
w15.Position = 0; | |
| 326 | 343 |
w15.Expand = false; |
| 327 | 344 |
w15.Fill = false; |
| 328 |
this.vbox5.Add(this.hbox4); | |
| 329 |
Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox4])); | |
| 330 |
w16.Position = 0; | |
| 331 |
w16.Expand = false; | |
| 332 |
w16.Fill = false; | |
| 333 | 345 |
// Container child vbox5.Gtk.Box+BoxChild |
| 334 | 346 |
this.hbox5 = new Gtk.HBox(); |
| 335 | 347 |
this.hbox5.Name = "hbox5"; |
| 338 | 350 |
this.label2 = new Gtk.Label(); |
| 339 | 351 |
this.label2.Name = "label2"; |
| 340 | 352 |
this.label2.Xalign = 1F; |
| 341 |
this.label2.LabelProp = Mono.Unix.Catalog.GetString("Auteur");
| |
| 353 |
this.label2.Yalign = 0F;
| |
| 354 |
this.label2.LabelProp = Mono.Unix.Catalog.GetString("Auteurs");
| |
| 342 | 355 |
this.hbox5.Add(this.label2); |
| 343 |
Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox5[this.label2])); | |
| 344 |
w17.Position = 0; | |
| 345 |
w17.Expand = false; | |
| 346 |
w17.Fill = false; | |
| 356 |
Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox5[this.label2]));
| |
| 357 |
w16.Position = 0; | |
| 358 |
w16.Expand = false; | |
| 359 |
w16.Fill = false; | |
| 347 | 360 |
// Container child hbox5.Gtk.Box+BoxChild |
| 348 | 361 |
this.alignment2 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); |
| 349 | 362 |
this.alignment2.Name = "alignment2"; |
| 350 | 363 |
this.alignment2.RightPadding = ((uint)(10)); |
| 351 | 364 |
// Container child alignment2.Gtk.Container+ContainerChild |
| 352 |
this.entAuthor = new Gtk.Entry(); | |
| 353 |
this.entAuthor.CanFocus = true; | |
| 354 |
this.entAuthor.Name = "entAuthor"; | |
| 355 |
this.entAuthor.IsEditable = true; | |
| 356 |
this.entAuthor.InvisibleChar = '●'; | |
| 357 |
this.alignment2.Add(this.entAuthor); | |
| 365 |
this.GtkScrolledWindow = new Gtk.ScrolledWindow();
| |
| 366 |
this.GtkScrolledWindow.Name = "GtkScrolledWindow"; | |
| 367 |
this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); | |
| 368 |
// Container child GtkScrolledWindow.Gtk.Container+ContainerChild | |
| 369 |
this.trvAuteurs = new Gtk.TreeView(); | |
| 370 |
this.trvAuteurs.CanFocus = true; | |
| 371 |
this.trvAuteurs.Name = "trvAuteurs"; | |
| 372 |
this.trvAuteurs.EnableSearch = false; | |
| 373 |
this.GtkScrolledWindow.Add(this.trvAuteurs); | |
| 374 |
this.alignment2.Add(this.GtkScrolledWindow); | |
| 358 | 375 |
this.hbox5.Add(this.alignment2); |
| 359 | 376 |
Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox5[this.alignment2])); |
| 360 | 377 |
w19.Position = 1; |
| 361 |
this.vbox5.Add(this.hbox5); | |
| 362 |
Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox5])); | |
| 363 |
w20.Position = 1; | |
| 378 |
// Container child hbox5.Gtk.Box+BoxChild
| |
| 379 |
this.vbox4 = new Gtk.VBox(); | |
| 380 |
this.vbox4.Name = "vbox4"; | |
| 381 |
this.vbox4.Spacing = 6; | |
| 382 |
// Container child vbox4.Gtk.Box+BoxChild | |
| 383 |
this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='actAddAuteur' action='actAddAuteur'/><toolitem name='actRemoveAuteur' action='actRemoveAuteur'/></toolbar></ui>");
| |
| 384 |
this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1")));
| |
| 385 |
this.toolbar1.Name = "toolbar1"; | |
| 386 |
this.toolbar1.ShowArrow = false; | |
| 387 |
this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); | |
| 388 |
this.toolbar1.IconSize = ((Gtk.IconSize)(2)); | |
| 389 |
this.vbox4.Add(this.toolbar1); | |
| 390 |
Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox4[this.toolbar1])); | |
| 391 |
w20.Position = 0; | |
| 364 | 392 |
w20.Expand = false; |
| 365 | 393 |
w20.Fill = false; |
| 394 |
// Container child vbox4.Gtk.Box+BoxChild | |
| 395 |
this.cbxListeAuteur = new Gtk.ComboBox(); | |
| 396 |
this.cbxListeAuteur.Name = "cbxListeAuteur"; | |
| 397 |
this.vbox4.Add(this.cbxListeAuteur); | |
| 398 |
Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox4[this.cbxListeAuteur])); | |
| 399 |
w21.Position = 1; | |
| 400 |
w21.Expand = false; | |
| 401 |
w21.Fill = false; | |
| 402 |
this.hbox5.Add(this.vbox4); | |
| 403 |
Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox5[this.vbox4])); | |
| 404 |
w22.Position = 2; | |
| 405 |
w22.Expand = false; | |
| 406 |
w22.Fill = false; | |
| 407 |
this.vbox5.Add(this.hbox5); | |
| 408 |
Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox5])); | |
| 409 |
w23.Position = 1; | |
| 410 |
w23.Expand = false; | |
| 411 |
w23.Fill = false; | |
| 366 | 412 |
// Container child vbox5.Gtk.Box+BoxChild |
| 367 | 413 |
this.hbox6 = new Gtk.HBox(); |
| 368 | 414 |
this.hbox6.Name = "hbox6"; |
| 373 | 419 |
this.label3.Xalign = 1F; |
| 374 | 420 |
this.label3.LabelProp = Mono.Unix.Catalog.GetString("Série");
|
| 375 | 421 |
this.hbox6.Add(this.label3); |
| 376 |
Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox6[this.label3])); | |
| 377 |
w21.Position = 0; | |
| 378 |
w21.Expand = false; | |
| 379 |
w21.Fill = false; | |
| 422 |
Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox6[this.label3]));
| |
| 423 |
w24.Position = 0; | |
| 424 |
w24.Expand = false; | |
| 425 |
w24.Fill = false; | |
| 380 | 426 |
// Container child hbox6.Gtk.Box+BoxChild |
| 381 | 427 |
this.alignment3 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); |
| 382 | 428 |
this.alignment3.Name = "alignment3"; |
| 390 | 436 |
this.entSerieTitle.InvisibleChar = '●'; |
| 391 | 437 |
this.alignment3.Add(this.entSerieTitle); |
| 392 | 438 |
this.hbox6.Add(this.alignment3); |
| 393 |
Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox6[this.alignment3])); | |
| 394 |
w23.Position = 1; | |
| 439 |
Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox6[this.alignment3]));
| |
| 440 |
w26.Position = 1; | |
| 395 | 441 |
// Container child hbox6.Gtk.Box+BoxChild |
| 396 | 442 |
this.label5 = new Gtk.Label(); |
| 397 | 443 |
this.label5.Name = "label5"; |
| 398 | 444 |
this.label5.Xalign = 1F; |
| 399 | 445 |
this.label5.LabelProp = Mono.Unix.Catalog.GetString("Tome");
|
| 400 | 446 |
this.hbox6.Add(this.label5); |
| 401 |
Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox6[this.label5])); | |
| 402 |
w24.Position = 2; | |
| 403 |
w24.Expand = false; | |
| 404 |
w24.Fill = false; | |
| 447 |
Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox6[this.label5]));
| |
| 448 |
w27.Position = 2; | |
| 449 |
w27.Expand = false; | |
| 450 |
w27.Fill = false; | |
| 405 | 451 |
// Container child hbox6.Gtk.Box+BoxChild |
| 406 | 452 |
this.alignment6 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); |
| 407 | 453 |
this.alignment6.WidthRequest = 10; |
| 416 | 462 |
this.entVolume.InvisibleChar = '●'; |
| 417 | 463 |
this.alignment6.Add(this.entVolume); |
| 418 | 464 |
this.hbox6.Add(this.alignment6); |
| 419 |
Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox6[this.alignment6])); | |
| 420 |
w26.Position = 3; | |
| 465 |
Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox6[this.alignment6]));
| |
| 466 |
w29.Position = 3; | |
| 421 | 467 |
this.vbox5.Add(this.hbox6); |
| 422 |
Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox6])); | |
| 423 |
w27.Position = 2; | |
| 424 |
w27.Expand = false; | |
| 425 |
w27.Fill = false; | |
| 468 |
Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox6]));
| |
| 469 |
w30.Position = 2; | |
| 470 |
w30.Expand = false; | |
| 471 |
w30.Fill = false; | |
| 426 | 472 |
// Container child vbox5.Gtk.Box+BoxChild |
| 427 | 473 |
this.hbox11 = new Gtk.HBox(); |
| 428 | 474 |
this.hbox11.Name = "hbox11"; |
| 433 | 479 |
this.label6.Xalign = 1F; |
| 434 | 480 |
this.label6.LabelProp = Mono.Unix.Catalog.GetString("Genre");
|
| 435 | 481 |
this.hbox11.Add(this.label6); |
| 436 |
Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.hbox11[this.label6])); | |
| 437 |
w28.Position = 0; | |
| 438 |
w28.Expand = false; | |
| 439 |
w28.Fill = false; | |
| 482 |
Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox11[this.label6]));
| |
| 483 |
w31.Position = 0; | |
| 484 |
w31.Expand = false; | |
| 485 |
w31.Fill = false; | |
| 440 | 486 |
// Container child hbox11.Gtk.Box+BoxChild |
| 441 | 487 |
this.alignment4 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); |
| 442 | 488 |
this.alignment4.Name = "alignment4"; |
| 443 | 489 |
this.alignment4.LeftPadding = ((uint)(4)); |
| 444 | 490 |
// Container child alignment4.Gtk.Container+ContainerChild |
| 445 |
this.cbxListGenre = Gtk.ComboBox.NewText(); | |
| 491 |
this.cbxListGenre = new Gtk.ComboBox();
| |
| 446 | 492 |
this.cbxListGenre.Name = "cbxListGenre"; |
| 447 | 493 |
this.alignment4.Add(this.cbxListGenre); |
| 448 | 494 |
this.hbox11.Add(this.alignment4); |
| 449 |
Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox11[this.alignment4])); | |
| 450 |
w30.Position = 1; | |
| 451 |
w30.Expand = false; | |
| 452 |
w30.Fill = false; | |
| 495 |
Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.hbox11[this.alignment4]));
| |
| 496 |
w33.Position = 1; | |
| 497 |
w33.Expand = false; | |
| 498 |
w33.Fill = false; | |
| 453 | 499 |
// Container child hbox11.Gtk.Box+BoxChild |
| 454 | 500 |
this.btnAutreGenre = new Gtk.Button(); |
| 455 | 501 |
this.btnAutreGenre.CanFocus = true; |
| 456 | 502 |
this.btnAutreGenre.Name = "btnAutreGenre"; |
| 457 | 503 |
this.btnAutreGenre.UseUnderline = true; |
| 458 | 504 |
// Container child btnAutreGenre.Gtk.Container+ContainerChild |
| 459 |
Gtk.Alignment w31 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); | |
| 505 |
Gtk.Alignment w34 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
| |
| 460 | 506 |
// Container child GtkAlignment.Gtk.Container+ContainerChild |
| 461 |
Gtk.HBox w32 = new Gtk.HBox(); | |
| 462 |
w32.Spacing = 2; | |
| 463 |
// Container child GtkHBox3.Gtk.Container+ContainerChild | |
| 464 |
Gtk.Image w33 = new Gtk.Image(); | |
| 465 |
w33.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16); | |
| 466 |
w32.Add(w33); | |
| 467 |
// Container child GtkHBox3.Gtk.Container+ContainerChild | |
| 468 |
Gtk.Label w35 = new Gtk.Label(); | |
| 469 |
w35.LabelProp = Mono.Unix.Catalog.GetString("_Autre...");
| |
| 470 |
w35.UseUnderline = true; | |
| 471 |
w32.Add(w35); | |
| 472 |
w31.Add(w32); | |
| 473 |
this.btnAutreGenre.Add(w31); | |
| 507 |
Gtk.HBox w35 = new Gtk.HBox();
| |
| 508 |
w35.Spacing = 2; | |
| 509 |
// Container child GtkHBox.Gtk.Container+ContainerChild | |
| 510 |
Gtk.Image w36 = new Gtk.Image(); | |
| 511 |
w36.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16); | |
| 512 |
w35.Add(w36); | |
| 513 |
// Container child GtkHBox.Gtk.Container+ContainerChild | |
| 514 |
Gtk.Label w38 = new Gtk.Label(); | |
| 515 |
w38.LabelProp = Mono.Unix.Catalog.GetString("_Autre...");
| |
| 516 |
w38.UseUnderline = true; | |
| 517 |
w35.Add(w38); | |
| 518 |
w34.Add(w35); | |
| 519 |
this.btnAutreGenre.Add(w34); | |
| 474 | 520 |
this.hbox11.Add(this.btnAutreGenre); |
| 475 |
Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.hbox11[this.btnAutreGenre])); | |
| 476 |
w39.Position = 2; | |
| 477 |
w39.Expand = false; | |
| 478 |
w39.Fill = false; | |
| 521 |
Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.hbox11[this.btnAutreGenre]));
| |
| 522 |
w42.Position = 2; | |
| 523 |
w42.Expand = false; | |
| 524 |
w42.Fill = false; | |
| 479 | 525 |
// Container child hbox11.Gtk.Box+BoxChild |
| 480 | 526 |
this.label4 = new Gtk.Label(); |
| 481 | 527 |
this.label4.Name = "label4"; |
| 482 | 528 |
this.label4.Xalign = 1F; |
| 483 | 529 |
this.label4.LabelProp = Mono.Unix.Catalog.GetString("Note");
|
| 484 | 530 |
this.hbox11.Add(this.label4); |
| 485 |
Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox11[this.label4])); | |
| 486 |
w40.Position = 3; | |
| 487 |
w40.Expand = false; | |
| 488 |
w40.Fill = false; | |
| 531 |
Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.hbox11[this.label4]));
| |
| 532 |
w43.Position = 3; | |
| 533 |
w43.Expand = false; | |
| 534 |
w43.Fill = false; | |
| 489 | 535 |
// Container child hbox11.Gtk.Box+BoxChild |
| 490 | 536 |
this.alignment8 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); |
| 491 | 537 |
this.alignment8.WidthRequest = 80; |
| 503 | 549 |
this.cbxNote.AddTearoffs = true; |
| 504 | 550 |
this.alignment8.Add(this.cbxNote); |
| 505 | 551 |
this.hbox11.Add(this.alignment8); |
| 506 |
Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.hbox11[this.alignment8])); | |
| 507 |
w42.Position = 4; | |
| 508 |
w42.Expand = false; | |
| 509 |
w42.Fill = false; | |
| 552 |
Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.hbox11[this.alignment8]));
| |
| 553 |
w45.Position = 4; | |
| 554 |
w45.Expand = false; | |
| 555 |
w45.Fill = false; | |
| 510 | 556 |
this.vbox5.Add(this.hbox11); |
| 511 |
Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox11])); | |
| 512 |
w43.Position = 3; | |
| 513 |
w43.Expand = false; | |
| 514 |
w43.Fill = false; | |
| 557 |
Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox11]));
| |
| 558 |
w46.Position = 3; | |
| 559 |
w46.Expand = false; | |
| 560 |
w46.Fill = false; | |
| 515 | 561 |
// Container child vbox5.Gtk.Box+BoxChild |
| 516 | 562 |
this.hbox12 = new Gtk.HBox(); |
| 517 | 563 |
this.hbox12.Name = "hbox12"; |
| 521 | 567 |
this.label10.Name = "label10"; |
| 522 | 568 |
this.label10.LabelProp = Mono.Unix.Catalog.GetString("Origine");
|
| 523 | 569 |
this.hbox12.Add(this.label10); |
| 524 |
Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.hbox12[this.label10])); | |
| 525 |
w44.Position = 0; | |
| 526 |
w44.Expand = false; | |
| 527 |
w44.Fill = false; | |
| 570 |
Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox12[this.label10]));
| |
| 571 |
w47.Position = 0; | |
| 572 |
w47.Expand = false; | |
| 573 |
w47.Fill = false; | |
| 528 | 574 |
// Container child hbox12.Gtk.Box+BoxChild |
| 529 |
this.cbxSource = Gtk.ComboBox.NewText(); | |
| 575 |
this.cbxSource = new Gtk.ComboBox();
| |
| 530 | 576 |
this.cbxSource.Name = "cbxSource"; |
| 531 | 577 |
this.hbox12.Add(this.cbxSource); |
| 532 |
Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.hbox12[this.cbxSource])); | |
| 533 |
w45.Position = 1; | |
| 534 |
w45.Expand = false; | |
| 535 |
w45.Fill = false; | |
| 578 |
Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.hbox12[this.cbxSource]));
| |
| 579 |
w48.Position = 1; | |
| 580 |
w48.Expand = false; | |
| 581 |
w48.Fill = false; | |
| 536 | 582 |
// Container child hbox12.Gtk.Box+BoxChild |
| 537 | 583 |
this.btnAddSource = new Gtk.Button(); |
| 538 | 584 |
this.btnAddSource.CanFocus = true; |
| 539 | 585 |
this.btnAddSource.Name = "btnAddSource"; |
| 540 | 586 |
// Container child btnAddSource.Gtk.Container+ContainerChild |
| 541 |
Gtk.Alignment w46 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); | |
| 542 |
// Container child GtkAlignment1.Gtk.Container+ContainerChild | |
| 543 |
Gtk.HBox w47 = new Gtk.HBox(); | |
| 544 |
w47.Spacing = 2; | |
| 545 |
// Container child GtkHBox6.Gtk.Container+ContainerChild | |
| 546 |
Gtk.Image w48 = new Gtk.Image(); | |
| 547 |
w48.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16); | |
| 548 |
w47.Add(w48); | |
| 549 |
// Container child GtkHBox6.Gtk.Container+ContainerChild | |
| 550 |
Gtk.Label w50 = new Gtk.Label(); | |
| 551 |
w50.LabelProp = Mono.Unix.Catalog.GetString("Autre...");
| |
| 552 |
w47.Add(w50); | |
| 553 |
w46.Add(w47); | |
| 554 |
this.btnAddSource.Add(w46); | |
| 587 |
Gtk.Alignment w49 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
| |
| 588 |
// Container child GtkAlignment.Gtk.Container+ContainerChild | |
| 589 |
Gtk.HBox w50 = new Gtk.HBox(); | |
| 590 |
w50.Spacing = 2; | |
| 591 |
// Container child GtkHBox.Gtk.Container+ContainerChild | |
| 592 |
Gtk.Image w51 = new Gtk.Image(); | |
| 593 |
w51.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16); | |
| 594 |
w50.Add(w51); | |
| 595 |
// Container child GtkHBox.Gtk.Container+ContainerChild | |
| 596 |
Gtk.Label w53 = new Gtk.Label(); | |
| 597 |
w53.LabelProp = Mono.Unix.Catalog.GetString("Autre...");
| |
| 598 |
w50.Add(w53); | |
| 599 |
w49.Add(w50); | |
| 600 |
this.btnAddSource.Add(w49); | |
| 555 | 601 |
this.hbox12.Add(this.btnAddSource); |
| 556 |
Gtk.Box.BoxChild w54 = ((Gtk.Box.BoxChild)(this.hbox12[this.btnAddSource])); | |
| 557 |
w54.Position = 2; | |
| 558 |
w54.Expand = false; | |
| 559 |
w54.Fill = false; | |
| 602 |
Gtk.Box.BoxChild w57 = ((Gtk.Box.BoxChild)(this.hbox12[this.btnAddSource]));
| |
| 603 |
w57.Position = 2; | |
| 604 |
w57.Expand = false; | |
| 605 |
w57.Fill = false; | |
| 560 | 606 |
// Container child hbox12.Gtk.Box+BoxChild |
| 561 | 607 |
this.alignment7 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); |
| 562 | 608 |
this.alignment7.Name = "alignment7"; |
| 570 | 616 |
this.ckbPret.UseUnderline = true; |
| 571 | 617 |
this.alignment7.Add(this.ckbPret); |
| 572 | 618 |
this.hbox12.Add(this.alignment7); |
| 573 |
Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.hbox12[this.alignment7])); | |
| 574 |
w56.Position = 3; | |
| 619 |
Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.hbox12[this.alignment7]));
| |
| 620 |
w59.Position = 3; | |
| 575 | 621 |
this.vbox5.Add(this.hbox12); |
| 576 |
Gtk.Box.BoxChild w57 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox12])); | |
| 577 |
w57.Position = 4; | |
| 578 |
w57.Expand = false; | |
| 579 |
w57.Fill = false; | |
| 622 |
Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox12]));
| |
| 623 |
w60.Position = 4; | |
| 624 |
w60.Expand = false; | |
| 625 |
w60.Fill = false; | |
| 580 | 626 |
// Container child vbox5.Gtk.Box+BoxChild |
| 581 | 627 |
this.hbox8 = new Gtk.HBox(); |
| 582 | 628 |
this.hbox8.Name = "hbox8"; |
| 586 | 632 |
this.label11.Name = "label11"; |
| 587 | 633 |
this.label11.LabelProp = Mono.Unix.Catalog.GetString("Lu/Acheté/Emprunté le : ");
|
| 588 | 634 |
this.hbox8.Add(this.label11); |
| 589 |
Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.hbox8[this.label11])); | |
| 590 |
w58.Position = 0; | |
| 591 |
w58.Expand = false; | |
| 592 |
w58.Fill = false; | |
| 635 |
Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(this.hbox8[this.label11]));
| |
| 636 |
w61.Position = 0; | |
| 637 |
w61.Expand = false; | |
| 638 |
w61.Fill = false; | |
| 593 | 639 |
// Container child hbox8.Gtk.Box+BoxChild |
| 594 | 640 |
this.btnDate = new Gtk.Button(); |
| 595 | 641 |
this.btnDate.CanFocus = true; |
| 596 | 642 |
this.btnDate.Name = "btnDate"; |
| 597 |
// Container child btnDate.Gtk.Container+ContainerChild | |
| 598 |
this.hbox14 = new Gtk.HBox(); | |
| 599 |
this.hbox14.Name = "hbox14"; | |
| 600 |
this.hbox14.Spacing = 6; | |
| 601 |
// Container child hbox14.Gtk.Box+BoxChild | |
| 602 |
this.image6 = new Gtk.Image(); | |
| 603 |
this.image6.Name = "image6"; | |
| 604 |
this.image6.Pixbuf = Gdk.Pixbuf.LoadFromResource("date.png");
| |
| 605 |
this.hbox14.Add(this.image6); | |
| 606 |
Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.hbox14[this.image6])); | |
| 607 |
w59.Position = 0; | |
| 608 |
w59.Expand = false; | |
| 609 |
w59.Fill = false; | |
| 610 |
// Container child hbox14.Gtk.Box+BoxChild | |
| 611 |
this.lblDate = new Gtk.Label(); | |
| 612 |
this.lblDate.Name = "lblDate"; | |
| 613 |
this.lblDate.LabelProp = Mono.Unix.Catalog.GetString("date...");
| |
| 614 |
this.hbox14.Add(this.lblDate); | |
| 615 |
Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(this.hbox14[this.lblDate])); | |
| 616 |
w60.Position = 1; | |
| 617 |
w60.Expand = false; | |
| 618 |
w60.Fill = false; | |
| 619 |
this.btnDate.Add(this.hbox14); | |
| 620 |
this.btnDate.Label = null; | |
| 643 |
this.btnDate.UseUnderline = true;
| |
| 644 |
this.btnDate.Label = Mono.Unix.Catalog.GetString("date...");
| |
| 621 | 645 |
this.hbox8.Add(this.btnDate); |
| 622 | 646 |
Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(this.hbox8[this.btnDate])); |
| 623 | 647 |
w62.Position = 1; |
| 762 | 786 |
if ((this.Child != null)) {
|
| 763 | 787 |
this.Child.ShowAll(); |
| 764 | 788 |
} |
| 765 |
this.DefaultWidth = 746; | |
| 766 |
this.DefaultHeight = 576; | |
| 789 |
this.DefaultWidth = 752;
| |
| 790 |
this.DefaultHeight = 579; | |
| 767 | 791 |
this.Show(); |
| 768 | 792 |
this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); |
| 793 |
this.actAddAuteur.Activated += new System.EventHandler(this.OnActAddAuteurActivated); | |
| 769 | 794 |
this.ckbFilter.Clicked += new System.EventHandler(this.OnCkbFilterClicked); |
| 770 | 795 |
this.cbxFilterItem.Changed += new System.EventHandler(this.OnCbxFilterItemChanged); |
| 771 | 796 |
this.cbxFilterValue.Changed += new System.EventHandler(this.OnCbxFilterValueChanged); |
| 772 | 797 |
this.entTitle.Changed += new System.EventHandler(this.OnEditBook); |
| 773 | 798 |
this.entPublishYear.Changed += new System.EventHandler(this.OnEditBook); |
| 774 |
this.entAuthor.Changed += new System.EventHandler(this.OnEditBook); | |
| 775 | 799 |
this.entSerieTitle.Changed += new System.EventHandler(this.OnEditBook); |
| 776 | 800 |
this.entVolume.Changed += new System.EventHandler(this.OnEditBook); |
| 777 | 801 |
this.cbxListGenre.Changed += new System.EventHandler(this.OnEditBook); |
| 778 | 802 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
// ------------------------------------------------------------------------------ |
| 2 | 2 |
// <autogenerated> |
| 3 | 3 |
// This code was generated by a tool. |
| 4 |
// Mono Runtime Version: 2.0.50727.42 | |
| 4 |
//
| |
| 5 | 5 |
// |
| 6 | 6 |
// Changes to this file may cause incorrect behavior and will be lost if |
| 7 | 7 |
// the code is regenerated. |
| 18 | 18 |
internal static void Initialize(Gtk.Widget iconRenderer) {
|
| 19 | 19 |
if ((Stetic.Gui.initialized == false)) {
|
| 20 | 20 |
Stetic.Gui.initialized = true; |
| 21 |
Gtk.IconFactory w1 = new Gtk.IconFactory(); | |
| 22 |
Gtk.IconSet w2 = new Gtk.IconSet(Gdk.Pixbuf.LoadFromResource("book.png"));
| |
| 23 |
w1.Add("app-icon", w2);
| |
| 24 |
w1.AddDefault(); | |
| 25 | 21 |
} |
| 26 | 22 |
} |
| 27 | 23 |
} |
| 28 | 24 |
| Old | New | Code |
|---|---|---|
| 2 | 2 |
<stetic-interface> |
| 3 | 3 |
<configuration> |
| 4 | 4 |
<images-root-path>..</images-root-path> |
| 5 |
<target-gtk-version>2.12.0</target-gtk-version> | |
| 5 |
<target-gtk-version>2.12</target-gtk-version> | |
| 6 | 6 |
</configuration> |
| 7 |
<icon-factory> | |
| 8 |
<icon-set id="app-icon"> | |
| 9 |
<source> | |
| 10 |
<property name="Image">resource:book.png</property> | |
| 11 |
</source> | |
| 12 |
</icon-set> | |
| 13 |
</icon-factory> | |
| 14 |
<widget class="Gtk.Window" id="biblix.winBiblix" design-size="746 576"> | |
| 15 |
<action-group name="Default" /> | |
| 7 |
<import>
| |
| 8 |
<widget-library name="../bin/Debug/Biblix.exe" internal="true" /> | |
| 9 |
</import> | |
| 10 |
<widget class="Gtk.Window" id="biblix.winBiblix" design-size="752 579"> | |
| 11 |
<action-group name="Default"> | |
| 12 |
<action id="actAddAuteur"> | |
| 13 |
<property name="Type">Action</property> | |
| 14 |
<property name="Label" translatable="yes" /> | |
| 15 |
<property name="StockId">gtk-add</property> | |
| 16 |
<property name="Tooltip" translatable="yes">Ajouter l'auteur</property> | |
| 17 |
<signal name="Activated" handler="OnActAddAuteurActivated" /> | |
| 18 |
</action> | |
| 19 |
<action id="actRemoveAuteur"> | |
| 20 |
<property name="Type">Action</property> | |
| 21 |
<property name="Label" translatable="yes" /> | |
| 22 |
<property name="StockId">gtk-remove</property> | |
| 23 |
<property name="Tooltip" translatable="yes">Supprimer l'auteur de la liste</property> | |
| 24 |
</action> | |
| 25 |
</action-group> | |
| 16 | 26 |
<property name="MemberName" /> |
| 17 | 27 |
<property name="Title" translatable="yes">Biblix</property> |
| 18 |
<property name="Icon">resource:book.png</property> | |
| 28 |
<property name="Icon">stock:gtk-file Menu</property>
| |
| 19 | 29 |
<property name="WindowPosition">CenterOnParent</property> |
| 20 | 30 |
<signal name="DeleteEvent" handler="OnDeleteEvent" /> |
| 21 | 31 |
<child> |
| 61 | 71 |
<property name="MemberName" /> |
| 62 | 72 |
<property name="Sensitive">False</property> |
| 63 | 73 |
<property name="IsTextCombo">True</property> |
| 64 |
<property name="Items" translatable="yes">Auteur | |
| 65 |
Genre | |
| 74 |
<property name="Items" translatable="yes">Genre | |
| 75 |
Source | |
| 76 |
Auteur | |
| 66 | 77 |
Note |
| 67 |
Lu</property> | |
| 78 |
Lu
| |
| 79 |
Pret</property> | |
| 68 | 80 |
<signal name="Changed" handler="OnCbxFilterItemChanged" /> |
| 69 | 81 |
</widget> |
| 70 | 82 |
<packing> |
| 78 | 90 |
<widget class="Gtk.ComboBox" id="cbxFilterValue"> |
| 79 | 91 |
<property name="MemberName" /> |
| 80 | 92 |
<property name="Sensitive">False</property> |
| 81 |
<property name="IsTextCombo">True</property> | |
| 93 |
<property name="IsTextCombo">False</property>
| |
| 82 | 94 |
<property name="Items" translatable="yes" /> |
| 83 | 95 |
<signal name="Changed" handler="OnCbxFilterValueChanged" /> |
| 84 | 96 |
</widget> |
| 112 | 124 |
<property name="MemberName" /> |
| 113 | 125 |
<property name="CanFocus">True</property> |
| 114 | 126 |
<property name="RulesHint">True</property> |
| 115 |
<property name="HeadersClickable">True</property> | |
| 116 | 127 |
</widget> |
| 117 | 128 |
</child> |
| 118 | 129 |
</widget> |
| 131 | 142 |
<child> |
| 132 | 143 |
<widget class="Gtk.Label" id="label7"> |
| 133 | 144 |
<property name="MemberName" /> |
| 134 |
<property name="Xalign">0,13</property> | |
| 135 | 145 |
<property name="LabelProp" translatable="yes"><b>Détail du livre</b></property> |
| 136 | 146 |
<property name="UseMarkup">True</property> |
| 137 | 147 |
</widget> |
| 241 | 251 |
<widget class="Gtk.Label" id="label2"> |
| 242 | 252 |
<property name="MemberName" /> |
| 243 | 253 |
<property name="Xalign">1</property> |
| 244 |
<property name="LabelProp" translatable="yes">Auteur</property> | |
| 254 |
<property name="Yalign">0</property>
| |
| 255 |
<property name="LabelProp" translatable="yes">Auteurs</property> | |
| 245 | 256 |
</widget> |
| 246 | 257 |
<packing> |
| 247 | 258 |
<property name="Position">0</property> |
| 255 | 266 |
<property name="MemberName" /> |
| 256 | 267 |
<property name="RightPadding">10</property> |
| 257 | 268 |
<child> |
| 258 |
<widget class="Gtk.Entry" id="entAuthor"> | |
| 269 |
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow">
| |
| 259 | 270 |
<property name="MemberName" /> |
| 260 |
<property name="CanFocus">True</property> | |
| 261 |
<property name="IsEditable">True</property> | |
| 262 |
<property name="InvisibleChar">●</property> | |
| 263 |
<signal name="Changed" handler="OnEditBook" /> | |
| 271 |
<property name="ShadowType">In</property>
| |
| 272 |
<child> | |
| 273 |
<widget class="Gtk.TreeView" id="trvAuteurs"> | |
| 274 |
<property name="MemberName" /> | |
| 275 |
<property name="CanFocus">True</property> | |
| 276 |
<property name="ShowScrollbars">True</property> | |
| 277 |
<property name="EnableSearch">False</property> | |
| 278 |
</widget> | |
| 279 |
</child> | |
| 264 | 280 |
</widget> |
| 265 | 281 |
</child> |
| 266 | 282 |
</widget> |
| 269 | 285 |
<property name="AutoSize">True</property> |
| 270 | 286 |
</packing> |
| 271 | 287 |
</child> |
| 288 |
<child> | |
| 289 |
<widget class="Gtk.VBox" id="vbox4"> | |
| 290 |
<property name="MemberName" /> | |
| 291 |
<property name="Spacing">6</property> | |
| 292 |
<child> | |
| 293 |
<widget class="Gtk.Toolbar" id="toolbar1"> | |
| 294 |
<property name="MemberName" /> | |
| 295 |
<property name="ShowArrow">False</property> | |
| 296 |
<property name="ButtonStyle">Icons</property> | |
| 297 |
<property name="IconSize">SmallToolbar</property> | |
| 298 |
<node name="toolbar1" type="Toolbar"> | |
| 299 |
<node type="Toolitem" action="actAddAuteur" /> | |
| 300 |
<node type="Toolitem" action="actRemoveAuteur" /> | |
| 301 |
</node> | |
| 302 |
</widget> | |
| 303 |
<packing> | |
| 304 |
<property name="Position">0</property> | |
| 305 |
<property name="AutoSize">True</property> | |
| 306 |
<property name="Expand">False</property> | |
| 307 |
<property name="Fill">False</property> | |
| 308 |
</packing> | |
| 309 |
</child> | |
| 310 |
<child> | |
| 311 |
<widget class="Gtk.ComboBox" id="cbxListeAuteur"> | |
| 312 |
<property name="MemberName" /> | |
| 313 |
<property name="IsTextCombo">False</property> | |
| 314 |
<property name="Items" translatable="yes" /> | |
| 315 |
</widget> | |
| 316 |
<packing> | |
| 317 |
<property name="Position">1</property> | |
| 318 |
<property name="AutoSize">True</property> | |
| 319 |
<property name="Expand">False</property> | |
| 320 |
<property name="Fill">False</property> | |
| 321 |
</packing> | |
| 322 |
</child> | |
| 323 |
</widget> | |
| 324 |
<packing> | |
| 325 |
<property name="Position">2</property> | |
| 326 |
<property name="AutoSize">True</property> | |
| 327 |
<property name="Expand">False</property> | |
| 328 |
<property name="Fill">False</property> | |
| 329 |
</packing> | |
| 330 |
</child> | |
| 272 | 331 |
</widget> |
| 273 | 332 |
<packing> |
| 274 | 333 |
<property name="Position">1</property> |
| 380 | 439 |
<child> |
| 381 | 440 |
<widget class="Gtk.ComboBox" id="cbxListGenre"> |
| 382 | 441 |
<property name="MemberName" /> |
| 383 |
<property name="IsTextCombo">True</property> | |
| 442 |
<property name="IsTextCombo">False</property>
| |
| 384 | 443 |
<property name="Items" translatable="yes" /> |
| 385 | 444 |
<signal name="Changed" handler="OnEditBook" /> |
| 386 | 445 |
</widget> |
| 477 | 536 |
<child> |
| 478 | 537 |
<widget class="Gtk.ComboBox" id="cbxSource"> |
| 479 | 538 |
<property name="MemberName" /> |
| 480 |
<property name="IsTextCombo">True</property> | |
| 539 |
<property name="IsTextCombo">False</property>
| |
| 481 | 540 |
<property name="Items" translatable="yes" /> |
| 482 | 541 |
<signal name="Changed" handler="OnEditBook" /> |
| 483 | 542 |
</widget> |
| 553 | 612 |
<widget class="Gtk.Button" id="btnDate"> |
| 554 | 613 |
<property name="MemberName" /> |
| 555 | 614 |
<property name="CanFocus">True</property> |
| 556 |
<property name="Type">Custom</property> | |
| 615 |
<property name="Type">TextOnly</property>
| |
| 616 |
<property name="Label" translatable="yes">date...</property> | |
| 617 |
<property name="UseUnderline">True</property> | |
| 557 | 618 |
<signal name="Clicked" handler="OnBtnDateClicked" /> |
| 558 |
<child> | |
| 559 |
<widget class="Gtk.HBox" id="hbox14"> | |
| 560 |
<property name="MemberName" /> | |
| 561 |
<property name="Spacing">6</property> | |
| 562 |
<child> | |
| 563 |
<widget class="Gtk.Image" id="image6"> | |
| 564 |
<property name="MemberName" /> | |
| 565 |
<property name="Pixbuf">resource:date.png</property> | |
| 566 |
</widget> | |
| 567 |
<packing> | |
| 568 |
<property name="Position">0</property> | |
| 569 |
<property name="AutoSize">True</property> | |
| 570 |
<property name="Expand">False</property> | |
| 571 |
<property name="Fill">False</property> | |
| 572 |
</packing> | |
| 573 |
</child> | |
| 574 |
<child> | |
| 575 |
<widget class="Gtk.Label" id="lblDate"> | |
| 576 |
<property name="MemberName" /> | |
| 577 |
<property name="LabelProp" translatable="yes">date...</property> | |
| 578 |
</widget> | |
| 579 |
<packing> | |
| 580 |
<property name="Position">1</property> | |
| 581 |
<property name="AutoSize">True</property> | |
| 582 |
<property name="Expand">False</property> | |
| 583 |
<property name="Fill">False</property> | |
| 584 |
</packing> | |
| 585 |
</child> | |
| 586 |
</widget> | |
| 587 |
</child> | |
| 588 | 619 |
</widget> |
| 589 | 620 |
<packing> |
| 590 | 621 |
<property name="Position">1</property> |
| 937 | 968 |
<child> |
| 938 | 969 |
<widget class="Gtk.Label" id="LblPrompt"> |
| 939 | 970 |
<property name="MemberName" /> |
| 940 |
<property name="Xalign">0,15</property> | |
| 941 | 971 |
<property name="LabelProp" translatable="yes"><b>Quel genre voulez vous ajouter :</b></property> |
| 942 | 972 |
<property name="UseMarkup">True</property> |
| 943 | 973 |
</widget> |
| 1040 | 1070 |
</widget> |
| 1041 | 1071 |
</child> |
| 1042 | 1072 |
</widget> |
| 1043 |
<widget class="Gtk.Dialog" id="biblix.dlgAddBook" design-size="486 269"> | |
| 1073 |
<widget class="Gtk.Dialog" id="biblix.dlgAddBook" design-size="564 495">
| |
| 1044 | 1074 |
<property name="MemberName" /> |
| 1045 | 1075 |
<property name="Title" translatable="yes">Nouveau livre</property> |
| 1046 | 1076 |
<property name="TypeHint">Dialog</property> |
| 1056 | 1086 |
<property name="MemberName" /> |
| 1057 | 1087 |
<property name="BorderWidth">2</property> |
| 1058 | 1088 |
<child> |
| 1059 |
<widget class="Gtk.VBox" id="vbox2"> | |
| 1089 |
<widget class="Gtk.Alignment" id="alignment1">
| |
| 1060 | 1090 |
<property name="MemberName" /> |
| 1061 |
<property name="Spacing">6</property> | |
| 1091 |
<property name="LeftPadding">10</property>
| |
| 1062 | 1092 |
<child> |
| 1063 |
<widget class="Gtk.Label" id="label1"> | |
| 1093 |
<widget class="Gtk.Table" id="table1">
| |
| 1064 | 1094 |
<property name="MemberName" /> |
| 1065 |
<property name="Xalign">0</property> | |
| 1066 |
<property name="LabelProp" translatable="yes"><b>Détails du livre</b></property> | |
| 1067 |
<property name="UseMarkup">True</property> | |
| 1068 |
</widget> | |
| 1069 |
<packing> | |
| 1070 |
<property name="Position">0</property> | |
| 1071 |
<property name="AutoSize">True</property> | |
| 1072 |
<property name="Expand">False</property> | |
| 1073 |
<property name="Fill">False</property> | |
| 1074 |
</packing> | |
| 1075 |
</child> | |
| 1076 |
<child> | |
| 1077 |
<widget class="Gtk.Alignment" id="alignment1"> | |
| 1078 |
<property name="MemberName" /> | |
| 1079 |
<property name="LeftPadding">12</property> | |
| 1095 |
<property name="NRows">12</property>
| |
| 1096 |
<property name="NColumns">3</property> | |
| 1097 |
<property name="RowSpacing">6</property> | |
| 1098 |
<property name="ColumnSpacing">6</property> | |
| 1080 | 1099 |
<child> |
| 1081 |
<widget class="Gtk.VBox" id="vbox6"> | |
| 1100 |
<widget class="Gtk.ComboBox" id="cbxAuteurs">
| |
| 1082 | 1101 |
<property name="MemberName" /> |
| 1083 |
<property name="Spacing">6</property> | |
| 1102 |
<property name="IsTextCombo">False</property>
| |
| 1103 |
<property name="Items" translatable="yes" /> | |
| 1104 |
</widget> | |
| 1105 |
<packing> | |
| 1106 |
<property name="TopAttach">3</property> | |
| 1107 |
<property name="BottomAttach">4</property> | |
| 1108 |
<property name="LeftAttach">1</property> | |
| 1109 |
<property name="RightAttach">3</property> | |
| 1110 |
<property name="AutoSize">True</property> | |
| 1111 |
<property name="XOptions">Fill</property> | |
| 1112 |
<property name="YOptions">Fill</property> | |
| 1113 |
<property name="XExpand">False</property> | |
| 1114 |
<property name="XFill">True</property> | |
| 1115 |
<property name="XShrink">False</property> | |
| 1116 |
<property name="YExpand">False</property> | |
| 1117 |
<property name="YFill">True</property> | |
| 1118 |
<property name="YShrink">False</property> | |
| 1119 |
</packing> | |
| 1120 |
</child> | |
| 1121 |
<child> | |
| 1122 |
<widget class="Gtk.ComboBox" id="cbxGenre"> | |
| 1123 |
<property name="MemberName" /> | |
| 1124 |
<property name="IsTextCombo">True</property> | |
| 1125 |
<property name="Items" translatable="yes" /> | |
| 1126 |
</widget> | |
| 1127 |
<packing> | |
| 1128 |
<property name="TopAttach">7</property> | |
| 1129 |
<property name="BottomAttach">8</property> | |
| 1130 |
<property name="LeftAttach">1</property> | |
| 1131 |
<property name="RightAttach">2</property> | |
| 1132 |
<property name="AutoSize">True</property> | |
| 1133 |
<property name="XOptions">Fill</property> | |
| 1134 |
<property name="YOptions">Fill</property> | |
| 1135 |
<property name="XExpand">False</property> | |
| 1136 |
<property name="XFill">True</property> | |
| 1137 |
<property name="XShrink">False</property> | |
| 1138 |
<property name="YExpand">False</property> | |
| 1139 |
<property name="YFill">True</property> | |
| 1140 |
<property name="YShrink">False</property> | |
| 1141 |
</packing> | |
| 1142 |
</child> | |
| 1143 |
<child> | |
| 1144 |
<widget class="Gtk.ComboBox" id="cbxSource"> | |
| 1145 |
<property name="MemberName" /> | |
| 1146 |
<property name="CanFocus">True</property> | |
| 1147 |
<property name="IsTextCombo">False</property> | |
| 1148 |
<property name="Items" translatable="yes" /> | |
| 1149 |
</widget> | |
| 1150 |
<packing> | |
| 1151 |
<property name="TopAttach">8</property> | |
| 1152 |
<property name="BottomAttach">9</property> | |
| 1153 |
<property name="LeftAttach">1</property> | |
| 1154 |
<property name="RightAttach">2</property> | |
| 1155 |
<property name="AutoSize">False</property> | |
| 1156 |
<property name="XOptions">Fill</property> | |
| 1157 |
<property name="YOptions">Fill</property> | |
| 1158 |
<property name="XExpand">False</property> | |
| 1159 |
<property name="XFill">True</property> | |
| 1160 |
<property name="XShrink">False</property> | |
| 1161 |
<property name="YExpand">False</property> | |
| 1162 |
<property name="YFill">True</property> | |
| 1163 |
<property name="YShrink">False</property> | |
| 1164 |
</packing> | |
| 1165 |
</child> | |
| 1166 |
<child> | |
| 1167 |
<widget class="Gtk.CheckButton" id="ckbLu"> | |
| 1168 |
<property name="MemberName" /> | |
| 1169 |
<property name="CanFocus">True</property> | |
| 1170 |
<property name="Label" translatable="yes">Lu</property> | |
| 1171 |
<property name="DrawIndicator">True</property> | |
| 1172 |
<property name="HasLabel">True</property> | |
| 1173 |
<property name="UseUnderline">True</property> | |
| 1174 |
</widget> | |
| 1175 |
<packing> | |
| 1176 |
<property name="TopAttach">9</property> | |
| 1177 |
<property name="BottomAttach">10</property> | |
| 1178 |
<property name="AutoSize">True</property> | |
| 1179 |
<property name="XOptions">Fill</property> | |
| 1180 |
<property name="YOptions">Fill</property> | |
| 1181 |
<property name="XExpand">False</property> | |
| 1182 |
<property name="XFill">True</property> | |
| 1183 |
<property name="XShrink">False</property> | |
| 1184 |
<property name="YExpand">False</property> | |
| 1185 |
<property name="YFill">True</property> | |
| 1186 |
<property name="YShrink">False</property> | |
| 1187 |
</packing> | |
| 1188 |
</child> | |
| 1189 |
<child> | |
| 1190 |
<widget class="Gtk.CheckButton" id="ckbPret"> | |
| 1191 |
<property name="MemberName" /> | |
| 1192 |
<property name="CanFocus">True</property> | |
| 1193 |
<property name="Label" translatable="yes">Prété</property> | |
| 1194 |
<property name="DrawIndicator">True</property> | |
| 1195 |
<property name="HasLabel">True</property> | |
| 1196 |
<property name="UseUnderline">True</property> | |
| 1197 |
<property name="Xalign">1</property> | |
| 1198 |
</widget> | |
| 1199 |
<packing> | |
| 1200 |
<property name="TopAttach">9</property> | |
| 1201 |
<property name="BottomAttach">10</property> | |
| 1202 |
<property name="LeftAttach">1</property> | |
| 1203 |
<property name="RightAttach">2</property> | |
| 1204 |
<property name="AutoSize">True</property> | |
| 1205 |
<property name="XOptions">Fill</property> | |
| 1206 |
<property name="YOptions">Fill</property> | |
| 1207 |
<property name="XExpand">False</property> | |
| 1208 |
<property name="XFill">True</property> | |
| 1209 |
<property name="XShrink">False</property> | |
| 1210 |
<property name="YExpand">False</property> | |
| 1211 |
<property name="YFill">True</property> | |
| 1212 |
<property name="YShrink">False</property> | |
| 1213 |
</packing> | |
| 1214 |
</child> | |
| 1215 |
<child> | |
| 1216 |
<widget class="Gtk.Calendar" id="cldBuyDate"> | |
| 1217 |
<property name="MemberName" /> | |
| 1218 |
<property name="CanFocus">True</property> | |
| 1219 |
<property name="DisplayOptions">35</property> | |
| 1220 |
</widget> | |
| 1221 |
<packing> | |
| 1222 |
<property name="TopAttach">6</property> | |
| 1223 |
<property name="BottomAttach">12</property> | |
| 1224 |
<property name="LeftAttach">2</property> | |
| 1225 |
<property name="RightAttach">3</property> | |
| 1226 |
<property name="AutoSize">True</property> | |
| 1227 |
<property name="XOptions">Fill</property> | |
| 1228 |
<property name="YOptions">Fill</property> | |
| 1229 |
<property name="XExpand">False</property> | |
| 1230 |
<property name="XFill">True</property> | |
| 1231 |
<property name="XShrink">False</property> | |
| 1232 |
<property name="YExpand">False</property> | |
| 1233 |
<property name="YFill">True</property> | |
| 1234 |
<property name="YShrink">False</property> | |
| 1235 |
</packing> | |
| 1236 |
</child> | |
| 1237 |
<child> | |
| 1238 |
<widget class="Gtk.Entry" id="entPublication"> | |
| 1239 |
<property name="MemberName" /> | |
| 1240 |
<property name="CanFocus">True</property> | |
| 1241 |
<property name="IsEditable">True</property> | |
| 1242 |
<property name="WidthChars">4</property> | |
| 1243 |
<property name="MaxLength">4</property> | |
| 1244 |
<property name="InvisibleChar">●</property> | |
| 1245 |
</widget> | |
| 1246 |
<packing> | |
| 1247 |
<property name="TopAttach">11</property> | |
| 1248 |
<property name="BottomAttach">12</property> | |
| 1249 |
<property name="LeftAttach">1</property> | |
| 1250 |
<property name="RightAttach">2</property> | |
| 1251 |
<property name="AutoSize">True</property> | |
| 1252 |
<property name="XOptions">Fill</property> | |
| 1253 |
<property name="YOptions">Fill</property> | |
| 1254 |
<property name="XExpand">False</property> | |
| 1255 |
<property name="XFill">True</property> | |
| 1256 |
<property name="XShrink">False</property> | |
| 1257 |
<property name="YExpand">False</property> | |
| 1258 |
<property name="YFill">True</property> | |
| 1259 |
<property name="YShrink">False</property> | |
| 1260 |
</packing> | |
| 1261 |
</child> | |
| 1262 |
<child> | |
| 1263 |
<widget class="Gtk.Entry" id="entSerie"> | |
| 1264 |
<property name="MemberName" /> | |
| 1265 |
<property name="CanFocus">True</property> | |
| 1266 |
<property name="IsEditable">True</property> | |
| 1267 |
<property name="InvisibleChar">●</property> | |
| 1268 |
</widget> | |
| 1269 |
<packing> | |
| 1270 |
<property name="TopAttach">5</property> | |
| 1271 |
<property name="BottomAttach">6</property> | |
| 1272 |
<property name="LeftAttach">1</property> | |
| 1273 |
<property name="RightAttach">2</property> | |
| 1274 |
<property name="AutoSize">True</property> | |
| 1275 |
<property name="XOptions">Fill</property> | |
| 1276 |
<property name="YOptions">Fill</property> | |
| 1277 |
<property name="XExpand">False</property> | |
| 1278 |
<property name="XFill">True</property> | |
| 1279 |
<property name="XShrink">False</property> | |
| 1280 |
<property name="YExpand">False</property> | |
| 1281 |
<property name="YFill">True</property> | |
| 1282 |
<property name="YShrink">False</property> | |
| 1283 |
</packing> | |
| 1284 |
</child> | |
| 1285 |
<child> | |
| 1286 |
<widget class="Gtk.Entry" id="entTitle"> | |
| 1287 |
<property name="MemberName" /> | |
| 1288 |
<property name="CanFocus">True</property> | |
| 1289 |
<property name="IsEditable">True</property> | |
| 1290 |
<property name="InvisibleChar">●</property> | |
| 1291 |
</widget> | |
| 1292 |
<packing> | |
| 1293 |
<property name="TopAttach">1</property> | |
| 1294 |
<property name="BottomAttach">2</property> | |
| 1295 |
<property name="LeftAttach">1</property> | |
| 1296 |
<property name="RightAttach">3</property> | |
| 1297 |
<property name="AutoSize">True</property> | |
| 1298 |
<property name="YOptions">Fill</property> | |
| 1299 |
<property name="XExpand">True</property> | |
| 1300 |
<property name="XFill">True</property> | |
| 1301 |
<property name="XShrink">False</property> | |
| 1302 |
<property name="YExpand">False</property> | |
| 1303 |
<property name="YFill">True</property> | |
| 1304 |
<property name="YShrink">False</property> | |
| 1305 |
</packing> | |
| 1306 |
</child> | |
| 1307 |
<child> | |
| 1308 |
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> | |
| 1309 |
<property name="MemberName" /> | |
| 1310 |
<property name="ShadowType">In</property> | |
| 1084 | 1311 |
<child> |
| 1085 |
<widget class="Gtk.HBox" id="hbox3"> | |
| 1312 |
<widget class="Gtk.TreeView" id="trvLIstAuteur">
| |
| 1086 | 1313 |
<property name="MemberName" /> |
| 1087 |
<property name="Spacing">6</property> | |
| 1088 |
<child> | |
| 1089 |
<widget class="Gtk.Label" id="label4"> | |
| 1090 |
<property name="MemberName" /> | |
| 1091 |
<property name="LabelProp" translatable="yes">Titre</property> | |
| 1092 |
</widget> | |
| 1093 |
<packing> | |
| 1094 |
<property name="Position">0</property> | |
| 1095 |
<property name="AutoSize">True</property> | |
| 1096 |
<property name="Expand">False</property> | |
| 1097 |
<property name="Fill">False</property> | |
| 1098 |
</packing> | |
| 1099 |
</child> | |
| 1100 |
<child> | |
| 1101 |
<widget class="Gtk.Alignment" id="alignment2"> | |
| 1102 |
<property name="MemberName" /> | |
| 1103 |
<property name="LeftPadding">14</property> | |
| 1104 |
<child> | |
| 1105 |
<widget class="Gtk.Entry" id="entTitle"> | |
| 1106 |
<property name="MemberName" /> | |
| 1107 |
<property name="CanFocus">True</property> | |
| 1108 |
<property name="IsEditable">True</property> | |
| 1109 |
<property name="InvisibleChar">●</property> | |
| 1110 |
</widget> | |
| 1111 |
</child> | |
| 1112 |
</widget> | |
| 1113 |
<packing> | |
| 1114 |
<property name="Position">1</property> | |
| 1115 |
<property name="AutoSize">True</property> | |
| 1116 |
</packing> | |
| 1117 |
</child> | |
| 1314 |
<property name="CanFocus">True</property>
| |
| 1315 |
<property name="ShowScrollbars">True</property> | |
| 1118 | 1316 |
</widget> |
| 1119 |
<packing> | |
| 1120 |
<property name="Position">0</property> | |
| 1121 |
<property name="AutoSize">True</property> | |
| 1122 |
<property name="Expand">False</property> | |
| 1123 |
<property name="Fill">False</property> | |
| 1124 |
</packing> | |
| 1125 | 1317 |
</child> |
| 1318 |
</widget>
| |
| 1319 |
<packing> | |
| 1320 |
<property name="TopAttach">2</property> | |
| 1321 |
<property name="BottomAttach">3</property> | |
| 1322 |
<property name="LeftAttach">1</property> | |
| 1323 |
<property name="RightAttach">3</property> | |
| 1324 |
<property name="AutoSize">True</property> | |
| 1325 |
<property name="XOptions">Fill</property> | |
| 1326 |
<property name="YOptions">Fill</property> | |
| 1327 |
<property name="XExpand">False</property> | |
| 1328 |
<property name="XFill">True</property> | |
| 1329 |
<property name="XShrink">False</property> | |
| 1330 |
<property name="YExpand">False</property> | |
| 1331 |
<property name="YFill">True</property> | |
| 1332 |
<property name="YShrink">False</property> | |
| 1333 |
</packing> | |
| 1334 |
</child> | |
| 1335 |
<child> | |
| 1336 |
<widget class="Gtk.HButtonBox" id="hbuttonbox2"> | |
| 1337 |
<property name="MemberName" /> | |
| 1338 |
<property name="Size">2</property> | |
| 1339 |
<property name="LayoutStyle">Spread</property> | |
| 1126 | 1340 |
<child> |
| 1127 |
<widget class="Gtk.HBox" id="hbox4"> | |
| 1341 |
<widget class="Gtk.Button" id="btnAddAuteur">
| |
| 1128 | 1342 |
<property name="MemberName" /> |
| 1129 |
<property name="Spacing">6</property> | |
| 1130 |
<child> | |
| 1131 |
<widget class="Gtk.Label" id="label5"> | |
| 1132 |
<property name="MemberName" /> | |
| 1133 |
<property name="LabelProp" translatable="yes">Auteur</property> | |
| 1134 |
</widget> | |
| 1135 |
<packing> | |
| 1136 |
<property name="Position">0</property> | |
| 1137 |
<property name="AutoSize">True</property> | |
| 1138 |
<property name="Expand">False</property> | |
| 1139 |
<property name="Fill">False</property> | |
| 1140 |
</packing> | |
| 1141 |
</child> | |
| 1142 |
<child> | |
| 1143 |
<widget class="Gtk.Entry" id="entAuteur"> | |
| 1144 |
<property name="MemberName" /> | |
| 1145 |
<property name="CanFocus">True</property> | |
| 1146 |
<property name="IsEditable">True</property> | |
| 1147 |
<property name="InvisibleChar">●</property> | |
| 1148 |
</widget> | |
| 1149 |
<packing> | |
| 1150 |
<property name="Position">1</property> | |
| 1151 |
<property name="AutoSize">True</property> | |
| 1152 |
</packing> | |
| 1153 |
</child> | |
| 1343 |
<property name="CanFocus">True</property>
| |
| 1344 |
<property name="UseStock">True</property> | |
| 1345 |
<property name="Type">StockItem</property> | |
| 1346 |
<property name="StockId">gtk-add</property> | |
| 1347 |
<signal name="Clicked" handler="OnBtnAddAuteurClicked" /> | |
| 1348 |
<property name="label">gtk-add</property> | |
| 1154 | 1349 |
</widget> |
| 1155 | 1350 |
<packing> |
| 1156 |
<property name="Position">1</property> | |
| 1157 |
<property name="AutoSize">True</property> | |
| 1158 | 1351 |
<property name="Expand">False</property> |
| 1159 | 1352 |
<property name="Fill">False</property> |
| 1160 | 1353 |
</packing> |
| 1161 | 1354 |
</child> |
| 1162 | 1355 |
<child> |
| 1163 |
<widget class="Gtk.HBox" id="hbox8"> | |
| 1356 |
<widget class="Gtk.Button" id="btnDeleteAuteur">
| |
| 1164 | 1357 |
<property name="MemberName" /> |
| 1165 |
<property name="Spacing">6</property> | |
| 1166 |
<child> | |
| 1167 |
<widget class="Gtk.Label" id="label9"> | |
| 1168 |
<property name="MemberName" /> | |
| 1169 |
<property name="LabelProp" translatable="yes">Série</property> | |
| 1170 |
</widget> | |
| 1171 |
<packing> | |
| 1172 |
<property name="Position">0</property> | |
| 1173 |
<property name="AutoSize">True</property> | |
| 1174 |
<property name="Expand">False</property> | |
| 1175 |
<property name="Fill">False</property> | |
| 1176 |
</packing> | |
| 1177 |
</child> | |
| 1178 |
<child> | |
| 1179 |
<widget class="Gtk.Alignment" id="alignment4"> | |
| 1180 |
<property name="MemberName" /> | |
| 1181 |
<property name="LeftPadding">11</property> | |
| 1182 |
<child> | |
| 1183 |
<widget class="Gtk.Entry" id="entSerie"> | |
| 1184 |
<property name="MemberName" /> | |
| 1185 |
<property name="CanFocus">True</property> | |
| 1186 |
<property name="IsEditable">True</property> | |
| 1187 |
<property name="InvisibleChar">●</property> | |
| 1188 |
</widget> | |
| 1189 |
</child> | |
| 1190 |
</widget> | |
| 1191 |
<packing> | |
| 1192 |
<property name="Position">1</property> | |
| 1193 |
<property name="AutoSize">True</property> | |
| 1194 |
</packing> | |
| 1195 |
</child> | |
| 1196 |
<child> | |
| 1197 |
<widget class="Gtk.Label" id="label10"> | |
| 1198 |
<property name="MemberName" /> | |
| 1199 |
<property name="LabelProp" translatable="yes">Tome</property> | |
| 1200 |
</widget> | |
| 1201 |
<packing> | |
| 1202 |
<property name="Position">2</property> | |
| 1203 |
<property name="AutoSize">True</property> | |
| 1204 |
<property name="Expand">False</property> | |
| 1205 |
<property name="Fill">False</property> | |
| 1206 |
</packing> | |
| 1207 |
</child> | |
| 1208 |
<child> | |
| 1209 |
<widget class="Gtk.SpinButton" id="spbTome"> | |
| 1210 |
<property name="MemberName" /> | |
| 1211 |
<property name="CanFocus">True</property> | |
| 1212 |
<property name="Upper">20</property> | |
| 1213 |
<property name="PageIncrement">10</property> | |
| 1214 |
<property name="StepIncrement">1</property> | |
| 1215 |
<property name="ClimbRate">1</property> | |
| 1216 |
<property name="Numeric">True</property> | |
| 1217 |
</widget> | |
| 1218 |
<packing> | |
| 1219 |
<property name="Position">3</property> | |
| 1220 |
<property name="AutoSize">True</property> | |
| 1221 |
<property name="Expand">False</property> | |
| 1222 |
<property name="Fill">False</property> | |
| 1223 |
</packing> | |
| 1224 |
</child> | |
| 1358 |
<property name="CanFocus">True</property>
| |
| 1359 |
<property name="UseStock">True</property> | |
| 1360 |
<property name="Type">StockItem</property> | |
| 1361 |
<property name="StockId">gtk-delete</property> | |
| 1362 |
<signal name="Clicked" handler="OnBtnDeleteAuteurClicked" /> | |
| 1363 |
<property name="label">gtk-delete</property> | |
| 1225 | 1364 |
</widget> |
| 1226 | 1365 |
<packing> |
| 1227 |
<property name="Position">2</property> | |
| 1228 |
<property name="AutoSize">True</property> | |
| 1366 |
<property name="Position">1</property>
| |
| 1229 | 1367 |
<property name="Expand">False</property> |
| 1230 | 1368 |
<property name="Fill">False</property> |
| 1231 | 1369 |
</packing> |
| 1232 | 1370 |
</child> |
| 1233 |
<child> | |
| 1234 |
<widget class="Gtk.HBox" id="hbox5"> | |
| 1235 |
<property name="MemberName" /> | |
| 1236 |
<property name="Spacing">6</property> | |
| 1237 |
<child> | |
| 1238 |
<widget class="Gtk.Label" id="label6"> | |
| 1239 |
<property name="MemberName" /> | |
| 1240 |
<property name="LabelProp" translatable="yes">Genre</property> | |
| 1241 |
</widget> | |
| 1242 |
<packing> | |
| 1243 |
<property name="Position">0</property> | |
| 1244 |
<property name="AutoSize">True</property> | |
| 1245 |
<property name="Expand">False</property> | |
| 1246 |
<property name="Fill">False</property> | |
| 1247 |
</packing> | |
| 1248 |
</child> | |
| 1249 |
<child> | |
| 1250 |
<widget class="Gtk.Alignment" id="alignment3"> | |
| 1251 |
<property name="MemberName" /> | |
| 1252 |
<property name="LeftPadding">5</property> | |
| 1253 |
<child> | |
| 1254 |
<widget class="Gtk.ComboBox" id="cbxGenre"> | |
| 1255 |
<property name="MemberName" /> | |
| 1256 |
<property name="IsTextCombo">True</property> | |
| 1257 |
<property name="Items" translatable="yes" /> | |
| 1258 |
</widget> | |
| 1259 |
</child> | |
| 1260 |
</widget> | |
| 1261 |
<packing> | |
| 1262 |
<property name="Position">1</property> | |
| 1263 |
<property name="AutoSize">False</property> | |
| 1264 |
</packing> | |
| 1265 |
</child> | |
| 1266 |
<child> | |
| 1267 |
<widget class="Gtk.Label" id="label11"> | |
| 1268 |
<property name="MemberName" /> | |
| 1269 |
<property name="Xalign">1</property> | |
| 1270 |
<property name="LabelProp" translatable="yes">Note</property> | |
| 1271 |
</widget> | |
| 1272 |
<packing> | |
| 1273 |
<property name="Position">2</property> | |
| 1274 |
<property name="AutoSize">False</property> | |
| 1275 |
</packing> | |
| 1276 |
</child> | |
| 1277 |
<child> | |
| 1278 |
<widget class="Gtk.SpinButton" id="spbNote"> | |
| 1279 |
<property name="MemberName" /> | |
| 1280 |
<property name="CanFocus">True</property> | |
| 1281 |
<property name="Lower">-1</property> | |
| 1282 |
<property name="Upper">5</property> | |
| 1283 |
<property name="PageIncrement">10</property> | |
| 1284 |
<property name="StepIncrement">1</property> | |
| 1285 |
<property name="ClimbRate">1</property> | |
| 1286 |
<property name="Numeric">True</property> | |
| 1287 |
<property name="Value">-1</property> | |
| 1288 |
</widget> | |
| 1289 |
<packing> | |
| 1290 |
<property name="Position">3</property> | |
| 1291 |
<property name="AutoSize">False</property> | |
| 1292 |
</packing> | |
| 1293 |
</child> | |
| 1294 |
<child> | |
| 1295 |
<widget class="Gtk.Alignment" id="alignment6"> | |
| 1296 |
<property name="MemberName" /> | |
| 1297 |
<property name="RightPadding">32</property> | |
| 1298 |
<child> | |
| 1299 |
<widget class="Gtk.CheckButton" id="ckbLu"> | |
| 1300 |
<property name="MemberName" /> | |
| 1301 |
<property name="CanFocus">True</property> | |
| 1302 |
<property name="Label" translatable="yes">Lu</property> | |
| 1303 |
<property name="DrawIndicator">True</property> | |
| 1304 |
<property name="HasLabel">True</property> | |
| 1305 |
<property name="UseUnderline">True</property> | |
| 1306 |
</widget> | |
| 1307 |
</child> | |
| 1308 |
</widget> | |
| 1309 |
<packing> | |
| 1310 |
<property name="Position">4</property> | |
| 1311 |
<property name="AutoSize">False</property> | |
| 1312 |
<property name="Expand">False</property> | |
| 1313 |
<property name="Fill">False</property> | |
| 1314 |
</packing> | |
| 1315 |
</child> | |
| 1316 |
</widget> | |
| 1317 |
<packing> | |
| 1318 |
<property name="Position">3</property> | |
| 1319 |
<property name="AutoSize">True</property> | |
| 1320 |
<property name="Expand">False</property> | |
| 1321 |
<property name="Fill">False</property> | |
| 1322 |
</packing> | |
| 1323 |
</child> | |
| 1324 |
<child> | |
| 1325 |
<widget class="Gtk.HBox" id="hbox6"> | |
| 1326 |
<property name="MemberName" /> | |
| 1327 |
<property name="Spacing">6</property> | |
| 1328 |
<child> | |
| 1329 |
<widget class="Gtk.Label" id="label12"> | |
| 1330 |
<property name="MemberName" /> | |
| 1331 |
<property name="LabelProp" translatable="yes">Année de publication</property> | |
| 1332 |
</widget> | |
| 1333 |
<packing> | |
| 1334 |
<property name="Position">0</property> | |
| 1335 |
<property name="AutoSize">True</property> | |
| 1336 |
<property name="Expand">False</property> | |
| 1337 |
<property name="Fill">False</property> | |
| 1338 |
</packing> | |
| 1339 |
</child> | |
| 1340 |
<child> | |
| 1341 |
<widget class="Gtk.Entry" id="entPublication"> | |
| 1342 |
<property name="MemberName" /> | |
| 1343 |
<property name="CanFocus">True</property> | |
| 1344 |
<property name="IsEditable">True</property> | |
| 1345 |
<property name="WidthChars">4</property> | |
| 1346 |
<property name="MaxLength">4</property> | |
| 1347 |
<property name="InvisibleChar">●</property> | |
| 1348 |
</widget> | |
| 1349 |
<packing> | |
| 1350 |
<property name="Position">1</property> | |
| 1351 |
<property name="AutoSize">True</property> | |
| 1352 |
</packing> | |
| 1353 |
</child> | |
| 1354 |
<child> | |
| 1355 |
<placeholder /> | |
| 1356 |
</child> | |
| 1357 |
<child> | |
| 1358 |
<widget class="Gtk.Alignment" id="alignment5"> | |
| 1359 |
<property name="MemberName" /> | |
| 1360 |
<property name="RightPadding">13</property> | |
| 1361 |
<child> | |
| 1362 |
<widget class="Gtk.CheckButton" id="ckbPret"> | |
| 1363 |
<property name="MemberName" /> | |
| 1364 |
<property name="CanFocus">True</property> | |
| 1365 |
<property name="Label" translatable="yes">Prété</property> | |
| 1366 |
<property name="DrawIndicator">True</property> | |
| 1367 |
<property name="HasLabel">True</property> | |
| 1368 |
<property name="UseUnderline">True</property> | |
| 1369 |
<property name="Xalign">1</property> | |
| 1370 |
</widget> | |
| 1371 |
</child> | |
| 1372 |
</widget> | |
| 1373 |
<packing> | |
| 1374 |
<property name="Position">3</property> | |
| 1375 |
<property name="AutoSize">False</property> | |
| 1376 |
<property name="Expand">False</property> | |
| 1377 |
<property name="Fill">False</property> | |
| 1378 |
</packing> | |
| 1379 |
</child> | |
| 1380 |
</widget> | |
| 1381 |
<packing> | |
| 1382 |
<property name="Position">4</property> | |
| 1383 |
<property name="AutoSize">True</property> | |
| 1384 |
<property name="Expand">False</property> | |
| 1385 |
<property name="Fill">False</property> | |
| 1386 |
</packing> | |
| 1387 |
</child> | |
| 1388 | 1371 |
</widget> |
| 1372 |
<packing>
| |
| 1373 |
<property name="TopAttach">4</property> | |
| 1374 |
<property name="BottomAttach">5</property> | |
| 1375 |
<property name="LeftAttach">1</property> | |
| 1376 |
<property name="RightAttach">3</property> | |
| 1377 |
<property name="AutoSize">True</property> | |
| 1378 |
<property name="XOptions">Fill</property> | |
| 1379 |
<property name="YOptions">Fill</property> | |
| 1380 |
<property name="XExpand">False</property> | |
| 1381 |
<property name="XFill">True</property> | |
| 1382 |
<property name="XShrink">False</property> | |
| 1383 |
<property name="YExpand">False</property> | |
| 1384 |
<property name="YFill">True</property> | |
| 1385 |
<property name="YShrink">False</property> | |
| 1386 |
</packing> | |
| 1389 | 1387 |
</child> |
| 1388 |
<child> | |
| 1389 |
<widget class="Gtk.Label" id="label1"> | |
| 1390 |
<property name="MemberName" /> | |
| 1391 |
<property name="Xalign">0</property> | |
| 1392 |
<property name="LabelProp" translatable="yes">Acheté/emprunté/lu le : </property> | |
| 1393 |
</widget> | |
| 1394 |
<packing> | |
| 1395 |
<property name="TopAttach">5</property> | |
| 1396 |
<property name="BottomAttach">6</property> | |
| 1397 |
<property name="LeftAttach">2</property> | |
| 1398 |
<property name="RightAttach">3</property> | |
| 1399 |
<property name="AutoSize">True</property> | |
| 1400 |
<property name="XOptions">Fill</property> | |
| 1401 |
<property name="YOptions">Fill</property> | |
| 1402 |
<property name="XExpand">False</property> | |
| 1403 |
<property name="XFill">True</property> | |
| 1404 |
<property name="XShrink">False</property> | |
| 1405 |
<property name="YExpand">False</property> | |
| 1406 |
<property name="YFill">True</property> | |
| 1407 |
<property name="YShrink">False</property> | |
| 1408 |
</packing> | |
| 1409 |
</child> | |
| 1410 |
<child> | |
| 1411 |
<widget class="Gtk.Label" id="label10"> | |
| 1412 |
<property name="MemberName" /> | |
| 1413 |
<property name="Xalign">0</property> | |
| 1414 |
<property name="LabelProp" translatable="yes">Tome</property> | |
| 1415 |
</widget> | |
| 1416 |
<packing> | |
| 1417 |
<property name="TopAttach">6</property> | |
| 1418 |
<property name="BottomAttach">7</property> | |
| 1419 |
<property name="AutoSize">True</property> | |
| 1420 |
<property name="XOptions">Fill</property> | |
| 1421 |
<property name="YOptions">Fill</property> | |
| 1422 |
<property name="XExpand">False</property> | |
| 1423 |
<property name="XFill">True</property> | |
| 1424 |
<property name="XShrink">False</property> | |
| 1425 |
<property name="YExpand">False</property> | |
| 1426 |
<property name="YFill">True</property> | |
| 1427 |
<property name="YShrink">False</property> | |
| 1428 |
</packing> | |
| 1429 |
</child> | |
| 1430 |
<child> | |
| 1431 |
<widget class="Gtk.Label" id="label11"> | |
| 1432 |
<property name="MemberName" /> | |
| 1433 |
<property name="Xalign">0</property> | |
| 1434 |
<property name="LabelProp" translatable="yes">Note</property> | |
| 1435 |
</widget> | |
| 1436 |
<packing> | |
| 1437 |
<property name="TopAttach">10</property> | |
| 1438 |
<property name="BottomAttach">11</property> | |
| 1439 |
<property name="AutoSize">True</property> | |
| 1440 |
<property name="XOptions">Fill</property> | |
| 1441 |
<property name="YOptions">Fill</property> | |
| 1442 |
<property name="XExpand">False</property> | |
| 1443 |
<property name="XFill">True</property> | |
| 1444 |
<property name="XShrink">False</property> | |
| 1445 |
<property name="YExpand">False</property> | |
| 1446 |
<property name="YFill">True</property> | |
| 1447 |
<property name="YShrink">False</property> | |
| 1448 |
</packing> | |
| 1449 |
</child> | |
| 1450 |
<child> | |
| 1451 |
<widget class="Gtk.Label" id="label12"> | |
| 1452 |
<property name="MemberName" /> | |
| 1453 |
<property name="Xalign">0</property> | |
| 1454 |
<property name="LabelProp" translatable="yes">Publié en</property> | |
| 1455 |
</widget> | |
| 1456 |
<packing> | |
| 1457 |
<property name="TopAttach">11</property> | |
| 1458 |
<property name="BottomAttach">12</property> | |
| 1459 |
<property name="AutoSize">True</property> | |
| 1460 |
<property name="XOptions">Fill</property> | |
| 1461 |
<property name="YOptions">Fill</property> | |
| 1462 |
<property name="XExpand">False</property> | |
| 1463 |
<property name="XFill">True</property> | |
| 1464 |
<property name="XShrink">False</property> | |
| 1465 |
<property name="YExpand">False</property> | |
| 1466 |
<property name="YFill">True</property> | |
| 1467 |
<property name="YShrink">False</property> | |
| 1468 |
</packing> | |
| 1469 |
</child> | |
| 1470 |
<child> | |
| 1471 |
<widget class="Gtk.Label" id="label2"> | |
| 1472 |
<property name="MemberName" /> | |
| 1473 |
<property name="Xalign">0</property> | |
| 1474 |
<property name="LabelProp" translatable="yes"><b>Détails du livre</b></property> | |
| 1475 |
<property name="UseMarkup">True</property> | |
| 1476 |
</widget> | |
| 1477 |
<packing> | |
| 1478 |
<property name="RightAttach">3</property> | |
| 1479 |
<property name="AutoSize">True</property> | |
| 1480 |
<property name="XOptions">Fill</property> | |
| 1481 |
<property name="YOptions">Fill</property> | |
| 1482 |
<property name="XExpand">False</property> | |
| 1483 |
<property name="XFill">True</property> | |
| 1484 |
<property name="XShrink">False</property> | |
| 1485 |
<property name="YExpand">False</property> | |
| 1486 |
<property name="YFill">True</property> | |
| 1487 |
<property name="YShrink">False</property> | |
| 1488 |
</packing> | |
| 1489 |
</child> | |
| 1490 |
<child> | |
| 1491 |
<widget class="Gtk.Label" id="label3"> | |
| 1492 |
<property name="MemberName" /> | |
| 1493 |
<property name="Xalign">0</property> | |
| 1494 |
<property name="LabelProp" translatable="yes">Source</property> | |
| 1495 |
</widget> | |
| 1496 |
<packing> | |
| 1497 |
<property name="TopAttach">8</property> | |
| 1498 |
<property name="BottomAttach">9</property> | |
| 1499 |
<property name="AutoSize">True</property> | |
| 1500 |
<property name="XOptions">Fill</property> | |
| 1501 |
<property name="YOptions">Fill</property> | |
| 1502 |
<property name="XExpand">False</property> | |
| 1503 |
<property name="XFill">True</property> | |
| 1504 |
<property name="XShrink">False</property> | |
| 1505 |
<property name="YExpand">False</property> | |
| 1506 |
<property name="YFill">True</property> | |
| 1507 |
<property name="YShrink">False</property> | |
| 1508 |
</packing> | |
| 1509 |
</child> | |
| 1510 |
<child> | |
| 1511 |
<widget class="Gtk.Label" id="label4"> | |
| 1512 |
<property name="MemberName" /> | |
| 1513 |
<property name="Xalign">0</property> | |
| 1514 |
<property name="LabelProp" translatable="yes">Titre</property> | |
| 1515 |
</widget> | |
| 1516 |
<packing> | |
| 1517 |
<property name="TopAttach">1</property> | |
| 1518 |
<property name="BottomAttach">2</property> | |
| 1519 |
<property name="AutoSize">True</property> | |
| 1520 |
<property name="XOptions">Fill</property> | |
| 1521 |
<property name="YOptions">Fill</property> | |
| 1522 |
<property name="XExpand">False</property> | |
| 1523 |
<property name="XFill">True</property> | |
| 1524 |
<property name="XShrink">False</property> | |
| 1525 |
<property name="YExpand">False</property> | |
| 1526 |
<property name="YFill">True</property> | |
| 1527 |
<property name="YShrink">False</property> | |
| 1528 |
</packing> | |
| 1529 |
</child> | |
| 1530 |
<child> | |
| 1531 |
<widget class="Gtk.Label" id="label5"> | |
| 1532 |
<property name="MemberName" /> | |
| 1533 |
<property name="Xalign">0</property> | |
| 1534 |
<property name="Yalign">0</property> | |
| 1535 |
<property name="LabelProp" translatable="yes">Auteurs</property> | |
| 1536 |
</widget> | |
| 1537 |
<packing> | |
| 1538 |
<property name="TopAttach">2</property> | |
| 1539 |
<property name="BottomAttach">5</property> | |
| 1540 |
<property name="AutoSize">True</property> | |
| 1541 |
<property name="XOptions">Fill</property> | |
| 1542 |
<property name="YOptions">Fill</property> | |
| 1543 |
<property name="XExpand">False</property> | |
| 1544 |
<property name="XFill">True</property> | |
| 1545 |
<property name="XShrink">False</property> | |
| 1546 |
<property name="YExpand">False</property> | |
| 1547 |
<property name="YFill">True</property> | |
| 1548 |
<property name="YShrink">False</property> | |
| 1549 |
</packing> | |
| 1550 |
</child> | |
| 1551 |
<child> | |
| 1552 |
<widget class="Gtk.Label" id="label6"> | |
| 1553 |
<property name="MemberName" /> | |
| 1554 |
<property name="Xalign">0</property> | |
| 1555 |
<property name="LabelProp" translatable="yes">Genre</property> | |
| 1556 |
</widget> | |
| 1557 |
<packing> | |
| 1558 |
<property name="TopAttach">7</property> | |
| 1559 |
<property name="BottomAttach">8</property> | |
| 1560 |
<property name="AutoSize">True</property> | |
| 1561 |
<property name="XOptions">Fill</property> | |
| 1562 |
<property name="YOptions">Fill</property> | |
| 1563 |
<property name="XExpand">False</property> | |
| 1564 |
<property name="XFill">True</property> | |
| 1565 |
<property name="XShrink">False</property> | |
| 1566 |
<property name="YExpand">False</property> | |
| 1567 |
<property name="YFill">True</property> | |
| 1568 |
<property name="YShrink">False</property> | |
| 1569 |
</packing> | |
| 1570 |
</child> | |
| 1571 |
<child> | |
| 1572 |
<widget class="Gtk.Label" id="label9"> | |
| 1573 |
<property name="MemberName" /> | |
| 1574 |
<property name="Xalign">0</property> | |
| 1575 |
<property name="LabelProp" translatable="yes">Série</property> | |
| 1576 |
</widget> | |
| 1577 |
<packing> | |
| 1578 |
<property name="TopAttach">5</property> | |
| 1579 |
<property name="BottomAttach">6</property> | |
| 1580 |
<property name="AutoSize">True</property> | |
| 1581 |
<property name="XOptions">Fill</property> | |
| 1582 |
<property name="YOptions">Fill</property> | |
| 1583 |
<property name="XExpand">False</property> | |
| 1584 |
<property name="XFill">True</property> | |
| 1585 |
<property name="XShrink">False</property> | |
| 1586 |
<property name="YExpand">False</property> | |
| 1587 |
<property name="YFill">True</property> | |
| 1588 |
<property name="YShrink">False</property> | |
| 1589 |
</packing> | |
| 1590 |
</child> | |
| 1591 |
<child> | |
| 1592 |
<widget class="Gtk.SpinButton" id="spbNote"> | |
| 1593 |
<property name="MemberName" /> | |
| 1594 |
<property name="CanFocus">True</property> | |
| 1595 |
<property name="Lower">-1</property> | |
| 1596 |
<property name="Upper">5</property> | |
| 1597 |
<property name="PageIncrement">10</property> | |
| 1598 |
<property name="StepIncrement">1</property> | |
| 1599 |
<property name="ClimbRate">1</property> | |
| 1600 |
<property name="Numeric">True</property> | |
| 1601 |
<property name="Value">-1</property> | |
| 1602 |
</widget> | |
| 1603 |
<packing> | |
| 1604 |
<property name="TopAttach">10</property> | |
| 1605 |
<property name="BottomAttach">11</property> | |
| 1606 |
<property name="LeftAttach">1</property> | |
| 1607 |
<property name="RightAttach">2</property> | |
| 1608 |
<property name="AutoSize">True</property> | |
| 1609 |
<property name="XOptions">Fill</property> | |
| 1610 |
<property name="YOptions">Fill</property> | |
| 1611 |
<property name="XExpand">False</property> | |
| 1612 |
<property name="XFill">True</property> | |
| 1613 |
<property name="XShrink">False</property> | |
| 1614 |
<property name="YExpand">False</property> | |
| 1615 |
<property name="YFill">True</property> | |
| 1616 |
<property name="YShrink">False</property> | |
| 1617 |
</packing> | |
| 1618 |
</child> | |
| 1619 |
<child> | |
| 1620 |
<widget class="Gtk.SpinButton" id="spbTome"> | |
| 1621 |
<property name="MemberName" /> | |
| 1622 |
<property name="CanFocus">True</property> | |
| 1623 |
<property name="Upper">20</property> | |
| 1624 |
<property name="PageIncrement">10</property> | |
| 1625 |
<property name="StepIncrement">1</property> | |
| 1626 |
<property name="ClimbRate">1</property> | |
| 1627 |
<property name="Numeric">True</property> | |
| 1628 |
</widget> | |
| 1629 |
<packing> | |
| 1630 |
<property name="TopAttach">6</property> | |
| 1631 |
<property name="BottomAttach">7</property> | |
| 1632 |
<property name="LeftAttach">1</property> | |
| 1633 |
<property name="RightAttach">2</property> | |
| 1634 |
<property name="AutoSize">True</property> | |
| 1635 |
<property name="XOptions">Fill</property> | |
| 1636 |
<property name="YOptions">Fill</property> | |
| 1637 |
<property name="XExpand">False</property> | |
| 1638 |
<property name="XFill">True</property> | |
| 1639 |
<property name="XShrink">False</property> | |
| 1640 |
<property name="YExpand">False</property> | |
| 1641 |
<property name="YFill">True</property> | |
| 1642 |
<property name="YShrink">False</property> | |
| 1643 |
</packing> | |
| 1644 |
</child> | |
| 1390 | 1645 |
</widget> |
| 1391 |
<packing> | |
| 1392 |
<property name="Position">1</property> | |
| 1393 |
<property name="AutoSize">True</property> | |
| 1394 |
<property name="Expand">False</property> | |
| 1395 |
<property name="Fill">False</property> | |
| 1396 |
</packing> | |
| 1397 | 1646 |
</child> |
| 1398 | 1647 |
</widget> |
| 1399 | 1648 |
<packing> |
| 1449 | 1698 |
</widget> |
| 1450 | 1699 |
</child> |
| 1451 | 1700 |
</widget> |
| 1452 |
<widget class="Gtk.Window" id="biblix.winSearch" design-size="446 445"> | |
| 1701 |
<widget class="Gtk.Dialog" id="biblix.dlgAddAuteur" design-size="400 142">
| |
| 1453 | 1702 |
<property name="MemberName" /> |
| 1454 |
<property name="Title" translatable="yes">winSearch</property> | |
| 1703 |
<property name="Title" translatable="yes">Ajouter un auteur</property>
| |
| 1704 |
<property name="TypeHint">Dialog</property> | |
| 1455 | 1705 |
<property name="WindowPosition">CenterOnParent</property> |
| 1456 |
<child> | |
| 1457 |
<widget class="Gtk.VBox" id="vbox2"> | |
| 1706 |
<property name="Modal">True</property>
| |
| 1707 |
<property name="BorderWidth">5</property> | |
| 1708 |
<property name="Resizable">False</property> | |
| 1709 |
<property name="AllowGrow">False</property> | |
| 1710 |
<property name="Buttons">2</property> | |
| 1711 |
<property name="HelpButton">False</property> | |
| 1712 |
<property name="HasSeparator">False</property> | |
| 1713 |
<child internal-child="VBox"> | |
| 1714 |
<widget class="Gtk.VBox" id="dialog1_VBox"> | |
| 1458 | 1715 |
<property name="MemberName" /> |
| 1459 |
<property name="Spacing">6</property> | |
| 1716 |
<property name="BorderWidth">2</property>
| |
| 1460 | 1717 |
<child> |
| 1461 |
<placeholder /> | |
| 1462 |
</child> | |
| 1463 |
<child> | |
| 1464 |
<widget class="Gtk.HBox" id="hbox1"> | |
| 1718 |
<widget class="Gtk.Table" id="table2">
| |
| 1465 | 1719 |
<property name="MemberName" /> |
| 1466 |
<property name="Spacing">6</property> | |
| 1720 |
<property name="NRows">3</property>
| |
| 1721 |
<property name="NColumns">3</property> | |
| 1722 |
<property name="RowSpacing">6</property> | |
| 1723 |
<property name="ColumnSpacing">6</property> | |
| 1467 | 1724 |
<child> |
| 1468 |
<widget class="Gtk.Label" id="label1"> | |
| 1725 |
<placeholder />
| |
| 1726 |
</child> | |
| 1727 |
<child> | |
| 1728 |
<placeholder /> | |
| 1729 |
</child> | |
| 1730 |
<child> | |
| 1731 |
<placeholder /> | |
| 1732 |
</child> | |
| 1733 |
<child> | |
| 1734 |
<widget class="Gtk.Entry" id="entNomAuteur"> | |
| 1469 | 1735 |
<property name="MemberName" /> |
| 1470 |
<property name="LabelProp" translatable="yes">Texte à rechercher</property> | |
| 1736 |
<property name="CanFocus">True</property>
| |
| 1737 |
<property name="IsEditable">True</property> | |
| 1738 |
<property name="InvisibleChar">●</property> | |
| 1471 | 1739 |
</widget> |
| 1472 | 1740 |
<packing> |
| 1473 |
<property name="Position">0</property> | |
| 1741 |
<property name="TopAttach">1</property>
| |
| 1742 |
<property name="BottomAttach">2</property> | |
| 1743 |
<property name="LeftAttach">1</property> | |
| 1744 |
<property name="RightAttach">2</property> | |
| 1474 | 1745 |
<property name="AutoSize">True</property> |
| 1475 |
<property name="Expand">False</property> | |
| 1476 |
<property name="Fill">False</property> | |
| 1746 |
<property name="XOptions">Fill</property>
| |
| 1747 |
<property name="YOptions">Fill</property> | |
| 1748 |
<property name="XExpand">False</property> | |
| 1749 |
<property name="XFill">True</property> | |
| 1750 |
<property name="XShrink">False</property> | |
| 1751 |
<property name="YExpand">False</property> | |
| 1752 |
<property name="YFill">True</property> | |
| 1753 |
<property name="YShrink">False</property> | |
| 1477 | 1754 |
</packing> |
| 1478 | 1755 |
</child> |
| 1479 | 1756 |
<child> |
| 1480 |
<widget class="Gtk.Entry" id="entry1"> | |
| 1757 |
<widget class="Gtk.Entry" id="entPrenomAuteur">
| |
| 1481 | 1758 |
<property name="MemberName" /> |
| 1482 | 1759 |
<property name="CanFocus">True</property> |
| 1483 | 1760 |
<property name="IsEditable">True</property> |
| 1484 | 1761 |
<property name="InvisibleChar">●</property> |
| 1485 | 1762 |
</widget> |
| 1486 | 1763 |
<packing> |
| 1487 |
<property name="Position">1</property> | |
| 1764 |
<property name="TopAttach">2</property>
| |
| 1765 |
<property name="BottomAttach">3</property> | |
| 1766 |
<property name="LeftAttach">1</property> | |
| 1767 |
<property name="RightAttach">2</property> | |
| 1488 | 1768 |
<property name="AutoSize">True</property> |
| 1769 |
<property name="XOptions">Fill</property> | |
| 1770 |
<property name="YOptions">Fill</property> | |
| 1771 |
<property name="XExpand">False</property> | |
| 1772 |
<property name="XFill">True</property> | |
| 1773 |
<property name="XShrink">False</property> | |
| 1774 |
<property name="YExpand">False</property> | |
| 1775 |
<property name="YFill">True</property> | |
| 1776 |
<property name="YShrink">False</property> | |
| 1489 | 1777 |
</packing> |
| 1490 | 1778 |
</child> |
| 1491 | 1779 |
<child> |
| 1492 |
<placeholder /> | |
| 1780 |
<widget class="Gtk.Label" id="label2">
| |
| 1781 |
<property name="MemberName" /> | |
| 1782 |
<property name="LabelProp" translatable="yes"><b>Détails sur l'auteur</b></property> | |
| 1783 |
<property name="UseMarkup">True</property> | |
| 1784 |
</widget> | |
| 1785 |
<packing> | |
| 1786 |
<property name="RightAttach">2</property> | |
| 1787 |
<property name="AutoSize">True</property> | |
| 1788 |
<property name="XOptions">Fill</property> | |
| 1789 |
<property name="YOptions">Fill</property> | |
| 1790 |
<property name="XExpand">False</property> | |
| 1791 |
<property name="XFill">True</property> | |
| 1792 |
<property name="XShrink">False</property> | |
| 1793 |
<property name="YExpand">False</property> | |
| 1794 |
<property name="YFill">True</property> | |
| 1795 |
<property name="YShrink">False</property> | |
| 1796 |
</packing> | |
| 1493 | 1797 |
</child> |
| 1494 |
</widget> | |
| 1495 |
<packing> | |
| 1496 |
<property name="Position">1</property> | |
| 1497 |
<property name="AutoSize">True</property> | |
| 1498 |
<property name="Expand">False</property> | |
| 1499 |
<property name="Fill">False</property> | |
| 1500 |
</packing> | |
| 1501 |
</child> | |
| 1502 |
<child> | |
| 1503 |
<placeholder /> | |
| 1504 |
</child> | |
| 1505 |
<child> | |
| 1506 |
<widget class="Gtk.Frame" id="frame1"> | |
| 1507 |
<property name="MemberName" /> | |
| 1508 |
<property name="ShadowType">In</property> | |
| 1509 | 1798 |
<child> |
| 1510 |
<widget class="Gtk.Alignment" id="GtkAlignment"> | |
| 1799 |
<widget class="Gtk.Label" id="label3">
| |
| 1511 | 1800 |
<property name="MemberName" /> |
| 1512 | 1801 |
<property name="Xalign">0</property> |
| 1513 |
<property name="Yalign">0</property> | |
| 1514 |
<property name="LeftPadding">20</property> | |
| 1515 |
<child> | |
| 1516 |
<widget class="Gtk.VBox" id="vbox3"> | |
| 1517 |
<property name="MemberName" /> | |
| 1518 |
<property name="Spacing">6</property> | |
| 1519 |
<child> | |
| 1520 |
<widget class="Gtk.CheckButton" id="checkbutton1"> | |
| 1521 |
<property name="MemberName" /> | |
| 1522 |
<property name="CanFocus">True</property> | |
| 1523 |
<property name="Label" translatable="yes">checkbutton1</property> | |
| 1524 |
<property name="DrawIndicator">True</property> | |
| 1525 |
<property name="HasLabel">True</property> | |
| 1526 |
<property name="UseUnderline">True</property> | |
| 1527 |
</widget> | |
| 1528 |
<packing> | |
| 1529 |
<property name="Position">0</property> | |
| 1530 |
<property name="AutoSize">True</property> | |
| 1531 |
<property name="Expand">False</property> | |
| 1532 |
<property name="Fill">False</property> | |
| 1533 |
</packing> | |
| 1534 |
</child> | |
| 1535 |
<child> | |
| 1536 |
<widget class="Gtk.CheckButton" id="checkbutton2"> | |
| 1537 |
<property name="MemberName" /> | |
| 1538 |
<property name="CanFocus">True</property> | |
| 1539 |
<property name="Label" translatable="yes">checkbutton2</property> | |
| 1540 |
<property name="DrawIndicator">True</property> | |
| 1541 |
<property name="HasLabel">True</property> | |
| 1542 |
<property name="UseUnderline">True</property> | |
| 1543 |
</widget> | |
| 1544 |
<packing> | |
| 1545 |
<property name="Position">1</property> | |
| 1546 |
<property name="AutoSize">True</property> | |
| 1547 |
<property name="Expand">False</property> | |
| 1548 |
<property name="Fill">False</property> | |
| 1549 |
</packing> | |
| 1550 |
</child> | |
| 1551 |
<child> | |
| 1552 |
<widget class="Gtk.CheckButton" id="checkbutton3"> | |
| 1553 |
<property name="MemberName" /> | |
| 1554 |
<property name="CanFocus">True</property> | |
| 1555 |
<property name="Label" translatable="yes">checkbutton3</property> | |
| 1556 |
<property name="DrawIndicator">True</property> | |
| 1557 |
<property name="HasLabel">True</property> | |
| 1558 |
<property name="UseUnderline">True</property> | |
| 1559 |
</widget> | |
| 1560 |
<packing> | |
| 1561 |
<property name="Position">2</property> | |
| 1562 |
<property name="AutoSize">True</property> | |
| 1563 |
<property name="Expand">False</property> | |
| 1564 |
<property name="Fill">False</property> | |
| 1565 |
</packing> | |
| 1566 |
</child> | |
| 1567 |
<child> | |
| 1568 |
<widget class="Gtk.CheckButton" id="checkbutton4"> | |
| 1569 |
<property name="MemberName" /> | |
| 1570 |
<property name="CanFocus">True</property> | |
| 1571 |
<property name="Label" translatable="yes">checkbutton4</property> | |
| 1572 |
<property name="DrawIndicator">True</property> | |
| 1573 |
<property name="HasLabel">True</property> | |
| 1574 |
<property name="UseUnderline">True</property> | |
| 1575 |
</widget> | |
| 1576 |
<packing> | |
| 1577 |
<property name="Position">3</property> | |
| 1578 |
<property name="AutoSize">True</property> | |
| 1579 |
<property name="Expand">False</property> | |
| 1580 |
<property name="Fill">False</property> | |
| 1581 |
</packing> | |
| 1582 |
</child> | |
| 1583 |
</widget> | |
| 1584 |
</child> | |
| 1802 |
<property name="LabelProp" translatable="yes">Nom</property>
| |
| 1585 | 1803 |
</widget> |
| 1804 |
<packing> | |
| 1805 |
<property name="TopAttach">1</property> | |
| 1806 |
<property name="BottomAttach">2</property> | |
| 1807 |
<property name="AutoSize">True</property> | |
| 1808 |
<property name="XOptions">Fill</property> | |
| 1809 |
<property name="YOptions">Fill</property> | |
| 1810 |
<property name="XExpand">False</property> | |
| 1811 |
<property name="XFill">True</property> | |
| 1812 |
<property name="XShrink">False</property> | |
| 1813 |
<property name="YExpand">False</property> | |
| 1814 |
<property name="YFill">True</property> | |
| 1815 |
<property name="YShrink">False</property> | |
| 1816 |
</packing> | |
| 1586 | 1817 |
</child> |
| 1587 | 1818 |
<child> |
| 1588 |
<widget class="Gtk.Label" id="GtkLabel4"> | |
| 1819 |
<widget class="Gtk.Label" id="label4">
| |
| 1589 | 1820 |
<property name="MemberName" /> |
| 1590 |
<property name="LabelProp" translatable="yes"><b>Rechercher dans </b></property> | |
| 1591 |
<property name="UseMarkup">True</property> | |
| 1821 |
<property name="Xalign">0</property>
| |
| 1822 |
<property name="LabelProp" translatable="yes">Prénom</property> | |
| 1592 | 1823 |
</widget> |
| 1593 | 1824 |
<packing> |
| 1594 |
<property name="type">label_item</property> | |
| 1825 |
<property name="TopAttach">2</property>
| |
| 1826 |
<property name="BottomAttach">3</property> | |
| 1827 |
<property name="AutoSize">True</property> | |
| 1828 |
<property name="XOptions">Fill</property> | |
| 1829 |
<property name="YOptions">Fill</property> | |
| 1830 |
<property name="XExpand">False</property> | |
| 1831 |
<property name="XFill">True</property> | |
| 1832 |
<property name="XShrink">False</property> | |
| 1833 |
<property name="YExpand">False</property> | |
| 1834 |
<property name="YFill">True</property> | |
| 1835 |
<property name="YShrink">False</property> | |
| 1595 | 1836 |
</packing> |
| 1596 | 1837 |
</child> |
| 1597 | 1838 |
</widget> |
| 1598 | 1839 |
<packing> |
| 1599 |
<property name="Position">3</property> | |
| 1840 |
<property name="Position">0</property>
| |
| 1600 | 1841 |
<property name="AutoSize">True</property> |
| 1601 | 1842 |
<property name="Expand">False</property> |
| 1602 | 1843 |
<property name="Fill">False</property> |
| 1603 | 1844 |
</packing> |
| 1604 | 1845 |
</child> |
| 1846 |
</widget> | |
| 1847 |
</child> | |
| 1848 |
<child internal-child="ActionArea"> | |
| 1849 |
<widget class="Gtk.HButtonBox" id="dialog1_ActionArea"> | |
| 1850 |
<property name="MemberName" /> | |
| 1851 |
<property name="Spacing">6</property> | |
| 1852 |
<property name="BorderWidth">5</property> | |
| 1853 |
<property name="Size">2</property> | |
| 1854 |
<property name="LayoutStyle">End</property> | |
| 1605 | 1855 |
<child> |
| 1606 |
<widget class="Gtk.Frame" id="frame2"> | |
| 1856 |
<widget class="Gtk.Button" id="btnCancel">
| |
| 1607 | 1857 |
<property name="MemberName" /> |
| 1858 |
<property name="CanDefault">True</property> | |
| 1859 |
<property name="CanFocus">True</property> | |
| 1860 |
<property name="UseStock">True</property> | |
| 1861 |
<property name="Type">StockItem</property> | |
| 1862 |
<property name="StockId">gtk-cancel</property> | |
| 1863 |
<property name="ResponseId">-6</property> | |
| 1864 |
<property name="label">gtk-cancel</property> | |
| 1865 |
</widget> | |
| 1866 |
<packing> | |
| 1867 |
<property name="Expand">False</property> | |
| 1868 |
<property name="Fill">False</property> | |
| 1869 |
</packing> | |
| 1870 |
</child> | |
| 1871 |
<child> | |
| 1872 |
<widget class="Gtk.Button" id="btnOk"> | |
| 1873 |
<property name="MemberName" /> | |
| 1874 |
<property name="CanDefault">True</property> | |
| 1875 |
<property name="CanFocus">True</property> | |
| 1876 |
<property name="UseStock">True</property> | |
| 1877 |
<property name="Type">StockItem</property> | |
| 1878 |
<property name="StockId">gtk-ok</property> | |
| 1879 |
<property name="ResponseId">-5</property> | |
| 1880 |
<signal name="Clicked" handler="OnBtnOkClicked" /> | |
| 1881 |
<property name="label">gtk-ok</property> | |
| 1882 |
</widget> | |
| 1883 |
<packing> | |
| 1884 |
<property name="Position">1</property> | |
| 1885 |
<property name="Expand">False</property> | |
| 1886 |
<property name="Fill">False</property> | |
| 1887 |
</packing> | |
| 1888 |
</child> | |
| 1889 |
</widget> | |
| 1890 |
</child> | |
| 1891 |
</widget> | |
| 1892 |
<widget class="Gtk.Window" id="biblix.winAuteurs" design-size="400 300"> | |
| 1893 |
<action-group name="Default"> | |
| 1894 |
<action id="actAddAuteur"> | |
| 1895 |
<property name="Type">Action</property> | |
| 1896 |
<property name="Label" translatable="yes" /> | |
| 1897 |
<property name="StockId">gtk-add</property> | |
| 1898 |
<signal name="Activated" handler="OnActAddAuteurActivated" /> | |
| 1899 |
</action> | |
| 1900 |
<action id="deleteAction"> | |
| 1901 |
<property name="Type">Action</property> | |
| 1902 |
<property name="Label" translatable="yes" /> | |
| 1903 |
<property name="StockId">gtk-delete</property> | |
| 1904 |
<signal name="Activated" handler="OnDeleteActionActivated" /> | |
| 1905 |
</action> | |
| 1906 |
<action id="quitAction"> | |
| 1907 |
<property name="Type">Action</property> | |
| 1908 |
<property name="Label" translatable="yes" /> | |
| 1909 |
<property name="StockId">gtk-quit</property> | |
| 1910 |
<signal name="Activated" handler="OnQuitActionActivated" /> | |
| 1911 |
</action> | |
| 1912 |
<action id="saveAction"> | |
| 1913 |
<property name="Type">Action</property> | |
| 1914 |
<property name="Label" translatable="yes" /> | |
| 1915 |
<property name="Sensitive">False</property> | |
| 1916 |
<property name="StockId">gtk-save</property> | |
| 1917 |
<signal name="Activated" handler="OnSaveActionActivated" /> | |
| 1918 |
</action> | |
| 1919 |
</action-group> | |
| 1920 |
<property name="MemberName" /> | |
| 1921 |
<property name="Title" translatable="yes">winAuteurs</property> | |
| 1922 |
<property name="WindowPosition">CenterOnParent</property> | |
| 1923 |
<child> | |
| 1924 |
<widget class="Gtk.VBox" id="vbox2"> | |
| 1925 |
<property name="MemberName" /> | |
| 1926 |
<property name="Spacing">6</property> | |
| 1927 |
<child> | |
| 1928 |
<widget class="Gtk.Toolbar" id="toolbar1"> | |
| 1929 |
<property name="MemberName" /> | |
| 1930 |
<property name="ShowArrow">False</property> | |
| 1931 |
<property name="ButtonStyle">Icons</property> | |
| 1932 |
<property name="IconSize">SmallToolbar</property> | |
| 1933 |
<node name="toolbar1" type="Toolbar"> | |
| 1934 |
<node type="Toolitem" action="actAddAuteur" /> | |
| 1935 |
<node type="Toolitem" action="deleteAction" /> | |
| 1936 |
<node type="Toolitem" action="saveAction" /> | |
| 1937 |
<node type="Separator" /> | |
| 1938 |
<node type="Toolitem" action="quitAction" /> | |
| 1939 |
</node> | |
| 1940 |
</widget> | |
| 1941 |
<packing> | |
| 1942 |
<property name="Position">0</property> | |
| 1943 |
<property name="AutoSize">True</property> | |
| 1944 |
<property name="Expand">False</property> | |
| 1945 |
<property name="Fill">False</property> | |
| 1946 |
</packing> | |
| 1947 |
</child> | |
| 1948 |
<child> | |
| 1949 |
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> | |
| 1950 |
<property name="MemberName" /> | |
| 1608 | 1951 |
<property name="ShadowType">In</property> |
| 1609 | 1952 |
<child> |
| 1610 |
<widget class="Gtk.Alignment" id="GtkAlignment1"> | |
| 1953 |
<widget class="Gtk.TreeView" id="trvAuteurs">
| |
| 1611 | 1954 |
<property name="MemberName" /> |
| 1612 |
<property name="Xalign">0</property> | |
| 1613 |
<property name="Yalign">0</property> | |
| 1614 |
<property name="LeftPadding">17</property> | |
| 1615 |
<child> | |
| 1616 |
<widget class="Gtk.VBox" id="vbox1"> | |
| 1617 |
<property name="MemberName" /> | |
| 1618 |
<property name="Spacing">6</property> | |
| 1619 |
<child> | |
| 1620 |
<widget class="Gtk.HBox" id="hbox2"> | |
| 1621 |
<property name="MemberName" /> | |
| 1622 |
<property name="Spacing">6</property> | |
| 1623 |
<child> | |
| 1624 |
<widget class="Gtk.Label" id="label2"> | |
| 1625 |
<property name="MemberName" /> | |
| 1626 |
<property name="LabelProp" translatable="yes">Lus/Non lus</property> | |
| 1627 |
</widget> | |
| 1628 |
<packing> | |
| 1629 |
<property name="Position">0</property> | |
| 1630 |
<property name="AutoSize">True</property> | |
| 1631 |
<property name="Expand">False</property> | |
| 1632 |
<property name="Fill">False</property> | |
| 1633 |
</packing> | |
| 1634 |
</child> | |
| 1635 |
<child> | |
| 1636 |
<widget class="Gtk.ComboBox" id="combobox3"> | |
| 1637 |
<property name="MemberName" /> | |
| 1638 |
<property name="IsTextCombo">True</property> | |
| 1639 |
<property name="Items" translatable="yes">Tous | |
| 1640 |
Lus uniquement | |
| 1641 |
Non lus uniquement</property> | |
| 1642 |
<property name="Active">0</property> | |
| 1643 |
</widget> | |
| 1644 |
<packing> | |
| 1645 |
<property name="Position">1</property> | |
| 1646 |
<property name="AutoSize">True</property> | |
| 1647 |
<property name="Expand">False</property> | |
| 1648 |
<property name="Fill">False</property> | |
| 1649 |
</packing> | |
| 1650 |
</child> | |
| 1651 |
<child> | |
| 1652 |
<placeholder /> | |
| 1653 |
</child> | |
| 1654 |
</widget> | |
| 1655 |
<packing> | |
| 1656 |
<property name="Position">0</property> | |
| 1657 |
<property name="AutoSize">True</property> | |
| 1658 |
<property name="Expand">False</property> | |
| 1659 |
<property name="Fill">False</property> | |
| 1660 |
</packing> | |
| 1661 |
</child> | |
| 1662 |
<child> | |
| 1663 |
<widget class="Gtk.HBox" id="hbox3"> | |
| 1664 |
<property name="MemberName" /> | |
| 1665 |
<property name="Spacing">6</property> | |
| 1666 |
<child> | |
| 1667 |
<widget class="Gtk.Label" id="label3"> | |
| 1668 |
<property name="MemberName" /> | |
| 1669 |
<property name="Xalign">0,01</property> | |
| 1670 |
<property name="LabelProp" translatable="yes">Source à inclure</property> | |
| 1671 |
</widget> | |
| 1672 |
<packing> | |
| 1673 |
<property name="Position">0</property> | |
| 1674 |
<property name="AutoSize">True</property> | |
| 1675 |
<property name="Expand">False</property> | |
| 1676 |
<property name="Fill">False</property> | |
| 1677 |
</packing> | |
| 1678 |
</child> | |
| 1679 |
<child> | |
| 1680 |
<placeholder /> | |
| 1681 |
</child> | |
| 1682 |
<child> | |
| 1683 |
<widget class="Gtk.Label" id="label4"> | |
| 1684 |
<property name="MemberName" /> | |
| 1685 |
<property name="Xalign">1</property> | |
| 1686 |
<property name="LabelProp" translatable="yes"><u><i>Sélectionner toutes</i></u></property> | |
| 1687 |
<property name="UseMarkup">True</property> | |
| 1688 |
<property name="SingleLineMode">True</property> | |
| 1689 |
</widget> | |
| 1690 |
<packing> | |
| 1691 |
<property name="Position">2</property> | |
| 1692 |
<property name="AutoSize">True</property> | |
| 1693 |
<property name="Expand">False</property> | |
| 1694 |
<property name="Fill">False</property> | |
| 1695 |
</packing> | |
| 1696 |
</child> | |
| 1697 |
</widget> | |
| 1698 |
<packing> | |
| 1699 |
<property name="Position">1</property> | |
| 1700 |
<property name="AutoSize">True</property> | |
| 1701 |
<property name="Expand">False</property> | |
| 1702 |
<property name="Fill">False</property> | |
| 1703 |
</packing> | |
| 1704 |
</child> | |
| 1705 |
<child> | |
| 1706 |
<widget class="Gtk.ScrolledWindow" id="GtkScrolledWindow"> | |
| 1707 |
<property name="MemberName" /> | |
| 1708 |
<property name="ShadowType">In</property> | |
| 1709 |
<child> | |
| 1710 |
<widget class="Gtk.NodeView" id="nodeview1"> | |
| 1711 |
<property name="MemberName" /> | |
| 1712 |
<property name="CanFocus">True</property> | |
| 1713 |
<property name="ShowScrollbars">True</property> | |
| 1714 |
<property name="HeadersVisible">False</property> | |
| 1715 |
<property name="RulesHint">True</property> | |
| 1716 |
<property name="HeadersClickable">True</property> | |
| 1717 |
</widget> | |
| 1718 |
</child> | |
| 1719 |
</widget> | |
| 1720 |
<packing> | |
| 1721 |
<property name="Position">2</property> | |
| 1722 |
<property name="AutoSize">True</property> | |
| 1723 |
</packing> | |
| 1724 |
</child> | |
| 1725 |
</widget> | |
| 1726 |
</child> | |
| 1955 |
<property name="CanFocus">True</property>
| |
| 1956 |
<property name="ShowScrollbars">True</property> | |
| 1727 | 1957 |
</widget> |
| 1728 | 1958 |
</child> |
| 1729 |
<child> | |
| 1730 |
<widget class="Gtk.Label" id="GtkLabel5"> | |
| 1731 |
<property name="MemberName" /> | |
| 1732 |
<property name="LabelProp" translatable="yes"><b>Inclure les livres : </b></property> | |
| 1733 |
<property name="UseMarkup">True</property> | |
| 1734 |
</widget> | |
| 1735 |
<packing> | |
| 1736 |
<property name="type">label_item</property> | |
| 1737 |
</packing> | |
| 1738 |
</child> | |
| 1739 | 1959 |
</widget> |
| 1740 | 1960 |
<packing> |
| 1741 |
<property name="Position">4</property> | |
| 1961 |
<property name="Position">1</property>
| |
| 1742 | 1962 |
<property name="AutoSize">True</property> |
| 1743 | 1963 |
</packing> |
| 1744 | 1964 |
</child> |
| 1745 | 1965 |
<child> |
| 1746 |
<widget class="Gtk.HButtonBox" id="hbuttonbox2"> | |
| 1966 |
<widget class="Gtk.Statusbar" id="statusbar1">
| |
| 1747 | 1967 |
<property name="MemberName" /> |
| 1748 |
<property name="Spacing">26</property> | |
| 1749 |
<property name="BorderWidth">2</property> | |
| 1750 |
<property name="Size">3</property> | |
| 1751 |
<property name="LayoutStyle">Spread</property> | |
| 1968 |
<property name="Spacing">6</property>
| |
| 1752 | 1969 |
<child> |
| 1753 |
<widget class="Gtk.Button" id="button3"> | |
| 1754 |
<property name="MemberName" /> | |
| 1755 |
<property name="CanFocus">True</property> | |
| 1756 |
<property name="UseStock">True</property> | |
| 1757 |
<property name="Type">StockItem</property> | |
| 1758 |
<property name="StockId">gtk-clear</property> | |
| 1759 |
<property name="label">gtk-clear</property> | |
| 1760 |
</widget> | |
| 1761 |
<packing> | |
| 1762 |
<property name="Expand">False</property> | |
| 1763 |
<property name="Fill">False</property> | |
| 1764 |
</packing> | |
| 1970 |
<placeholder />
| |
| 1765 | 1971 |
</child> |
| 1766 | 1972 |
<child> |
| 1767 |
<widget class="Gtk.Button" id="button1"> | |
| 1768 |
<property name="MemberName" /> | |
| 1769 |
<property name="CanFocus">True</property> | |
| 1770 |
<property name="UseStock">True</property> | |
| 1771 |
<property name="Type">StockItem</property> | |
| 1772 |
<property name="StockId">gtk-execute</property> | |
| 1773 |
<property name="label">gtk-execute</property> | |
| 1774 |
</widget> | |
| 1775 |
<packing> | |
| 1776 |
<property name="Position">1</property> | |
| 1777 |
<property name="Expand">False</property> | |
| 1778 |
<property name="Fill">False</property> | |
| 1779 |
</packing> | |
| 1973 |
<placeholder />
| |
| 1780 | 1974 |
</child> |
| 1781 |
<child> | |
| 1782 |
<widget class="Gtk.Button" id="button2"> | |
| 1783 |
<property name="MemberName" /> | |
| 1784 |
<property name="CanFocus">True</property> | |
| 1785 |
<property name="UseStock">True</property> | |
| 1786 |
<property name="Type">StockItem</property> | |
| 1787 |
<property name="StockId">gtk-close</property> | |
| 1788 |
<property name="label">gtk-close</property> | |
| 1789 |
</widget> | |
| 1790 |
<packing> | |
| 1791 |
<property name="Position">2</property> | |
| 1792 |
<property name="Expand">False</property> | |
| 1793 |
<property name="Fill">False</property> | |
| 1794 |
</packing> | |
| 1795 |
</child> | |
| 1796 | 1975 |
</widget> |
| 1797 | 1976 |
<packing> |
| 1798 |
<property name="Position">5</property> | |
| 1977 |
<property name="Position">2</property>
| |
| 1799 | 1978 |
<property name="AutoSize">True</property> |
| 1800 | 1979 |
<property name="Expand">False</property> |
| 1801 | 1980 |
<property name="Fill">False</property> |
| 1802 | 1981 |
</packing> |
| 1803 | 1982 |
</child> |
| 1804 |
<child> | |
| 1805 |
<placeholder /> | |
| 1806 |
</child> | |
| 1807 | 1983 |
</widget> |
| 1808 | 1984 |
</child> |
| 1809 | 1985 |
</widget> |
| 1810 | 1986 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
// option.cs |
| 2 | 2 |
// |
| 3 |
// Copyright (C) 2008 BOUTRY Arnaud arnaud@lorphoenix.info | |
| 3 |
// Copyright (C) 2008 BOUTRY Arnaud lordphoenix@tuxfamily.org
| |
| 4 | 4 |
// |
| 5 | 5 |
// This program is free software; you can redistribute it and/or modify |
| 6 | 6 |
// it under the terms of the GNU General Public License version 2 as |
| 21 | 21 |
using System.Collections; |
| 22 | 22 |
using System.IO; |
| 23 | 23 | |
| 24 |
public class OptionList | |
| 24 |
namespace biblix{
| |
| 25 |
public class OptionList | |
| 25 | 26 |
{
|
| 26 | 27 |
private Hashtable _OptionList; |
| 27 | 28 |
private string _OptionFile; |
| 64 | 65 |
|
| 65 | 66 |
private void _Save() |
| 66 | 67 |
{
|
| 67 |
FileStream fichier = File.Open(_OptionFile,FileMode.OpenOrCreate); | |
| 68 |
FileStream fichier;
| |
| 69 |
if(File.Exists(_OptionFile)) | |
| 70 |
fichier = File.Open(_OptionFile,FileMode.Truncate,FileAccess.Write); | |
| 71 |
else | |
| 72 |
fichier = File.Open(_OptionFile,FileMode.Create,FileAccess.Write); | |
| 68 | 73 |
StreamWriter w = new StreamWriter(fichier); |
| 69 | 74 |
w.BaseStream.Seek(0,SeekOrigin.Begin); |
| 70 | 75 |
foreach(object key in _OptionList.Keys) |
| 71 | 76 |
{
|
| 72 |
string tmpstring =key.ToString()+"="+_OptionList[key].ToString(); | |
| 77 |
string tmpstring =key.ToString()+"="+(_OptionList[key]!=null ?_OptionList[key].ToString():"");
| |
| 73 | 78 |
if(tmpstring!=String.Empty) |
| 74 | 79 |
w.WriteLine(tmpstring); |
| 75 | 80 |
} |
| 82 | 87 |
private void _combine(string optionstring) |
| 83 | 88 |
{
|
| 84 | 89 |
int cpos=optionstring.IndexOf("=");
|
| 85 |
string key = optionstring.Substring(0,cpos); | |
| 86 |
string valuekey = optionstring.Substring(cpos+1,optionstring.Length-cpos-1); | |
| 87 |
set(key,valuekey); | |
| 90 |
if (cpos!=-1){
| |
| 91 |
string key = optionstring.Substring(0,cpos); | |
| 92 |
string valuekey = optionstring.Substring(cpos+1,optionstring.Length-cpos-1); | |
| 93 |
set(key,valuekey); | |
| 94 |
} | |
| 88 | 95 |
} |
| 89 | 96 | |
| 90 | 97 |
public void clear() |
| 101 | 108 |
return keylist; |
| 102 | 109 |
} |
| 103 | 110 |
} |
| 104 |
| |
| 105 | 111 |
public void set(string name,Object value) |
| 106 | 112 |
{
|
| 107 | 113 |
if(!_OptionList.ContainsKey(name)) |
| 112 | 118 |
|
| 113 | 119 |
public bool OptionValueBool(string name) |
| 114 | 120 |
{
|
| 115 |
if ((string)_OptionList[name]=="1") | |
| 121 |
if (_OptionList[name].ToString()=="True")
| |
| 116 | 122 |
return true; |
| 117 | 123 |
else |
| 118 | 124 |
return false; |
| 119 | 125 |
} |
| 120 | 126 |
public string OptionValueString(string name) |
| 121 | 127 |
{
|
| 122 |
return (string)_OptionList[name]; | |
| 128 |
return _OptionList[name].ToString();
| |
| 123 | 129 |
} |
| 124 | 130 |
|
| 125 | 131 |
public int OptionValueInt(string name) |
| 126 | 132 |
{
|
| 127 |
return Int32.Parse((string)_OptionList[name]); | |
| 133 |
if (!String.IsNullOrEmpty(OptionValueString(name)))
| |
| 134 |
return Int32.Parse(OptionValueString(name)); | |
| 135 |
else | |
| 136 |
return 0; | |
| 128 | 137 |
} |
| 129 | 138 |
|
| 130 | 139 |
} |
| 140 |
} | |
| 131 | 141 |
| Old | New | Code |
|---|---|---|
| 21 | 21 |
using System; |
| 22 | 22 |
using System.Collections; |
| 23 | 23 |
using System.IO; |
| 24 |
using System.Diagnostics; | |
| 24 | 25 |
using Gtk; |
| 25 | 26 |
using Gdk; |
| 26 | 27 |
using Mono.Unix; |
| 35 | 36 |
bxdelete, |
| 36 | 37 |
bxnotedit |
| 37 | 38 |
} |
| 39 |
| |
| 40 | ||
| 38 | 41 |
public partial class winBiblix : Gtk.Window |
| 39 | 42 |
{
|
| 40 |
private booklist mybase; | |
| 43 |
// private booklist mybase; | |
| 44 |
private BookList mydb; | |
| 41 | 45 |
private biblixaction currentaction = biblixaction.bxnone; |
| 42 |
private book workbook,oldbook; | |
| 46 |
private Book workbook,oldbook;
| |
| 43 | 47 |
private OptionList myoptionlist; |
| 44 | 48 |
|
| 45 |
//Element de construction du menu | |
| 49 |
#region Element de construction du menu
| |
| 46 | 50 |
private ActionGroup group; |
| 47 | 51 |
private UIManager uim; |
| 48 | 52 |
private ActionEntry[] actionlist; |
| 58 | 62 |
"<separator name =\"sep2\" />\n"+ |
| 59 | 63 |
"<menuitem name=\"mnuitQuit\" action=\"actQuit\" />\n"+ |
| 60 | 64 |
"</menu>\n"+ |
| 65 |
"<menu name=\"mnuedition\" action=\"actmnuedition\">\n"+ | |
| 66 |
"<menuitem name=\"mnuAuteurs\" action=\"actAuteurs\" />\n"+ | |
| 67 |
"</menu>\n"+ | |
| 61 | 68 |
"<menu name=\"mnuAide\" action=\"actmnuAide\" > \n"+ |
| 62 | 69 |
"<menuitem name=\"mnuitAbout\" action=\"actAbout\" />\n"+ |
| 63 | 70 |
"</menu>\n"+ |
| 76 | 83 |
const string actUndo ="actUndo"; |
| 77 | 84 |
const string actDeleteBook = "actDeleteBook"; |
| 78 | 85 |
const string actQuit ="actQuit"; |
| 86 |
const string actAuteurs = "actAuteurs"; | |
| 79 | 87 |
const string actAbout ="actAbout"; |
| 88 |
#endregion | |
| 89 |
| |
| 80 | 90 |
public winBiblix() : base(Gtk.WindowType.Toplevel) |
| 81 | 91 |
{
|
| 82 | 92 |
this.Build(); |
| 83 | 93 |
Mono.Unix.Catalog.Init("biblix","");
|
| 84 |
//Construction barre d'outil et menu | |
| 94 |
#region Construction barre d'outil et menu
| |
| 85 | 95 |
actionlist = new ActionEntry[] |
| 86 | 96 |
{
|
| 87 |
new ActionEntry("actmnubiblix",null,"_Biblix",null,null,null),
| |
| 88 |
new ActionEntry("actmnuAide",null,"_Aide",null,null,null),
| |
| 97 |
new ActionEntry("actmnubiblix",null,Catalog.GetString("_Biblix"),null,null,null),
| |
| 98 |
new ActionEntry("actmnuAide",null,Catalog.GetString("_Aide"),null,null,null),
| |
| 99 |
new ActionEntry("actmnuedition",null,Catalog.GetString("_Edition"),null,null,null),
| |
| 89 | 100 |
new ActionEntry(actAddBook,Stock.Add,"Ajouter",null,null,new EventHandler(actAddBookActivated)), |
| 90 | 101 |
new ActionEntry(actSaveBook,Stock.Save,"_Enregistrer",null,null,new EventHandler(actSaveBookActivated)), |
| 91 | 102 |
new ActionEntry(actUndo,Stock.Undo,"Annuler",null,null,new EventHandler(actUndoActivated)), |
| 92 | 103 |
new ActionEntry(actDeleteBook,Stock.Delete,"Supprimer",null,null,new EventHandler(actDeleteBookActivated)), |
| 93 | 104 |
new ActionEntry(actQuit,Stock.Quit,"_Quitter",null,null,new EventHandler(actQuitActivated)), |
| 94 | 105 |
new ActionEntry(actAbout,Stock.About,"A _Propos",null,null,new EventHandler(actAboutActivated)), |
| 106 |
new ActionEntry(actAuteurs,null,"Auteurs",null,null,new EventHandler(actAuteursActivated)), | |
| 95 | 107 |
new ActionEntry(actOpenSearch,Stock.Find,"_Rechercher",null,null,new EventHandler(actOpenSearchActivated)) |
| 96 | 108 |
}; |
| 97 | 109 |
group = new ActionGroup("MainActions");
|
| 102 | 114 |
uim.AddWidget += new AddWidgetHandler(OnAddWidget); |
| 103 | 115 |
uim.InsertActionGroup(group,0); |
| 104 | 116 |
uim.AddUiFromString(uixml); |
| 105 |
| |
| 106 |
this.ConfigureEvent += new ConfigureEventHandler(OnConfigureEvent); | |
| 117 |
#endregion
| |
| 118 |
ConfigureEvent += new ConfigureEventHandler(OnConfigureEvent); | |
| 107 | 119 |
WindowStateEvent += new WindowStateEventHandler(onWindowStateEvent); |
| 108 | 120 |
|
| 109 | 121 |
//ouverture du fichier d'option. |
| 110 |
string optfile = System.Environment.GetFolderPath(Environment.SpecialFolder.Personal); | |
| 111 |
optfile+="/.config/biblix"; | |
| 122 |
string optfile = System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
| |
| 123 |
optfile+="/biblix"; | |
| 112 | 124 |
if(!Directory.Exists(optfile)) |
| 113 | 125 |
Directory.CreateDirectory(optfile); |
| 114 | 126 |
optfile+="/config.txt"; |
| 120 | 132 |
myoptionlist.set("mainwin.maximised","0");
|
| 121 | 133 |
myoptionlist.set("mainwin.x","0");
|
| 122 | 134 |
myoptionlist.set("mainwin.y","0");
|
| 123 |
myoptionlist.set("mainwin.height","");
| |
| 124 |
myoptionlist.set("mainwin.width","");
| |
| 135 |
myoptionlist.set("mainwin.height","300");
| |
| 136 |
myoptionlist.set("mainwin.width","500");
| |
| 125 | 137 |
myoptionlist.Save(optfile); |
| 126 | 138 |
} |
| 127 | 139 |
|
| 139 | 151 |
} |
| 140 | 152 |
|
| 141 | 153 |
//Ouverture fichier de base de données |
| 142 |
string filepath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); | |
| 143 |
filepath +="/.biblix/booklist.blix"; | |
| 144 |
mybase = new booklist(filepath); | |
| 154 |
string filepath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);
| |
| 155 |
filepath +="/biblix/currentbase.blix"; | |
| 156 |
if(!File.Exists(filepath)) | |
| 157 |
BookList.CreateDatabase(filepath); | |
| 158 |
mydb = new BookList(filepath); | |
| 159 |
// mybase = new booklist(filepath); | |
| 145 | 160 |
|
| 146 |
ListStore modBooklist = new ListStore(typeof(book)); | |
| 161 |
ListStore modBooklist = new ListStore(typeof(Book)); | |
| 147 | 162 |
trvBooklist.AppendColumn(Catalog.GetString("Livres"),new CellRendererText(),new Gtk.TreeCellDataFunc(RenderTitle));
|
| 148 | 163 |
trvBooklist.Model = modBooklist; |
| 149 | 164 |
trvBooklist.Selection.Changed += new EventHandler(SelectedBookChange); |
| 150 | 165 |
|
| 166 |
//Préparation du treeview auteurs | |
| 167 |
ListStore lstListAuteur = new ListStore(typeof(int),typeof(string),typeof(string)); | |
| 168 |
trvAuteurs.AppendColumn(Catalog.GetString("Nom"),
| |
| 169 |
new CellRendererText(), | |
| 170 |
"text",1); | |
| 171 |
trvAuteurs.AppendColumn(Catalog.GetString("Prénom"),
| |
| 172 |
new CellRendererText(), | |
| 173 |
"text",2); | |
| 174 |
trvAuteurs.Model = lstListAuteur; | |
| 175 |
| |
| 176 |
//Initialisation de la liste des auteurs | |
| 177 |
ListStore lstBaseAuteur = new ListStore(typeof(int),typeof(string)); | |
| 178 |
CellRendererText cellAuteur = new CellRendererText(); | |
| 179 |
cbxListeAuteur.PackEnd(cellAuteur,false); | |
| 180 |
cbxListeAuteur.AddAttribute(cellAuteur,"text",1); | |
| 181 |
cbxListeAuteur.Model = lstBaseAuteur; | |
| 182 |
foreach(Auteur auteur in mydb.GetAuteurList()){
| |
| 183 |
lstBaseAuteur.AppendValues(auteur.Id,auteur.Nom+", "+auteur.Prenom); | |
| 184 |
} | |
| 185 |
| |
| 151 | 186 |
//initialisation de la liste des genres |
| 152 |
foreach(string genre in mybase.GetGenreList()) | |
| 153 |
cbxListGenre.AppendText(genre); | |
| 154 |
| |
| 187 |
ListStore lstListeGenre = new ListStore(typeof(int),typeof(string));
| |
| 188 |
CellRendererText cell = new CellRendererText(); | |
| 189 |
cbxListGenre.PackEnd(cell,false); | |
| 190 |
cbxListGenre.AddAttribute(cell,"text",1); | |
| 191 |
cbxListGenre.Model = lstListeGenre; | |
| 192 |
foreach(Genre _genre in mydb.GetGenreList()){
| |
| 193 |
lstListeGenre.AppendValues(_genre.Id,_genre.Lib_genre); | |
| 194 |
} | |
| 155 | 195 |
//Initialisation de la liste des sources |
| 156 |
foreach (string source in mybase.GetSourcesList()) | |
| 157 |
cbxSource.AppendText(source); | |
| 158 |
| |
| 196 |
ListStore lstListeSource = new ListStore(typeof(int),typeof(string));
| |
| 197 |
CellRendererText cellsource = new CellRendererText(); | |
| 198 |
cbxSource.PackEnd(cellsource,true); | |
| 199 |
cbxSource.AddAttribute(cellsource,"text",1); | |
| 200 |
cbxSource.Model = lstListeSource; | |
| 201 |
foreach(Source _source in mydb.GetSourceList()){
| |
| 202 |
lstListeSource.AppendValues(_source.Id,_source.Lib_Source); | |
| 203 |
} | |
| 159 | 204 |
txtComment.Buffer.Changed += OnEditBook; |
| 160 | 205 |
txtSynopsis.Buffer.Changed += OnEditBook; |
| 161 | 206 |
ShowBookList(null); |
| 162 |
} | |
| 163 |
| |
| 207 |
} | |
| 164 | 208 |
protected void OnAddWidget(object sender,AddWidgetArgs args) |
| 165 | 209 |
{
|
| 166 | 210 |
args.Widget.Show(); |
| 167 | 211 |
mnuBox.PackStart(args.Widget,false,true,0); |
| 168 |
} | |
| 169 |
| |
| 212 |
}
| |
| 170 | 213 |
private void RenderTitle(Gtk.TreeViewColumn column, Gtk.CellRenderer cell, Gtk.TreeModel model, Gtk.TreeIter iter) |
| 171 | 214 |
{
|
| 172 |
book curbook =(book)model.GetValue(iter,0); | |
| 173 |
(cell as Gtk.CellRendererText).Markup=String.Format("{0} <i>({1})</i>", curbook.titre,curbook.auteur);
| |
| 174 |
} | |
| 175 |
| |
| 176 |
private void ShowBookList(ArrayList idlist) | |
| 215 |
Book curbook =(Book)model.GetValue(iter,0);
| |
| 216 |
(cell as Gtk.CellRendererText).Markup=curbook.Titre; | |
| 217 |
} | |
| 218 |
public void ShowBookList(ArrayList idlist) | |
| 177 | 219 |
{
|
| 178 | 220 |
(trvBooklist.Model as ListStore).Clear(); |
| 179 | 221 |
ArrayList booklist = new ArrayList(); |
| 180 | 222 |
int index=-1; |
| 181 | 223 |
IEnumerator i; |
| 182 | 224 |
if (idlist==null) |
| 183 |
i = mybase.getidlist().GetEnumerator(); | |
| 225 |
i = mydb.GetBookIdList().GetEnumerator();
| |
| 184 | 226 |
else |
| 185 | 227 |
i = idlist.GetEnumerator(); |
| 186 | 228 |
while(i.MoveNext()) |
| 187 | 229 |
{
|
| 188 |
book curbook = mybase.getbook(i.Current.ToString()); | |
| 189 |
if (curbook!=null) | |
| 190 |
{
| |
| 191 |
if (booklist.Count>0) | |
| 192 |
{
| |
| 230 |
Book curbook = mydb.GetBook((int)i.Current);
| |
| 231 |
if (curbook!=null){
| |
| 232 |
if (booklist.Count>0){
| |
| 193 | 233 |
IEnumerator j = booklist.GetEnumerator(); |
| 194 |
while (j.MoveNext()) | |
| 195 |
{
| |
| 196 |
book searchbook = (book)j.Current; | |
| 197 |
if (searchbook.serie == curbook.serie) | |
| 234 |
while (j.MoveNext()){
| |
| 235 |
Book searchbook = (Book)j.Current; | |
| 236 |
if (searchbook.Serie == curbook.Serie) | |
| 198 | 237 |
index=booklist.IndexOf(searchbook)+1; |
| 199 | 238 |
} |
| 200 | 239 |
} |
| 204 | 243 |
booklist.Add(curbook); |
| 205 | 244 |
} |
| 206 | 245 |
} |
| 207 |
foreach(book tmpbook in booklist) | |
| 246 |
foreach(Book tmpbook in booklist)
| |
| 208 | 247 |
(trvBooklist.Model as ListStore).AppendValues(tmpbook); |
| 209 | 248 |
} |
| 210 |
| |
| 211 |
private void ShowBookDetails(book currentbook) | |
| 249 |
private void ShowBookDetails(Book currentbook) | |
| 212 | 250 |
{
|
| 213 | 251 |
currentaction = biblix.biblixaction.bxnotedit; |
| 214 |
entAuthor.Text=""; | |
| 252 |
(trvAuteurs.Model as ListStore).Clear();
| |
| 215 | 253 |
entTitle.Text=""; |
| 216 | 254 |
entSerieTitle.Text=""; |
| 217 | 255 |
entPublishYear.Text=""; |
| 226 | 264 |
txtSynopsis.Buffer.Clear(); |
| 227 | 265 |
if (currentbook != null) |
| 228 | 266 |
{
|
| 229 |
entAuthor.Text = currentbook.auteur; | |
| 230 |
entTitle.Text = currentbook.titre; | |
| 231 |
entSerieTitle.Text = currentbook.serie; | |
| 232 |
cbxNote.Active = currentbook.note; | |
| 233 |
if (currentbook.volume==0) | |
| 267 |
foreach(Auteur _auteur in currentbook.Auteurs){
| |
| 268 |
(trvAuteurs.Model as ListStore).AppendValues(_auteur.Id,_auteur.Nom,_auteur.Prenom); | |
| 269 |
} | |
| 270 |
entTitle.Text = currentbook.Titre; | |
| 271 |
entSerieTitle.Text = currentbook.Serie; | |
| 272 |
cbxNote.Active = currentbook.Note; | |
| 273 |
if (currentbook.Volume==0) | |
| 234 | 274 |
entVolume.Text=""; |
| 235 | 275 |
else |
| 236 |
entVolume.Text=currentbook.volume.ToString(); | |
| 237 |
ckbReadBook.Active = currentbook.lu; | |
| 238 |
ckbPret.Active = currentbook.pret; | |
| 239 |
txtComment.Buffer.Text = currentbook.commentaire; | |
| 240 |
txtSynopsis.Buffer.Text = currentbook.resume; | |
| 241 |
entPublishYear.Text = currentbook.publishyear; | |
| 276 |
entVolume.Text=currentbook.Volume.ToString();
| |
| 277 |
ckbReadBook.Active = currentbook.Lu; | |
| 278 |
ckbPret.Active = currentbook.Pret; | |
| 279 |
//txtComment.Buffer.Text = currentbook.commentaire; | |
| 280 |
//txtSynopsis.Buffer.Text = currentbook.resume; | |
| 281 |
entPublishYear.Text = currentbook.PublishYear; | |
| 242 | 282 |
|
| 243 |
if (currentbook.shortdate!="01/01/0001") | |
| 244 |
lblDate.LabelProp = currentbook.longdate; | |
| 245 |
else | |
| 246 |
lblDate.LabelProp = Catalog.GetString("Sélectionnez une date");
| |
| 247 | ||
| 248 |
int index = -1; | |
| 249 |
if (!String.IsNullOrEmpty(currentbook.genre)) | |
| 283 |
if(currentbook.Buydate.ToShortDateString() !="01/01/0001")
| |
| 284 |
btnDate.Label = currentbook.Buydate.ToLongDateString(); | |
| 285 |
else | |
| 286 |
btnDate.Label = Catalog.GetString("Sélectionnez une date");
| |
| 287 |
| |
| 288 |
if (!String.IsNullOrEmpty(currentbook.Genre.Lib_genre)) | |
| 250 | 289 |
{
|
| 251 |
string searchgenre =""; | |
| 252 |
ListStore listegenremodel = (ListStore)cbxListGenre.Model; | |
| 253 |
System.Collections.IEnumerator i = listegenremodel.GetEnumerator(); | |
| 254 |
while ((i.MoveNext())&(searchgenre !=currentbook.genre)) | |
| 255 |
{
| |
| 256 |
object[] row = (System.Object[])i.Current; | |
| 257 |
searchgenre = row[0].ToString(); | |
| 258 |
index +=1; | |
| 290 |
ListStore lstListeGenre = (ListStore)cbxListGenre.Model;
| |
| 291 |
TreeIter iter; | |
| 292 |
int id_genre; | |
| 293 |
if(lstListeGenre.GetIterFirst(out iter)){
| |
| 294 |
do{
| |
| 295 |
id_genre = (int)lstListeGenre.GetValue(iter,0); | |
| 296 |
if(currentbook.Genre.Id==id_genre) | |
| 297 |
break; | |
| 298 |
} | |
| 299 |
while(lstListeGenre.IterNext(ref iter)); | |
| 300 |
cbxListGenre.SetActiveIter(iter); | |
| 259 | 301 |
} |
| 302 |
| |
| 260 | 303 |
} |
| 261 |
cbxListGenre.Active = index; | |
| 262 | 304 |
|
| 263 |
int indexsource = -1; | |
| 264 |
if(!String.IsNullOrEmpty(currentbook.source)) | |
| 265 |
{
| |
| 266 |
ListStore listesourcemodel = (ListStore)cbxSource.Model; | |
| 267 |
IEnumerator j = listesourcemodel.GetEnumerator(); | |
| 268 |
string searchsource =""; | |
| 269 |
while ((j.MoveNext())&(searchsource != currentbook.source)) | |
| 270 |
{
| |
| 271 |
object[] row =(System.Object[])j.Current; | |
| 272 |
searchsource = row[0].ToString(); | |
| 273 |
indexsource+=1; | |
| 305 |
if(!String.IsNullOrEmpty(currentbook.Source.Lib_Source)){
| |
| 306 |
ListStore lstListeSource = (ListStore)cbxSource.Model; | |
| 307 |
TreeIter iter; | |
| 308 |
int id_source; | |
| 309 |
if(lstListeSource.GetIterFirst(out iter)){
| |
| 310 |
do{
| |
| 311 |
id_source = (int)lstListeSource.GetValue(iter,0); | |
| 312 |
if(currentbook.Source.Id == id_source) | |
| 313 |
break; | |
| 314 |
} | |
| 315 |
while(lstListeSource.IterNext(ref iter)); | |
| 316 |
cbxSource.SetActiveIter(iter); | |
| 274 | 317 |
} |
| 275 |
} | |
| 276 |
cbxSource.Active = indexsource; | |
| 318 |
}
| |
| 277 | 319 |
} |
| 278 | 320 |
currentaction = biblix.biblixaction.bxnone; |
| 279 |
} | |
| 280 |
| |
| 321 |
} | |
| 281 | 322 |
private void savebook() |
| 282 | 323 |
{
|
| 283 | 324 |
switch (currentaction) |
| 284 | 325 |
{
|
| 285 | 326 |
case biblix.biblixaction.bxadd: |
| 286 |
mybase.addbook(workbook); | |
| 327 |
mydb.AddBook(workbook);
| |
| 287 | 328 |
break; |
| 288 | 329 |
case biblix.biblixaction.bxedit : |
| 289 |
mybase.updatebook(workbook); | |
| 330 |
mydb.UpdateBook(workbook);
| |
| 290 | 331 |
break; |
| 291 | 332 |
} |
| 292 | 333 |
group.GetAction(actSaveBook).Sensitive = false; |
| 295 | 336 |
} |
| 296 | 337 |
|
| 297 | 338 |
|
| 298 |
//Action management methods | |
| 339 |
#region Action management methods
| |
| 299 | 340 |
protected void actAddBookActivated(object sender , EventArgs args) |
| 300 | 341 |
{
|
| 301 | 342 |
if (currentaction == biblixaction.bxnone) |
| 302 | 343 |
{
|
| 303 |
dlgAddBook dlg = new dlgAddBook(mybase); | |
| 344 |
dlgAddBook dlg = new dlgAddBook(mydb);
| |
| 304 | 345 |
ResponseType result = (ResponseType)dlg.Run(); |
| 305 | 346 |
if (result==ResponseType.Ok) |
| 306 | 347 |
{
|
| 307 |
book newbook = dlg.newbook; | |
| 308 |
mybase.addbook(newbook); | |
| 348 |
Book newbook = dlg.newbook;
| |
| 349 |
mydb.AddBook(newbook); | |
| 309 | 350 |
this.ShowBookList(null); |
| 310 | 351 |
} |
| 311 |
dlg.Hide(); | |
| 312 | 352 |
dlg.Destroy(); |
| 313 |
| |
| 314 | 353 |
} |
| 315 | 354 |
else |
| 316 | 355 |
{
|
| 320 | 359 |
{
|
| 321 | 360 |
savebook(); |
| 322 | 361 |
} |
| 323 |
dlg.Hide(); | |
| 324 | 362 |
dlg.Destroy(); |
| 325 | 363 |
} |
| 326 |
} | |
| 327 |
| |
| 364 |
} | |
| 328 | 365 |
protected void actSaveBookActivated(object sender , EventArgs args) |
| 329 | 366 |
{
|
| 330 | 367 |
savebook(); |
| 331 | 368 |
oldbook=null; |
| 332 | 369 |
} |
| 333 |
| |
| 334 | 370 |
protected void actUndoActivated(object sender , EventArgs args) |
| 335 | 371 |
{
|
| 336 | 372 |
switch (currentaction) |
| 352 | 388 |
group.GetAction(actSaveBook).Sensitive = false; |
| 353 | 389 |
group.GetAction(actUndo).Sensitive = false; |
| 354 | 390 |
currentaction = biblixaction.bxnone; |
| 355 |
} | |
| 356 |
| |
| 391 |
} | |
| 357 | 392 |
protected void actDeleteBookActivated(object sender , EventArgs args) |
| 358 | 393 |
{
|
| 359 | 394 |
if (currentaction != biblixaction.bxnone) |
| 367 | 402 |
else |
| 368 | 403 |
{
|
| 369 | 404 |
MessageDialog dlg = new MessageDialog(this,DialogFlags.DestroyWithParent,MessageType.Question, |
| 370 |
ButtonsType.OkCancel,"Voulez vous vraiment supprimer le livre \"{0}\" de votre bibliothèque ?",workbook.titre);
| |
| 405 |
ButtonsType.OkCancel,"Voulez vous vraiment supprimer le livre \"{0}\" de votre bibliothèque ?",workbook.Titre); | |
| 371 | 406 |
if ((ResponseType)dlg.Run()==ResponseType.Ok) |
| 372 | 407 |
{
|
| 373 |
bool result = mybase.deletebook(workbook.id); | |
| 408 |
bool result = mydb.DeleteItem(workbook);
| |
| 374 | 409 |
if (result) |
| 375 | 410 |
workbook = null; |
| 376 | 411 |
ShowBookList(null); |
| 377 | 412 |
ShowBookDetails(workbook); |
| 378 | 413 |
} |
| 379 |
dlg.Hide(); | |
| 380 | 414 |
dlg.Destroy(); |
| 381 | 415 |
} |
| 382 |
} | |
| 383 |
| |
| 416 |
} | |
| 384 | 417 |
protected void actQuitActivated(object sender , EventArgs args) |
| 385 | 418 |
{
|
| 386 | 419 |
if(currentaction == biblixaction.bxedit) |
| 397 | 430 |
myoptionlist.Save(); |
| 398 | 431 |
Application.Quit(); |
| 399 | 432 |
} |
| 400 | ||
| 401 | 433 |
protected void actAboutActivated(object sender , EventArgs args) |
| 402 | 434 |
{
|
| 403 | 435 |
Gtk.AboutDialog.SetUrlHook(new Gtk.AboutDialogActivateLinkFunc(openaboutlink)); |
| 404 | 436 |
Gtk.AboutDialog about = new AboutDialog(); |
| 405 | 437 |
about.Authors=new string[] {"BOUTRY Arnaud <arnaud@lordphoenix.info>"};
|
| 406 | 438 |
about.Artists = new string[] {Catalog.GetString("Les icônes viennent du site : http://www.famfamfam.com")};
|
| 407 |
about.Name="Biblix"; | |
| 439 |
about.ProgramName="Biblix";
| |
| 408 | 440 |
about.Version = "0.2"; |
| 409 | 441 |
about.LogoIconName="Biblix"; |
| 410 | 442 |
about.Copyright=" (c) BOUTRY Arnaud 2007-2008"; |
| 416 | 448 |
about.Run(); |
| 417 | 449 |
about.Hide(); |
| 418 | 450 |
about.Destroy(); |
| 451 |
} | |
| 452 |
protected void actAuteursActivated(object sender, EventArgs args){
| |
| 453 |
new winAuteurs(mydb); | |
| 419 | 454 |
} |
| 420 |
| |
| 421 | 455 |
protected void actOpenSearchActivated(object sender, EventArgs args) |
| 422 | 456 |
{
|
| 423 |
winSearch searchwin = new winSearch(); | |
| 424 |
searchwin.Show(); | |
| 457 |
//winSearch searchwin = new winSearch(mydb,this);
| |
| 458 |
//searchwin.Show(); | |
| 425 | 459 |
} |
| 426 |
| |
| 427 |
| |
| 428 |
//Component event management methods | |
| 460 |
#endregion
| |
| 461 | ||
| 462 |
#region Component event management methods | |
| 429 | 463 |
protected virtual void SelectedBookChange(object sender, EventArgs args) |
| 430 | 464 |
{
|
| 431 | 465 |
switch (currentaction) |
| 434 | 468 |
MessageDialog dlg = new MessageDialog(this,Gtk.DialogFlags.DestroyWithParent, |
| 435 | 469 |
Gtk.MessageType.Question,Gtk.ButtonsType.YesNo, |
| 436 | 470 |
String.Format(Catalog.GetString("Des modifications ont été apportées au livre ,{0} voulez vous les enregistrer?"),
|
| 437 |
workbook.titre)); | |
| 471 |
workbook.Titre));
| |
| 438 | 472 |
ResponseType result = (ResponseType)dlg.Run(); |
| 439 | 473 |
if (result==ResponseType.Yes) |
| 440 | 474 |
{
|
| 441 |
mybase.updatebook(workbook); | |
| 475 |
mydb.UpdateBook(workbook);
| |
| 442 | 476 |
group.GetAction(actSaveBook).Sensitive = false; |
| 443 | 477 |
group.GetAction(actUndo).Sensitive = false; |
| 444 | 478 |
currentaction = biblixaction.bxnone; |
| 461 | 495 |
TreeIter selectediter; |
| 462 | 496 |
if (trvBooklist.Selection.GetSelected(out selectediter)) |
| 463 | 497 |
{
|
| 464 |
book selectedbook = (book)((trvBooklist.Model as ListStore).GetValue(selectediter,0)); | |
| 498 |
Book selectedbook = (Book)((trvBooklist.Model as ListStore).GetValue(selectediter,0));
| |
| 465 | 499 |
workbook = selectedbook; |
| 466 | 500 |
ShowBookDetails(selectedbook); |
| 467 | 501 |
} |
| 469 | 503 |
break; |
| 470 | 504 |
} |
| 471 | 505 |
} |
| 472 | ||
| 473 | 506 |
protected virtual void OnDeleteEvent (object o, Gtk.DeleteEventArgs args) |
| 474 | 507 |
{
|
| 475 | 508 |
myoptionlist.Save(); |
| 476 | 509 |
Application.Quit (); |
| 477 | 510 |
args.RetVal = true; |
| 478 | 511 |
} |
| 479 | ||
| 480 | 512 |
protected virtual void OnCkbFilterClicked (object sender, System.EventArgs e) |
| 481 | 513 |
{
|
| 482 | 514 |
cbxFilterItem.Sensitive=ckbFilter.Active; |
| 489 | 521 |
ShowBookList(null); |
| 490 | 522 |
} |
| 491 | 523 |
} |
| 492 | ||
| 493 | 524 |
protected virtual void OnEditBook (object sender, System.EventArgs e) |
| 494 | 525 |
{
|
| 495 | 526 |
if(workbook != null) |
| 499 | 530 |
if (currentaction != biblixaction.bxadd) |
| 500 | 531 |
currentaction = biblix.biblixaction.bxedit; |
| 501 | 532 |
if (oldbook==null) |
| 502 |
oldbook = (book)workbook.Clone();// Ne sauvegarder que si cela n'a pas déjà été fait. | |
| 503 |
workbook.titre = entTitle.Text; | |
| 504 |
workbook.auteur = entAuthor.Text; | |
| 505 |
workbook.genre = cbxListGenre.ActiveText; | |
| 506 |
workbook.serie = entSerieTitle.Text; | |
| 533 |
oldbook = (Book)workbook.Clone();// Ne sauvegarder que si cela n'a pas déjà été fait.
| |
| 534 |
workbook.Titre = entTitle.Text; | |
| 535 |
ListStore lstAuteurs = (ListStore)trvAuteurs.Model; | |
| 536 |
TreeIter iter; | |
| 537 |
if(lstAuteurs.GetIterFirst(out iter)){
| |
| 538 |
do{
| |
| 539 |
Auteur auteur = mydb.GetAuteur((int)lstAuteurs.GetValue(iter,0)); | |
| 540 |
if (workbook.Auteurs.IndexOf(auteur)!=-1) | |
| 541 |
workbook.Auteurs.Add(auteur); | |
| 542 |
} | |
| 543 |
while(lstAuteurs.IterNext(ref iter)); | |
| 544 |
} | |
| 545 |
workbook.Serie = entSerieTitle.Text; | |
| 507 | 546 |
if (entVolume.Text=="") |
| 508 |
workbook.volume=0; | |
| 547 |
workbook.Volume=0;
| |
| 509 | 548 |
else |
| 510 |
workbook.volume = Int32.Parse(entVolume.Text); | |
| 511 |
workbook.note=cbxNote.Active; | |
| 512 |
workbook.lu = ckbReadBook.Active; | |
| 513 |
workbook.source = cbxSource.ActiveText; | |
| 514 |
workbook.pret = ckbPret.Active; | |
| 515 |
workbook.resume = txtSynopsis.Buffer.Text; | |
| 516 |
workbook.commentaire = txtComment.Buffer.Text; | |
| 517 |
workbook.publishyear = entPublishYear.Text; | |
| 549 |
workbook.Volume = Int32.Parse(entVolume.Text);
| |
| 550 |
workbook.Note=cbxNote.Active; | |
| 551 |
workbook.Lu = ckbReadBook.Active; | |
| 552 |
cbxSource.GetActiveIter(out iter); | |
| 553 |
workbook.Source = mydb.GetSource((int)cbxSource.Model.GetValue(iter,0)); | |
| 554 |
workbook.Pret = ckbPret.Active; | |
| 555 |
cbxListGenre.GetActiveIter(out iter); | |
| 556 |
workbook.Genre = mydb.GetGenre((int)cbxListGenre.Model.GetValue(iter,0)); | |
| 557 |
//workbook.Resume = txtSynopsis.Buffer.Text; | |
| 558 |
//workbook.Commentaire = txtComment.Buffer.Text; | |
| 559 |
workbook.PublishYear = entPublishYear.Text; | |
| 518 | 560 |
group.GetAction(actSaveBook).Sensitive = true; |
| 519 | 561 |
group.GetAction(actUndo).Sensitive = true; |
| 520 | 562 |
} |
| 521 | 563 |
} |
| 522 | 564 |
} |
| 523 | ||
| 524 | 565 |
protected virtual void OnBtnDateClicked (object sender, System.EventArgs e) |
| 525 | 566 |
{
|
| 526 | 567 |
biblix.dlgDateSelect dlgdate = new dlgDateSelect(); |
| 527 | 568 |
dlgdate.Run(); |
| 528 |
lblDate.LabelProp = dlgdate.SelectedDate.ToLongDateString(); | |
| 529 |
workbook.shortdate = dlgdate.SelectedDate.ToShortDateString(); | |
| 530 |
dlgdate.Hide(); | |
| 569 |
btnDate.Label=dlgdate.SelectedDate.ToLongDateString();
| |
| 570 |
workbook.Buydate = dlgdate.SelectedDate; | |
| 531 | 571 |
dlgdate.Destroy(); |
| 532 | 572 |
currentaction= biblixaction.bxedit; |
| 533 | 573 |
group.GetAction(actSaveBook).Sensitive = true; |
| 534 | 574 |
group.GetAction(actUndo).Sensitive = true; |
| 535 | 575 |
} |
| 536 | ||
| 537 | 576 |
protected virtual void OnBtnAutreGenreClicked (object sender, System.EventArgs e) |
| 538 | 577 |
{
|
| 539 | 578 |
biblix.dlgNewRefValue dlg = new dlgNewRefValue(Catalog.GetString("Ajout d'un genre littéraire"));
|
| 543 | 582 |
dlg.Hide(); |
| 544 | 583 |
dlg.Destroy(); |
| 545 | 584 |
} |
| 546 | ||
| 547 | 585 |
protected virtual void OnBtnAddSourceClicked (object sender, System.EventArgs e) |
| 548 | 586 |
{
|
| 549 | 587 |
biblix.dlgNewRefValue dlg = new dlgNewRefValue(Catalog.GetString("Ajout d'une source supplémentaire"));
|
| 552 | 590 |
cbxSource.AppendText(dlg.refvalue); |
| 553 | 591 |
dlg.Hide(); |
| 554 | 592 |
dlg.Destroy(); |
| 593 |
} | |
| 594 |
protected void openaboutlink(Gtk.AboutDialog dialog, string link){
| |
| 595 |
Process.Start(String.Format("xdg-open {0}",link));
| |
| 555 | 596 |
} |
| 556 | ||
| 557 | ||
| 558 |
protected void openaboutlink(Gtk.AboutDialog dialog, string link) | |
| 559 |
{
| |
| 560 |
Gnome.Url.Show(link); | |
| 561 |
} | |
| 562 | ||
| 563 |
protected virtual void OnCbxFilterItemChanged (object sender, System.EventArgs e) | |
| 564 |
{
| |
| 565 |
ArrayList listecritere = new ArrayList(); | |
| 566 |
(cbxFilterValue.Model as ListStore).Clear(); | |
| 597 |
protected void OnCbxFilterItemChanged (object sender, System.EventArgs e){
| |
| 598 |
cbxFilterValue.Clear(); | |
| 599 |
ListStore lstCriteres = new ListStore(typeof(int),typeof(string)); | |
| 600 |
if(cbxFilterValue.Cells.Length==0) | |
| 601 |
cbxFilterValue.AddAttribute(new CellRendererText(),"text",1); | |
| 602 |
else | |
| 603 |
cbxFilterValue.SetAttributes(cbxFilterValue.Cells[0],"text",1); | |
| 567 | 604 |
switch (cbxFilterItem.Active) |
| 568 | 605 |
{
|
| 569 |
case 0 : | |
| 570 |
//Filtrage par auteur | |
| 571 |
listecritere = mybase.GetAuthorList(); | |
| 572 |
break; | |
| 573 |
case 1 : | |
| 574 |
//Filtrage par genre | |
| 575 |
listecritere = mybase.GetGenreList(); | |
| 576 |
break; | |
| 577 |
case 2 : | |
| 578 |
//Filtrage par note | |
| 579 |
for (int i=0;i<=5;i++) | |
| 580 |
listecritere.Add(i.ToString()); | |
| 581 |
break; | |
| 582 |
case 3 : | |
| 583 |
listecritere.Add(Catalog.GetString("Oui"));
| |
| 584 |
listecritere.Add(Catalog.GetString("Non"));
| |
| 585 |
break; | |
| 606 |
case 0 :
| |
| 607 |
//Filtrage par genre | |
| 608 |
foreach(Genre _genre in mydb.GetGenreList()){
| |
| 609 |
lstCriteres.AppendValues(_genre.Id,_genre.Lib_genre); | |
| 610 |
} | |
| 611 |
break; | |
| 612 |
case 1: | |
| 613 |
//Filtrage par source | |
| 614 |
foreach(Source _source in mydb.GetGenreList()){
| |
| 615 |
lstCriteres.AppendValues(_source.Id,_source.Lib_Source); | |
| 616 |
} | |
| 617 |
break; | |
| 618 |
case 2 : | |
| 619 |
//Filtrage par auteur | |
| 620 |
lstCriteres = new ListStore(typeof(int),typeof(string)); | |
| 621 |
cbxFilterValue.AddAttribute(new CellRendererText(),"text",1); | |
| 622 |
foreach(Auteur _auteur in mydb.GetAuteurList()){
| |
| 623 |
lstCriteres.AppendValues(_auteur.Id,_auteur.Nom+" "+_auteur.Prenom); | |
| 624 |
} | |
| 625 |
break; | |
| 626 |
case 3 : | |
| 627 |
//Filtrage par note | |
| 628 |
for (int i=0;i<=5;i++) | |
| 629 |
lstCriteres.AppendValues(i,i.ToString()); | |
| 630 |
break; | |
| 631 |
case 4 : | |
| 632 |
// lstCriteres.AppendValues(1,"Oui"); | |
| 633 |
// lstCriteres.AppendValues(0,"Non"); | |
| 634 |
// break; | |
| 635 |
case 5 : | |
| 636 |
lstCriteres.AppendValues(1,"Oui"); | |
| 637 |
lstCriteres.AppendValues(0,"Non"); | |
| 638 |
break; | |
| 586 | 639 |
} |
| 587 |
foreach (string critere in listecritere) | |
| 588 |
cbxFilterValue.AppendText(critere); | |
| 640 |
cbxFilterValue.Model = lstCriteres;
| |
| 589 | 641 |
} |
| 590 | ||
| 591 |
protected virtual void OnCbxFilterValueChanged (object sender, System.EventArgs e) | |
| 642 |
protected void OnCbxFilterValueChanged (object sender, System.EventArgs e)
| |
| 592 | 643 |
{
|
| 593 | 644 |
ArrayList listid = new ArrayList(); |
| 594 | 645 |
(trvBooklist.Model as ListStore).Clear(); |
| 619 | 670 |
searchon = biblix.booksearchcriteria.read; |
| 620 | 671 |
break; |
| 621 | 672 |
} |
| 622 |
listid = mybase.SearchBook(searchon,searchvalue); | |
| 673 |
listid = mydb.SearchBook(searchon,searchvalue);
| |
| 623 | 674 |
ShowBookList(listid); |
| 624 |
// foreach(string id in listid) | |
| 625 |
// {
| |
| 626 |
// book thisbook = mybase.getbook(id); | |
| 627 |
// (trvBooklist.Model as ListStore).AppendValues(thisbook); | |
| 628 |
// } | |
| 629 | 675 |
} |
| 630 | ||
| 631 | 676 |
[GLib.ConnectBefore] |
| 632 | 677 |
protected void OnConfigureEvent (object o, Gtk.ConfigureEventArgs args) |
| 633 | 678 |
{
|
| 636 | 681 |
myoptionlist.set("mainwin.height",args.Event.Height.ToString());
|
| 637 | 682 |
myoptionlist.set("mainwin.width",args.Event.Width.ToString());
|
| 638 | 683 |
// myoptionlist.Save(); |
| 639 |
} | |
| 640 |
| |
| 684 |
}
| |
| 641 | 685 |
protected void onWindowStateEvent(object sender , WindowStateEventArgs args) |
| 642 | 686 |
{
|
| 643 | 687 |
if (args.Event.NewWindowState ==WindowState.Maximized) |
| 645 | 689 |
else |
| 646 | 690 |
myoptionlist.set("mainwin.maximised","0");
|
| 647 | 691 |
} |
| 692 | ||
| 693 |
#endregion | |
| 694 | ||
| 695 |
protected virtual void OnActAddAuteurActivated (object sender, System.EventArgs e) | |
| 696 |
{
| |
| 697 |
if(workbook !=null){
| |
| 698 |
currentaction = biblixaction.bxedit; | |
| 699 |
TreeIter iter; | |
| 700 |
cbxListeAuteur.GetActiveIter(out iter); | |
| 701 |
Auteur auteur = mydb.GetAuteur((int)cbxListeAuteur.Model.GetValue(iter,0)); | |
| 702 |
if(workbook.Auteurs.IndexOf(auteur)!=-1){
| |
| 703 |
workbook.Auteurs.Add(auteur); | |
| 704 |
(trvAuteurs.Model as ListStore).AppendValues(auteur.Id,auteur.Nom,auteur.Prenom); | |
| 705 |
} | |
| 706 |
group.GetAction(actSaveBook).Sensitive=true; | |
| 707 |
group.GetAction(actUndo).Sensitive=true; | |
| 708 |
} | |
| 709 |
} | |
| 648 | 710 |
} |
| 649 | 711 |
} |
| 650 | 712 |
| Old | New | Code |
|---|---|---|
| 18 | 18 |
// |
| 19 | 19 | |
| 20 | 20 |
using System; |
| 21 |
using System.Collections; | |
| 22 |
using Gtk; | |
| 21 | 23 | |
| 22 | 24 |
namespace biblix |
| 23 | 25 |
{
|
| 24 |
| |
| 25 |
| |
| 26 | 26 |
public partial class winSearch : Gtk.Window |
| 27 | 27 |
{
|
| 28 |
| |
| 29 |
public winSearch() : | |
| 28 |
private BookList workbase;
| |
| 29 |
private winBiblix mainwin; | |
| 30 | ||
| 31 |
public winSearch(BookList mybase,winBiblix _mainwin) : | |
| 30 | 32 |
base(Gtk.WindowType.Toplevel) |
| 31 | 33 |
{
|
| 32 | 34 |
this.Build(); |
| 35 |
workbase = mybase; | |
| 36 |
mainwin = _mainwin; | |
| 37 |
| |
| 38 |
ListStore SourcelistModel = new ListStore(typeof(bool),typeof(string)); | |
| 39 |
| |
| 40 |
CellRendererToggle selectsourcecell = new CellRendererToggle(); | |
| 41 |
selectsourcecell.Activatable = true; | |
| 42 |
selectsourcecell.Toggled +=new ToggledHandler(onSelectSourceCellToggled); | |
| 43 |
| |
| 44 |
trvSourcesList.AppendColumn("Active",selectsourcecell,"active",0);
| |
| 45 |
trvSourcesList.AppendColumn("Source",new CellRendererText(),"text",1);
| |
| 46 |
trvSourcesList.Model = SourcelistModel; | |
| 47 |
| |
| 48 |
foreach (string source in workbase.GetSourceList()) | |
| 49 |
SourcelistModel.AppendValues(false,source); | |
| 50 |
| |
| 33 | 51 |
} |
| 52 |
| |
| 53 |
protected void onSelectSourceCellToggled(object sender, ToggledArgs args) | |
| 54 |
{
| |
| 55 |
TreeIter iter; | |
| 56 |
(trvSourcesList.Model as ListStore).GetIter(out iter,new TreePath(args.Path)); | |
| 57 |
bool idx = (bool)(trvSourcesList.Model as ListStore).GetValue(iter,0); | |
| 58 |
| |
| 59 |
trvSourcesList.Model.SetValue(iter,0,!idx); | |
| 60 |
} | |
| 61 | ||
| 62 |
protected virtual void OnBtnCloseClicked (object sender, System.EventArgs e) | |
| 63 |
{
| |
| 64 |
this.Hide(); | |
| 65 |
this.Destroy(); | |
| 66 |
} | |
| 67 | ||
| 68 |
protected virtual void OnBtnSearchClicked (object sender, System.EventArgs e) | |
| 69 |
{
| |
| 70 |
ArrayList includesource = new ArrayList(); | |
| 71 |
ArrayList critere = new ArrayList(); | |
| 72 |
if (ckbSearchAuthor.Active) | |
| 73 |
critere.Add(booksearchcriteria.author); | |
| 74 |
if (ckbSearchSerie.Active) | |
| 75 |
critere.Add(booksearchcriteria.serie); | |
| 76 |
if (ckbSearchTitle.Active) | |
| 77 |
critere.Add(booksearchcriteria.titre); | |
| 78 |
| |
| 79 |
string readstate =""; | |
| 80 |
switch (cbxIncludeRead.Active){
| |
| 81 |
case 0: | |
| 82 |
readstate="A"; | |
| 83 |
break; | |
| 84 |
case 1: | |
| 85 |
readstate="O"; | |
| 86 |
break; | |
| 87 |
case 2: | |
| 88 |
readstate="N"; | |
| 89 |
break; | |
| 90 |
} | |
| 91 |
| |
| 92 |
TreeIter iter; | |
| 93 |
if(trvSourcesList.Model.GetIterFirst(out iter)){
| |
| 94 |
if ((bool)trvSourcesList.Model.GetValue(iter,0)){
| |
| 95 |
includesource.Add((string)trvSourcesList.Model.GetValue(iter,1)); | |
| 96 |
} | |
| 97 |
while(trvSourcesList.Model.IterNext(ref iter)){
| |
| 98 |
if ((bool)trvSourcesList.Model.GetValue(iter,0)){
| |
| 99 |
includesource.Add((string)trvSourcesList.Model.GetValue(iter,1)); | |
| 100 |
} | |
| 101 |
} | |
| 102 |
} | |
| 103 |
| |
| 104 |
//ArrayList ResultList;// = workbase.AdvancedSearch(critere,entSearchedText.Text,readstate,includesource); | |
| 105 |
//Console.WriteLine(ResultList.Count.ToString()); | |
| 106 |
//mainwin.ShowBookList(ResultList); | |
| 107 |
} | |
| 108 | ||
| 109 |
protected virtual void OnBtnClearClicked (object sender, System.EventArgs e) | |
| 110 |
{
| |
| 111 |
entSearchedText.Text=String.Empty; | |
| 112 |
ckbSearchAuthor.Active= false; | |
| 113 |
ckbSearchSerie.Active=false; | |
| 114 |
ckbSearchTitle.Active=false; | |
| 115 |
cbxIncludeRead.Active=0; | |
| 116 |
| |
| 117 |
TreeIter iter; | |
| 118 |
if(trvSourcesList.Model.GetIterFirst(out iter)) | |
| 119 |
{
| |
| 120 |
trvSourcesList.Model.SetValue(iter,0,false); | |
| 121 |
while(trvSourcesList.Model.IterNext(ref iter)) | |
| 122 |
trvSourcesList.Model.SetValue(iter,0,false); | |
| 123 |
} | |
| 124 |
} | |
| 34 | 125 |
} |
| 35 | 126 |
} |
| 36 | 127 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
<CombineEntry name="BiblixTranslation" fileversion="2.0" packageName="biblix" outputType="SystemPath" ctype="TranslationProject"> |
| 2 |
<projectInformations> | |
| 3 |
<TranslationProjectInformation projectName="biblix-lib" isIncluded="True" /> | |
| 4 |
</projectInformations> | |
| 2 | 5 |
<translations> |
| 3 | 6 |
<Translation isoCode="en" /> |
| 4 | 7 |
</translations> |
| 5 |
<projectInformations> | |
| 6 |
<TranslationProjectInformation projectName="biblix-lib" isIncluded="True" /> | |
| 7 |
</projectInformations> | |
| 8 | 8 |
</CombineEntry> |
| 9 | 9 |
| Old | New | Code |
|---|---|---|
| 1 | 1 | |
| 2 |
EXTRA_DIST = | |
| 2 |
EXTRA_DIST =
| |
| 3 | 3 | |
| 4 | 4 | |
| 5 | 5 |
# Warning: This is an automatically generated file, do not edit! |
| 6 | 6 | |
| 7 |
CLEANFILES = $(GMO_FILES) | |
| 8 | ||
| 7 | 9 |
include $(top_srcdir)/Makefile.include |
| 8 | 10 | |
| 9 | 11 |
PACKAGE = @PACKAGE@ |
| 10 | 12 |
BUILD_DIR = . |
| 11 |
INSTALL_DIR = $(prefix)/share/locale | |
| 13 |
INSTALL_DIR = $(DESTDIR)@expanded_datadir@/locale
| |
| 12 | 14 | |
| 13 | 15 |
FILES = \ |
| 14 | 16 |
en.po |
| 31 | 33 |
|
| 32 | 34 |
$(MO_FILES): $(INSTALL_DIR)/%/LC_MESSAGES/$(PACKAGE).mo : $(BUILD_DIR)/%.gmo |
| 33 | 35 |
mkdir -p $(dir $@) |
| 34 |
@INSTALL_DATA@ '$<' '$@' | |
| 35 | ||
| 36 |
CLEANFILES = $(GMO_FILES) | |
| 36 |
@INSTALL_DATA@ '$<' '$@'
| |
| 37 | 37 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
msgid "" |
| 2 | 2 |
msgstr "" |
| 3 |
"X-Generator: MonoDevelop.Gettext \n" | |
| 3 |
"Project-Id-Version: Biblix 0.2\n"
| |
| 4 |
"POT-Creation-Date: 2009-05-02 18:52:00+0200\n" | |
| 5 |
"PO-Revision-Date: 2009-01-29 12:02:36+0100\n" | |
| 6 |
"Last-Translator: BOUTRY Arnaud <lordphoenix@tuxfamily.org>\n" | |
| 4 | 7 |
"Language-Team: \n" |
| 5 |
"PO-Revision-Date: 2008-02-17 19:01:52+0100\n" | |
| 6 |
"POT-Creation-Date: \n" | |
| 7 |
"Project-Id-Version: Biblix 0.2\n" | |
| 8 | 8 |
"MIME-Version: 1.0\n" |
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
| |
| 9 | 10 |
"Content-Transfer-Encoding: 8bit\n" |
| 10 |
"Last-Translator: \n" | |
| 11 |
"Content-Type: text/plain; charset=UTF-8\n" | |
| 11 |
"X-Generator: MonoDevelop Gettext addin\n"
| |
| 12 | 12 | |
| 13 |
#: ../Biblix/winBiblix.cs:104 | |
| 13 |
#: ../biblix-lib/biblixdb.cs:59
| |
| 14 |
msgid "Bibliothèque personnelle" | |
| 15 |
msgstr "" | |
| 16 | ||
| 17 |
#: ../Biblix/winBiblix.cs:148 | |
| 14 | 18 |
msgid "Livres" |
| 15 | 19 |
msgstr "Books" |
| 16 | 20 | |
| 17 |
#: ../Biblix/winBiblix.cs:203 | |
| 18 |
#: ../Biblix/gtk-gui/biblix.dlgDateSelect.cs:27 | |
| 21 |
#: ../Biblix/winBiblix.cs:248 ../Biblix/gtk-gui/biblix.dlgDateSelect.cs:27
| |
| 19 | 22 |
msgid "Sélectionnez une date" |
| 20 | 23 |
msgstr "Select a date" |
| 21 | 24 | |
| 22 |
#: ../Biblix/winBiblix.cs:275 | |
| 25 |
#: ../Biblix/winBiblix.cs:321
| |
| 23 | 26 |
msgid "Des modification sont en cours voulez vous les enregistrer?" |
| 24 | 27 |
msgstr "Changes have been made. Do you want save them?" |
| 25 | 28 | |
| 26 |
#: ../Biblix/winBiblix.cs:346 | |
| 29 |
#: ../Biblix/winBiblix.cs:392
| |
| 27 | 30 |
msgid "" |
| 28 |
"Des modifications ont été effectuées voulez vous les sauvegarder avant de \n" | |
| 31 |
"Des modifications ont été effectuées voulez vous les sauvegarder avant de " | |
| 29 | 32 |
"Quitter?" |
| 30 | 33 |
msgstr "Changes have been made . Save them before leaving?" |
| 31 | 34 | |
| 32 |
#: ../Biblix/winBiblix.cs:362 | |
| 35 |
#: ../Biblix/winBiblix.cs:409
| |
| 33 | 36 |
msgid "Les icônes viennent du site : http://www.famfamfam.com" |
| 34 | 37 |
msgstr "Icons are coming from : http://www.famfamfam.com" |
| 35 | 38 | |
| 36 |
#: ../Biblix/winBiblix.cs:368 | |
| 39 |
#: ../Biblix/winBiblix.cs:415
| |
| 37 | 40 |
msgid "Gérer facilement votre collection de livres" |
| 38 | 41 |
msgstr "Manage your personal library" |
| 39 | 42 | |
| 40 |
#: ../Biblix/winBiblix.cs:369 | |
| 43 |
#: ../Biblix/winBiblix.cs:416
| |
| 41 | 44 |
msgid "Site web" |
| 42 | 45 |
msgstr "homepage" |
| 43 | 46 | |
| 44 |
#: ../Biblix/winBiblix.cs:370 | |
| 47 |
#: ../Biblix/winBiblix.cs:417
| |
| 48 |
#, fuzzy | |
| 45 | 49 |
msgid "" |
| 46 |
"Ce logiciel est disponible sous licence GNU/GPL V2 \\n voir le fichier " | |
| 47 |
"/usr/share/doc/biblix/COPYING" | |
| 50 |
"Ce logiciel est disponible sous licence GNU/GPL V2 \n"
| |
| 51 |
" voir le fichier /usr/share/doc/biblix/COPYING" | |
| 48 | 52 |
msgstr "" |
| 49 |
"This software is available under GNU/GPL V2 \\n licence se " | |
| 50 |
"/usr/share/doc/biblix/COPYING file" | |
| 53 |
"This software is available under GNU/GPL V2 \\n licence se /usr/share/doc/"
| |
| 54 |
"biblix/COPYING file" | |
| 51 | 55 | |
| 52 |
#: ../Biblix/winBiblix.cs:386 | |
| 56 |
#: ../Biblix/winBiblix.cs:438
| |
| 57 |
#, fuzzy | |
| 53 | 58 |
msgid "" |
| 54 |
"Des modifications ont été apportées au livre ,{0} voulez vous les \n"
| |
| 59 |
"Des modifications ont été apportées au livre ,{0} voulez vous les " | |
| 55 | 60 |
"enregistrer?" |
| 56 | 61 |
msgstr "book {0} has been updated. save it?"
|
| 57 | 62 | |
| 58 |
#: ../Biblix/winBiblix.cs:488 | |
| 63 |
#: ../Biblix/winBiblix.cs:542
| |
| 59 | 64 |
msgid "Ajout d'un genre littéraire" |
| 60 | 65 |
msgstr "" |
| 61 | 66 | |
| 62 |
#: ../Biblix/winBiblix.cs:498 | |
| 67 |
#: ../Biblix/winBiblix.cs:552
| |
| 63 | 68 |
msgid "Ajout d'une source supplémentaire" |
| 64 | 69 |
msgstr "Add a new source" |
| 65 | 70 | |
| 66 |
#: ../Biblix/winBiblix.cs:532 | |
| 71 |
#: ../Biblix/winBiblix.cs:585
| |
| 67 | 72 |
msgid "Oui" |
| 68 | 73 |
msgstr "Yes" |
| 69 | 74 | |
| 70 |
#: ../Biblix/winBiblix.cs:533 | |
| 75 |
#: ../Biblix/winBiblix.cs:586
| |
| 71 | 76 |
msgid "Non" |
| 72 | 77 |
msgstr "No" |
| 73 | 78 | |
| 74 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:163 | |
| 79 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:157
| |
| 75 | 80 |
msgid "Biblix" |
| 76 | 81 |
msgstr "Biblix" |
| 77 | 82 | |
| 78 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:185 | |
| 83 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:180
| |
| 79 | 84 |
msgid "Filtrer par : " |
| 80 | 85 |
msgstr "Filter with" |
| 81 | 86 | |
| 82 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:194 | |
| 83 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:341 | |
| 87 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:189
| |
| 88 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:334 | |
| 84 | 89 |
#: ../Biblix/gtk-gui/biblix.dlgAddBook.cs:156 |
| 90 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:128 | |
| 85 | 91 |
msgid "Auteur" |
| 86 | 92 |
msgstr "Author" |
| 87 | 93 | |
| 88 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:195 | |
| 89 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:434 | |
| 94 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:190
| |
| 95 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:427 | |
| 90 | 96 |
#: ../Biblix/gtk-gui/biblix.dlgAddBook.cs:236 |
| 91 | 97 |
msgid "Genre" |
| 92 | 98 |
msgstr "" |
| 93 | 99 | |
| 94 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:196 | |
| 95 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:483 | |
| 100 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:191
| |
| 101 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:476 | |
| 96 | 102 |
#: ../Biblix/gtk-gui/biblix.dlgAddBook.cs:257 |
| 97 | 103 |
msgid "Note" |
| 98 | 104 |
msgstr "Mark" |
| 99 | 105 | |
| 100 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:197 | |
| 101 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:634 | |
| 106 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:192
| |
| 107 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:605 | |
| 102 | 108 |
#: ../Biblix/gtk-gui/biblix.dlgAddBook.cs:280 |
| 103 | 109 |
msgid "Lu" |
| 104 | 110 |
msgstr "Read" |
| 105 | 111 | |
| 106 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:253 | |
| 112 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:246
| |
| 107 | 113 |
msgid "<b>Détail du livre</b>" |
| 108 | 114 |
msgstr "<b>Book details</b>" |
| 109 | 115 | |
| 110 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:285 | |
| 116 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:278
| |
| 111 | 117 |
#: ../Biblix/gtk-gui/biblix.dlgAddBook.cs:124 |
| 118 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:140 | |
| 112 | 119 |
msgid "Titre" |
| 113 | 120 |
msgstr "Title" |
| 114 | 121 | |
| 115 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:309 | |
| 122 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:302
| |
| 116 | 123 |
msgid "Année de publication : " |
| 117 | 124 |
msgstr "Published on " |
| 118 | 125 | |
| 119 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:374 | |
| 126 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:367
| |
| 120 | 127 |
#: ../Biblix/gtk-gui/biblix.dlgAddBook.cs:183 |
| 128 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:152 | |
| 121 | 129 |
msgid "Série" |
| 122 | 130 |
msgstr "" |
| 123 | 131 | |
| 124 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:399 | |
| 132 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:392
| |
| 125 | 133 |
#: ../Biblix/gtk-gui/biblix.dlgAddBook.cs:206 |
| 126 | 134 |
msgid "Tome" |
| 127 | 135 |
msgstr "Volume" |
| 128 | 136 | |
| 129 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:469 | |
| 137 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:462
| |
| 130 | 138 |
msgid "_Autre..." |
| 131 | 139 |
msgstr "_More..." |
| 132 | 140 | |
| 133 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:496 | |
| 141 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:489
| |
| 134 | 142 |
msgid "0" |
| 135 | 143 |
msgstr "0" |
| 136 | 144 | |
| 137 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:497 | |
| 145 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:490
| |
| 138 | 146 |
msgid "1" |
| 139 | 147 |
msgstr "1" |
| 140 | 148 | |
| 141 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:498 | |
| 149 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:491
| |
| 142 | 150 |
msgid "2" |
| 143 | 151 |
msgstr "2" |
| 144 | 152 | |
| 145 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:499 | |
| 153 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:492
| |
| 146 | 154 |
msgid "3" |
| 147 | 155 |
msgstr "3" |
| 148 | 156 | |
| 149 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:500 | |
| 157 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:493
| |
| 150 | 158 |
msgid "4" |
| 151 | 159 |
msgstr "4" |
| 152 | 160 | |
| 153 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:501 | |
| 161 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:494
| |
| 154 | 162 |
msgid "5" |
| 155 | 163 |
msgstr "5" |
| 156 | 164 | |
| 157 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:522 | |
| 165 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:515
| |
| 158 | 166 |
msgid "Origine" |
| 159 | 167 |
msgstr "from" |
| 160 | 168 | |
| 161 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:551 | |
| 169 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:544
| |
| 162 | 170 |
msgid "Autre..." |
| 163 | 171 |
msgstr "More..." |
| 164 | 172 | |
| 165 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:568 | |
| 173 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:561
| |
| 166 | 174 |
#: ../Biblix/gtk-gui/biblix.dlgAddBook.cs:326 |
| 167 | 175 |
msgid "Prété" |
| 168 | 176 |
msgstr "" |
| 169 | 177 | |
| 170 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:587 | |
| 178 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:580
| |
| 171 | 179 |
msgid "Lu/Acheté/Emprunté le : " |
| 172 | 180 |
msgstr "" |
| 173 | 181 | |
| 174 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:613 | |
| 182 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:591
| |
| 175 | 183 |
msgid "date..." |
| 176 | 184 |
msgstr "date..." |
| 177 | 185 | |
| 178 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:651 | |
| 186 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:622
| |
| 179 | 187 |
msgid "Général" |
| 180 | 188 |
msgstr "Main" |
| 181 | 189 | |
| 182 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:678 | |
| 190 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:649
| |
| 183 | 191 |
msgid "Plus" |
| 184 | 192 |
msgstr "More" |
| 185 | 193 | |
| 186 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:713 | |
| 194 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:682
| |
| 187 | 195 |
msgid "<b>Synopsis</b>" |
| 188 | 196 |
msgstr "" |
| 189 | 197 | |
| 190 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:743 | |
| 198 |
#: ../Biblix/gtk-gui/biblix.winBiblix.cs:710
| |
| 191 | 199 |
msgid "<b>Commentaire</b>" |
| 192 | 200 |
msgstr "<b>Comments</b>" |
| 193 | 201 | |
| 219 | 227 |
msgid "Année de publication" |
| 220 | 228 |
msgstr "Published on " |
| 221 | 229 | |
| 230 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:75 | |
| 231 |
msgid "winSearch" | |
| 232 |
msgstr "" | |
| 233 | ||
| 234 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:88 | |
| 235 |
msgid "Texte à rechercher" | |
| 236 |
msgstr "" | |
| 237 | ||
| 238 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:164 | |
| 239 |
msgid "<b>Rechercher dans </b>" | |
| 240 |
msgstr "" | |
| 241 | ||
| 242 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:191 | |
| 243 |
msgid "Lus/Non lus" | |
| 244 |
msgstr "" | |
| 245 | ||
| 246 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:199 | |
| 247 |
msgid "Tous" | |
| 248 |
msgstr "" | |
| 249 | ||
| 250 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:200 | |
| 251 |
msgid "Lus uniquement" | |
| 252 |
msgstr "" | |
| 253 | ||
| 254 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:201 | |
| 255 |
msgid "Non lus uniquement" | |
| 256 |
msgstr "" | |
| 257 | ||
| 258 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:222 | |
| 259 |
msgid "Source à inclure" | |
| 260 |
msgstr "" | |
| 261 | ||
| 262 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:233 | |
| 263 |
msgid "<u><i>Sélectionner toutes</i></u>" | |
| 264 |
msgstr "" | |
| 265 | ||
| 266 |
#: ../Biblix/gtk-gui/biblix.winSearch.cs:261 | |
| 267 |
msgid "<b>Inclure les livres : </b>" | |
| 268 |
msgstr "" | |
| 222 | 269 |
| Old | New | Code |
|---|---|---|
| 1 | 1 | |
| 2 |
EXTRA_DIST = | |
| 2 |
EXTRA_DIST = expansions.m4
| |
| 3 | 3 | |
| 4 | 4 |
#Warning: This is an automatically generated file, do not edit! |
| 5 | 5 |
if ENABLE_DEBUG |
| 6 | 6 |
| Old | New | Code |
|---|---|---|
| 1 |
VALID_CULTURES = ar bg ca zh-CHS cs da de el en es fi fr he hu is it ja ko nl no pl pt ro ru hr sk sq sv th tr id uk be sl et lv lt fa vi hy eu mk af fo hi sw gu ta te kn mr gl kok ar-SA bg-BG ca-ES zh-TW cs-CZ da-DK de-DE el-GR en-US fi-FI fr-FR he-IL hu-HU is-IS it-IT ja-JP ko-KR nl-NL nb-NO pl-PL pt-BR ro-RO ru-RU hr-HR sk-SK sq-AL sv-SE th-TH tr-TR id-ID uk-UA be-BY sl-SI et-EE lv-LV lt-LT fa-IR vi-VN hy-AM eu-ES mk-MK af-ZA fo-FO hi-IN sw-KE gu-IN ta-IN te-IN kn-IN mr-IN gl-ES kok-IN ar-IQ zh-CN de-CH en-GB es-MX fr-BE it-CH nl-BE nn-NO pt-PT sv-FI ar-EG zh-HK de-AT en-AU es-ES fr-CA ar-LY zh-SG de-LU en-CA es-GT fr-CH ar-DZ zh-MO en-NZ es-CR fr-LU ar-MA en-IE es-PA ar-TN en-ZA es-DO ar-OM es-VE ar-YE es-CO ar-SY es-PE ar-JO en-TT es-AR ar-LB en-ZW es-EC ar-KW en-PH es-CL ar-AE es-UY ar-BH es-PY ar-QA es-BO es-SV es-HN es-NI es-PR zh-CHT | |
| 2 | ||
| 3 |
s2q=$(subst \ ,?,$1) | |
| 4 |
q2s=$(subst ?,\ ,$1) | |
| 5 |
# use this when result will be quoted | |
| 6 |
unesc2=$(subst ?, ,$1) | |
| 7 | ||
| 1 | 8 |
build_sources = $(FILES) $(GENERATED_FILES) |
| 2 |
build_sources_embed = $(build_sources:%='$(srcdir)/%') | |
| 9 |
build_sources_esc= $(call s2q,$(build_sources))
| |
| 10 |
# use unesc2, as build_sources_embed is quoted | |
| 11 |
build_sources_embed= $(call unesc2,$(build_sources_esc:%='$(srcdir)/%')) | |
| 3 | 12 | |
| 4 | 13 |
comma__=, |
| 5 |
build_resx_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))),$(res),)) | |
| 6 |
build_others_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))), ,$(res))) | |
| 14 |
get_resource_name = $(firstword $(subst $(comma__), ,$1))
| |
| 15 |
get_culture = $(lastword $(subst ., ,$(basename $1))) | |
| 16 |
is_cultured_resource = $(and $(word 3,$(subst ., ,$1)), $(filter $(VALID_CULTURES),$(lastword $(subst ., ,$(basename $1))))) | |
| 17 | ||
| 18 |
RESOURCES_ESC=$(call s2q,$(RESOURCES)) | |
| 19 | ||
| 20 |
build_resx_list = $(foreach res, $(RESOURCES_ESC), $(if $(filter %.resx, $(call get_resource_name,$(res))),$(res),)) | |
| 21 |
build_non_culture_resx_list = $(foreach res, $(build_resx_list),$(if $(call is_cultured_resource,$(call get_resource_name,$(res))),,$(res))) | |
| 22 |
build_non_culture_others_list = $(foreach res, $(filter-out $(build_resx_list),$(RESOURCES_ESC)),$(if $(call is_cultured_resource,$(call get_resource_name,$(res))),,$(res))) | |
| 23 |
build_others_list = $(build_non_culture_others_list) | |
| 7 | 24 |
build_xamlg_list = $(filter %.xaml.g.cs, $(FILES)) |
| 8 | 25 | |
| 9 |
build_resx_files = $(foreach res, $(build_resx_list), $(firstword $(subst $(comma__), ,$(res)))) | |
| 10 |
build_resx_resources = $(build_resx_files:.resx=.resources) | |
| 11 |
build_resx_resources_hack = $(subst .resx,.resources, $(build_resx_list)) | |
| 12 |
build_resx_resources_embed = $(build_resx_resources_hack:%='-resource:%') | |
| 26 |
# resgen all .resx resources
| |
| 27 |
build_resx_files = $(foreach res, $(build_resx_list), $(call get_resource_name,$(res))) | |
| 28 |
build_resx_resources_esc = $(build_resx_files:.resx=.resources) | |
| 29 |
build_resx_resources = $(call q2s,$(build_resx_resources_esc)) | |
| 13 | 30 | |
| 14 |
build_others_files = $(foreach res, $(build_others_list), $(firstword $(subst $(comma__), ,$(res)))) | |
| 31 |
# embed resources for the main assembly
| |
| 32 |
build_resx_resources_hack = $(subst .resx,.resources, $(build_non_culture_resx_list)) | |
| 33 |
# use unesc2, as build_resx_resources_embed is quoted | |
| 34 |
build_resx_resources_embed = $(call unesc2,$(build_resx_resources_hack:%='-resource:%')) | |
| 35 |
build_others_files = $(call q2s,$(foreach res, $(build_others_list),$(call get_resource_name,$(res)))) | |
| 15 | 36 |
build_others_resources = $(build_others_files) |
| 16 |
build_others_resources_embed = $(build_others_list:%='-resource:$(srcdir)/%') | |
| 37 |
# use unesc2, as build_others_resources_embed is quoted
| |
| 38 |
build_others_resources_embed = $(call unesc2,$(build_others_list:%='-resource:$(srcdir)/%')) | |
| 17 | 39 | |
| 18 | 40 |
build_resources = $(build_resx_resources) $(build_others_resources) |
| 19 | 41 |
build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed) |
| 20 | 42 | |
| 21 |
build_references_ref = $(foreach ref, $(REFERENCES), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref)))) | |
| 22 |
build_references_ref += $(foreach ref, $(DLL_REFERENCES), -r:$(ref)) | |
| 23 |
build_references_ref += $(foreach ref, $(PROJECT_REFERENCES), -r:$(ref)) | |
| 43 |
# -usesourcepath is available only for resgen2
| |
| 44 |
emit_resgen_target_1=$(call q2s,$1) : $(call q2s,$(subst .resources,.resx,$1)); cd '$$(shell dirname '$$<')' && MONO_IOMAP=drive $$(RESGEN) '$$(shell basename '$$<')' '$$(shell basename '$$@')' | |
| 45 |
emit_resgen_target_2=$(call q2s,$1) : $(call q2s,$(subst .resources,.resx,$1)); MONO_IOMAP=drive $$(RESGEN) -usesourcepath '$$<' '$$@' | |
| 24 | 46 | |
| 25 |
EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES) | |
| 26 |
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources) | |
| 47 |
emit_resgen_target=$(if $(filter resgen2,$(RESGEN)),$(emit_resgen_target_2),$(emit_resgen_target_1))
| |
| 48 |
emit_resgen_targets=$(foreach res,$(build_resx_resources_esc),$(eval $(call emit_resgen_target,$(res)))) | |
| 49 | ||
| 50 |
build_references_ref = $(call q2s,$(foreach ref, $(call s2q,$(REFERENCES)), $(if $(filter -pkg:%, $(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref))))) | |
| 51 |
build_references_ref += $(call q2s,$(foreach ref, $(call s2q,$(DLL_REFERENCES)), -r:$(ref))) | |
| 52 |
build_references_ref += $(call q2s,$(foreach ref, $(call s2q,$(PROJECT_REFERENCES)), -r:$(ref))) | |
| 53 | ||
| 54 |
s2q2s=$(call unesc2,$(call s2q,$1)) | |
| 55 |
cp_actual=test -z $1 || cp $1 $2 | |
| 56 |
cp=$(call cp_actual,'$(call s2q2s,$1)','$(call s2q2s,$2)') | |
| 57 | ||
| 58 |
rm_actual=test -z '$1' || rm -f '$2' | |
| 59 |
rm=$(call rm_actual,$(call s2q2s,$1),$(call s2q2s,$2)/$(shell basename '$(call s2q2s,$1)')) | |
| 60 | ||
| 61 |
EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES) $(build_culture_res_files) | |
| 62 |
CLEANFILES += $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources) $(build_satellite_assembly_list) | |
| 27 | 63 |
DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/* |
| 28 | 64 | |
| 29 | 65 |
pkglib_SCRIPTS = $(ASSEMBLY) |
| 30 | 66 |
bin_SCRIPTS = $(BINARIES) |
| 31 | 67 | |
| 32 |
linuxdesktopapplicationsdir = @prefix@/share/applications | |
| 68 |
linuxdesktopapplicationsdir = @datadir@/applications
| |
| 33 | 69 |
linuxdesktopapplications_DATA = $(LINUX_DESKTOPAPPLICATIONS) |
| 34 |
programfilesdir = @prefix@/lib/@PACKAGE@ | |
| 70 |
programfilesdir = @libdir@/@PACKAGE@
| |
| 35 | 71 |
programfiles_DATA = $(PROGRAMFILES) |
| 36 |
linuxpkgconfigdir = @prefix@/lib/pkgconfig | |
| 72 |
linuxpkgconfigdir = @libdir@/pkgconfig
| |
| 37 | 73 |
linuxpkgconfig_DATA = $(LINUX_PKGCONFIG) |
| 38 |
commonapplicationdatarootdocbiblixdir = @prefix@/share/doc/biblix | |
| 74 |
commonapplicationdatarootdocbiblixdir = @datadir@/doc/biblix
| |
| 39 | 75 |
commonapplicationdatarootdocbiblix_DATA = $(COMMONAPPLICATIONDATAROOT_DOC_BIBLIX) |
| 40 |
commonapplicationdatarootpixmapsdir = @prefix@/share/pixmaps | |
| 76 |
commonapplicationdatarootpixmapsdir = @datadir@/pixmaps
| |
| 41 | 77 |
commonapplicationdatarootpixmaps_DATA = $(COMMONAPPLICATIONDATAROOT_PIXMAPS) |
| 78 | ||
| 79 | ||
| 80 |
# macros | |
| 81 | ||
| 82 |
# $(call emit-deploy-target,deploy-variable-name) | |
| 83 |
define emit-deploy-target | |
| 84 |
$($1): $($1_SOURCE) | |
| 85 |
mkdir -p '$$(shell dirname '$$@')' | |
| 86 |
cp '$$<' '$$@' | |
| 87 |
endef | |
| 88 | ||
| 89 |
# $(call emit-deploy-wrapper,wrapper-variable-name,wrapper-sourcefile,x) | |
| 90 |
# assumes that for a wrapper foo.pc its source template is foo.pc.in | |
| 91 |
# if $3 is non-empty then wrapper is marked exec | |
| 92 |
define emit-deploy-wrapper | |
| 93 |
$($1): $2 | |
| 94 |
mkdir -p '$$(shell dirname '$$@')' | |
| 95 |
cp '$$<' '$$@' | |
| 96 |
$(if $3,chmod +x '$$@') | |
| 97 | ||
| 98 |
endef | |
| 99 | ||
| 100 |
# generating satellite assemblies | |
| 101 | ||
| 102 |
culture_resources = $(foreach res, $(RESOURCES_ESC), $(if $(call is_cultured_resource,$(call get_resource_name, $(res))),$(res))) | |
| 103 |
cultures = $(sort $(foreach res, $(culture_resources), $(call get_culture,$(call get_resource_name,$(res))))) | |
| 104 |
culture_resource_dependencies = $(call q2s,$(BUILD_DIR)/$1/$(SATELLITE_ASSEMBLY_NAME): $(subst .resx,.resources,$2)) | |
| 105 |
culture_resource_commandlines = $(call unesc2,cmd_line_satellite_$1 += '/embed:$(subst .resx,.resources,$2)') | |
| 106 |
build_satellite_assembly_list = $(call q2s,$(cultures:%=$(BUILD_DIR)/%/$(SATELLITE_ASSEMBLY_NAME))) | |
| 107 |
build_culture_res_files = $(call q2s,$(foreach res, $(culture_resources),$(call get_resource_name,$(res)))) | |
| 108 |
install_satellite_assembly_list = $(subst $(BUILD_DIR),$(DESTDIR)$(libdir)/$(PACKAGE),$(build_satellite_assembly_list)) | |
| 109 | ||
| 110 |
$(eval $(foreach res, $(culture_resources), $(eval $(call culture_resource_dependencies,$(call get_culture,$(call get_resource_name,$(res))),$(call get_resource_name,$(res)))))) | |
| 111 |
$(eval $(foreach res, $(culture_resources), $(eval $(call culture_resource_commandlines,$(call get_culture,$(call get_resource_name,$(res))),$(res))))) | |
| 112 | ||
| 113 |
$(build_satellite_assembly_list): $(BUILD_DIR)/%/$(SATELLITE_ASSEMBLY_NAME): | |
| 114 |
mkdir -p '$(@D)' | |
| 115 |
$(AL) -out:'$@' -culture:$* -t:lib $(cmd_line_satellite_$*) | |
| 116 | ||
| 117 |
$(install_satellite_assembly_list): | |
| 118 |
mkdir -p '$(@D)' | |
| 119 |
cp $(subst $(DESTDIR)$(libdir)/$(PACKAGE), $(BUILD_DIR), $@) $@ | |
| 120 | ||
| 121 |
install-satellite-assemblies: $(install_satellite_assembly_list) | |
| 122 |
| |
| 123 |
uninstall-satellite-assemblies: | |
| 124 |
rm -rf $(install_satellite_assembly_list) | |
| 42 | 125 |
| Old | New | Code |
|---|---|---|
| 1 | 1 | |
| 2 |
EXTRA_DIST = | |
| 2 |
EXTRA_DIST =
| |
| 3 | 3 | |
| 4 | 4 |
# Warning: This is an automatically generated file, do not edit! |
| 5 | 5 | |
| 6 | 6 |
if ENABLE_DEBUG |
| 7 | 7 |
ASSEMBLY_COMPILER_COMMAND = gmcs |
| 8 |
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG | |
| 9 |
ASSEMBLY = ./bin/Debug/biblix-lib.dll | |
| 8 |
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:3 -optimize+ -debug -define:DEBUG
| |
| 9 |
ASSEMBLY = bin/Debug/biblix-lib.dll | |
| 10 | 10 |
ASSEMBLY_MDB = $(ASSEMBLY).mdb |
| 11 | 11 |
COMPILE_TARGET = library |
| 12 | 12 |
PROJECT_REFERENCES = |
| 13 |
BUILD_DIR = ./bin/Debug | |
| 13 |
BUILD_DIR = bin/Debug
| |
| 14 | 14 | |
| 15 |
BIBLIX_LIB_DLL_MDB_SOURCE=bin/Debug/biblix-lib.dll.mdb | |
| 16 |
BIBLIX_LIB_DLL_MDB=$(BUILD_DIR)/biblix-lib.dll.mdb | |
| 15 | 17 | |
| 16 | 18 |
endif |
| 17 | 19 | |
| 18 | 20 |
if ENABLE_RELEASE |
| 19 | 21 |
ASSEMBLY_COMPILER_COMMAND = gmcs |
| 20 |
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 | |
| 21 |
ASSEMBLY = ./bin/Release/biblix-lib.dll | |
| 22 |
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
| |
| 23 |
ASSEMBLY = bin/Release/biblix-lib.dll | |
| 22 | 24 |
ASSEMBLY_MDB = |
| 23 | 25 |
COMPILE_TARGET = library |
| 24 | 26 |
PROJECT_REFERENCES = |
| 25 |
BUILD_DIR = ./bin/Release | |
| 27 |
BUILD_DIR = bin/Release
| |
| 26 | 28 | |
| 29 |
BIBLIX_LIB_DLL_MDB= | |
| 27 | 30 | |
| 28 | 31 |
endif |
| 29 | 32 | |
| 33 |
AL=al2 | |
| 34 |
SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll | |
| 30 | 35 | |
| 36 |
PROGRAMFILES = \ | |
| 37 |
$(BIBLIX_LIB_DLL_MDB) | |
| 38 | ||
| 31 | 39 |
LINUX_PKGCONFIG = \ |
| 32 | 40 |
$(BIBLIX_LIB_PC) |
| 33 | 41 | |
| 34 | 42 | |
| 43 |
RESGEN=resgen2 | |
| 35 | 44 |
|
| 36 |
all: $(ASSEMBLY) $(LINUX_PKGCONFIG) | |
| 45 |
all: $(ASSEMBLY) $(PROGRAMFILES) $(LINUX_PKGCONFIG)
| |
| 37 | 46 | |
| 38 | 47 |
FILES = \ |
| 39 | 48 |
AssemblyInfo.cs \ |
| 40 |
biblix-mainlib.cs | |
| 49 |
BookList.cs \
| |
| 50 |
Auteur.cs \ | |
| 51 |
BiblixItem.cs \ | |
| 52 |
Genre.cs \ | |
| 53 |
Source.cs \ | |
| 54 |
Book.cs \ | |
| 55 |
AuteurCollection.cs | |
| 41 | 56 | |
| 42 | 57 |
DATA_FILES = |
| 43 | 58 | |
| 44 | 59 |
RESOURCES = |
| 45 | 60 | |
| 46 | 61 |
EXTRAS = \ |
| 62 |
createbase.sql \ | |
| 47 | 63 |
biblix-lib.pc.in |
| 48 | 64 | |
| 49 | 65 |
REFERENCES = \ |
| 50 | 66 |
System \ |
| 51 |
System.Xml | |
| 67 |
System.Data \
| |
| 68 |
Mono.Posix \ | |
| 69 |
Mono.Data.Sqlite | |
| 52 | 70 | |
| 53 | 71 |
DLL_REFERENCES = |
| 54 | 72 | |
| 73 |
CLEANFILES = $(PROGRAMFILES) $(LINUX_PKGCONFIG) | |
| 74 | ||
| 75 |
include $(top_srcdir)/Makefile.include | |
| 76 | ||
| 55 | 77 |
BIBLIX_LIB_PC = $(BUILD_DIR)/biblix-lib.pc |
| 56 | 78 | |
| 57 |
$(BIBLIX_LIB_PC): biblix-lib.pc | |
| 58 |
mkdir -p $(BUILD_DIR) | |
| 59 |
cp '$<' '$@' | |
| 79 |
$(eval $(call emit-deploy-wrapper,BIBLIX_LIB_PC,biblix-lib.pc))
| |
| 60 | 80 | |
| 61 | 81 | |
| 62 | ||
| 82 |
$(eval $(call emit_resgen_targets)) | |
| 63 | 83 |
$(build_xamlg_list): %.xaml.g.cs: %.xaml |
| 64 | 84 |
xamlg '$<' |
| 65 | 85 | |
| 66 |
$(build_resx_resources) : %.resources: %.resx | |
| 67 |
resgen2 '$<' '$@' | |
| 68 | ||
| 69 |
$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) | |
| 70 |
mkdir -p $(dir $(ASSEMBLY)) | |
| 86 |
$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
| |
| 87 |
mkdir -p $(shell dirname $(ASSEMBLY)) | |
| 71 | 88 |
$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref) |
| 72 | ||
| 73 |
include $(top_srcdir)/Makefile.include | |
| 74 | 89 |
| Old | New | Code |
|---|---|---|
| 1 |
<Project name="biblix-lib" fileversion="2.0" DefaultNamespace="biblix" language="C#" clr-version="Net_2_0" ctype="DotNetProject"> | |
| 1 |
<Project name="biblix-lib" fileversion="2.0" language="C#" DefaultNamespace="biblix" clr-version="Net_2_0" targetFramework="2.0" ctype="DotNetProject">
| |
| 2 | 2 |
<Configurations active="Debug"> |
| 3 | 3 |
<Configuration name="Debug" ctype="DotNetProjectConfiguration"> |
| 4 |
<Output directory="bin/Debug" assemblyKeyFile="." assembly="biblix-lib" /> | |
| 4 |
<Output directory="bin/Debug" assemblyKeyFile="/home/arnaud/Projets/biblix/trunk/biblix-lib/." assembly="biblix-lib" />
| |
| 5 | 5 |
<Build debugmode="True" target="Library" /> |
| 6 | 6 |
<Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" /> |
| 7 |
<CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> | |
| 7 |
<CodeGeneration compiler="Mcs" warninglevel="3" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
| |
| 8 | 8 |
</Configuration> |
| 9 | 9 |
<Configuration name="Release" ctype="DotNetProjectConfiguration"> |
| 10 | 10 |
<Output directory="bin/Release" assembly="biblix-lib" /> |
| 15 | 15 |
</Configurations> |
| 16 | 16 |
<Contents> |
| 17 | 17 |
<File name="AssemblyInfo.cs" subtype="Code" buildaction="Compile" /> |
| 18 |
<File name="biblix-mainlib.cs" subtype="Code" buildaction="Compile" /> | |
| 18 |
<File name="BookList.cs" subtype="Code" buildaction="Compile" />
| |
| 19 |
<File name="Auteur.cs" subtype="Code" buildaction="Compile" /> | |
| 20 |
<File name="BiblixItem.cs" subtype="Code" buildaction="Compile" /> | |
| 21 |
<File name="Genre.cs" subtype="Code" buildaction="Compile" /> | |
| 22 |
<File name="Source.cs" subtype="Code" buildaction="Compile" /> | |
| 23 |
<File name="Book.cs" subtype="Code" buildaction="Compile" /> | |
| 24 |
<File name="AuteurCollection.cs" subtype="Code" buildaction="Compile" /> | |
| 25 |
<File name="createbase.sql" subtype="Code" buildaction="Nothing" /> | |
| 19 | 26 |
</Contents> |
| 20 | 27 |
<References> |
| 21 | 28 |
<ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
| 22 |
<ProjectReference type="Gac" localcopy="True" refto="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | |
| 29 |
<ProjectReference type="Gac" localcopy="True" refto="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
| |
| 30 |
<ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" /> | |
| 31 |
<ProjectReference type="Gac" localcopy="True" refto="Mono.Data.Sqlite, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" /> | |
| 23 | 32 |
</References> |
| 24 | 33 |
</Project> |
| 25 | 34 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
Name: biblix-lib |
| 2 | 2 |
Description: biblix-lib |
| 3 |
Version: 0.1 | |
| 3 |
Version:
| |
| 4 | 4 | |
| 5 | 5 |
Requires: |
| 6 |
Libs: -r:@prefix@/lib/@PACKAGE@/biblix-lib.dll | |
| 6 |
Libs: -r:@expanded_libdir@/@PACKAGE@/biblix-lib.dll
| |
| 7 | 7 |
| Old | New | Code |
|---|---|---|
| 1 |
<Combine releaseversion="0.3" name="biblix" fileversion="2.0" description="Outil de gestion de bibliothèque personnelle." outputpath="build/bin/"> | |
| 1 |
<Combine fileversion="2.0" description="Outil de gestion de bibliothèque personnelle." outputpath="build/bin/" releaseversion="0.3" name="biblix">
| |
| 2 |
<Policies> | |
| 3 |
<ChangeLogPolicy UpdateMode="ProjectRoot" inheritsSet="Mono" /> | |
| 4 |
<StandardHeader inheritsSet="GPLv2License" /> | |
| 5 |
<VersionControlPolicy inheritsSet="Mono" /> | |
| 6 |
<DotNetNamingPolicy DirectoryNamespaceAssociation="None" ResourceNamePolicy="FileFormatDefault" /> | |
| 7 |
<TextStylePolicy FileWidth="120" TabWidth="4" TabsToSpaces="False" NoTabsAfterNonTabs="False" RemoveTrailingWhitespace="False" EolMarker="Native" /> | |
| 8 |
</Policies> | |
| 2 | 9 |
<Configurations active="Debug"> |
| 3 | 10 |
<Configuration name="Debug" ctype="CombineConfiguration"> |
| 4 | 11 |
<Entry build="True" name="biblix-lib" configuration="Debug" /> |
| 5 | 12 |
<Entry build="True" name="Biblix" configuration="Debug" /> |
| 6 |
<Entry build="True" name="BiblixTranslation" configuration="" /> | |
| 7 |
<Entry build="True" name="Packages" configuration="" /> | |
| 13 |
<Entry build="True" name="BiblixTranslation" configuration="Debug" />
| |
| 14 |
<Entry build="True" name="Packages" configuration="Debug" /> | |
| 8 | 15 |
</Configuration> |
| 9 | 16 |
<Configuration name="Release" ctype="CombineConfiguration"> |
| 10 | 17 |
<Entry build="True" name="biblix-lib" configuration="Release" /> |
| 11 | 18 |
<Entry build="True" name="Biblix" configuration="Release" /> |
| 12 |
<Entry build="True" name="BiblixTranslation" configuration="" /> | |
| 13 |
<Entry build="True" name="Packages" configuration="" /> | |
| 19 |
<Entry build="True" name="BiblixTranslation" configuration="Release" />
| |
| 20 |
<Entry build="True" name="Packages" configuration="Release" /> | |
| 14 | 21 |
</Configuration> |
| 15 | 22 |
</Configurations> |
| 16 | 23 |
<StartMode startupentry="Biblix" single="True"> |
| 17 | 24 |
| Old | New | Code |
|---|---|---|
| 1 | 1 |
dnl Warning: This is an automatically generated file, do not edit! |
| 2 | 2 |
dnl Process this file with autoconf to produce a configure script. |
| 3 | 3 |
AC_PREREQ([2.54]) |
| 4 |
AC_INIT([biblix], [0.2]) | |
| 4 |
AC_INIT([biblix], [0.1])
| |
| 5 | 5 |
AM_INIT_AUTOMAKE([foreign]) |
| 6 |
AM_MAINTAINER_MODE | |
| 6 | 7 | |
| 7 | 8 |
dnl pkg-config |
| 8 | 9 |
AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
| 10 | 11 |
AC_MSG_ERROR([You need to install pkg-config]) |
| 11 | 12 |
fi |
| 12 | 13 | |
| 14 |
SHAMROCK_EXPAND_LIBDIR | |
| 15 |
SHAMROCK_EXPAND_BINDIR | |
| 16 |
SHAMROCK_EXPAND_DATADIR | |
| 17 | ||
| 13 | 18 |
AC_PROG_INSTALL |
| 14 | 19 | |
| 15 | 20 |
AC_PATH_PROG(GMCS, gmcs, no) |
| 18 | 23 |
fi |
| 19 | 24 | |
| 20 | 25 | |
| 21 |
PKG_CHECK_MODULES([GNOME_SHARP_20], [gnome-sharp-2.0]) | |
| 22 |
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0]) | |
| 23 |
PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0]) | |
| 24 | ||
| 25 | ||
| 26 | 26 |
AC_ARG_ENABLE(debug, |
| 27 | 27 |
AC_HELP_STRING([--enable-debug], |
| 28 |
[Use 'DEBUG' Configuration [default=NO]]), | |
| 28 |
[Use 'DEBUG' Configuration [default=YES]]),
| |
| 29 | 29 |
enable_debug=yes, enable_debug=no) |
| 30 | 30 |
AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes) |
| 31 | 31 |
if test "x$enable_debug" = "xyes" ; then |
| 33 | 33 |
fi |
| 34 | 34 |
AC_ARG_ENABLE(release, |
| 35 | 35 |
AC_HELP_STRING([--enable-release], |
| 36 |
[Use 'RELEASE' Configuration [default=YES]]), | |
| 36 |
[Use 'RELEASE' Configuration [default=NO]]),
| |
| 37 | 37 |
enable_release=yes, enable_release=no) |
| 38 | 38 |
AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes) |
| 39 | 39 |
if test "x$enable_release" = "xyes" ; then |
| 40 | 40 |
CONFIG_REQUESTED="yes" |
| 41 | 41 |
fi |
| 42 | 42 |
if test -z "$CONFIG_REQUESTED" ; then |
| 43 |
AM_CONDITIONAL(ENABLE_RELEASE, true) | |
| 43 |
AM_CONDITIONAL(ENABLE_DEBUG, true)
| |
| 44 |
enable_debug=yes | |
| 44 | 45 |
fi |
| 45 | 46 | |
| 46 | 47 | |
| 48 |
dnl package checks, common for all configs | |
| 49 |
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0]) | |
| 50 |
PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0]) | |
| 51 | ||
| 52 |
dnl package checks, per config | |
| 53 | ||
| 54 | ||
| 47 | 55 |
AC_CONFIG_FILES([ |
| 56 |
biblix-lib/biblix-lib.pc | |
| 57 |
biblix-lib/Makefile | |
| 58 |
Biblix/biblix | |
| 59 |
Biblix/Makefile | |
| 48 | 60 |
BiblixTranslation/Makefile |
| 49 |
biblix-lib/Makefile | |
| 50 | 61 |
Makefile |
| 51 |
Biblix/Makefile | |
| 52 |
biblix-lib/biblix-lib.pc | |
| 53 |
Biblix/biblix | |
| 54 | 62 | |
| 55 | 63 |
]) |
| 56 | 64 | |
| 57 | 65 |

