Skip to content

Commit

Permalink
update 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hfmrow committed Apr 2, 2021
1 parent f3897b0 commit 95f4f1d
Show file tree
Hide file tree
Showing 302 changed files with 55,059 additions and 1,340 deletions.
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
###########################################################
# The following permit to ignore files without extension. #
###########################################################
# Ignore all
*

# Unignore all with extensions
!*.*

# Unignore all dirs
!*/

# Unignore
!LICENSE

#########################################################
# And now we indicate the files/dir we want to exclude. #
#########################################################
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Personal unwanted files and folders
gohBackup/*
package/*
assets/artWork/*
*.opt
*.log
*~
*.debug
*.xz
*.7z
*.SUM
*.desktop
git-push.sh

25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Search and Replace ©2018-21 H.F.M

## Informations

At the bottom you can find a compiled standalone ".deb" version with its checksum. The ".tar.gz" sources contain a "vendor" directory ensuring you can always compile it even if the official libraries have been changed.

## Changelog

All notable changes to this project will be documented in this file.



#### [1.1] 2021-04-02

#### Added

-

#### Fixed

-

#### Changed

- code refactoring
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 H.F.M
Copyright ©2019-21 hfmrow - file-stamper v1.1 github.com/hfmrow/file-stamper

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
92 changes: 55 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,80 +1,98 @@
# File Stamper

*This software allow you to clone timestamp between files.*

#### Last update 2021-04-02

Take a look [here, H.F.M repositories](https://github.com/hfmrow/) for other useful linux softwares.

- If you just want to use it, simply download the compiled version under the "release" tab. You can see at [the Right way to install H.F.M's softwares](https://github.com/hfmrow/instHFMsofts) page to integrate this software in your debian environment.
- If you just want to use it, simply download the compiled version '*.deb' under the "release" tab.

- If you want to play inside code, see below "How to compile" section.

## How it's made

- Programmed with go language: [golang](https://golang.org/doc/)
- GUI provided by [Gotk3 (gtk3 v3.22)](https://github.com/gotk3/gotk3), GUI library for Go (minimum required v3.16).
- I use home-made software: "Gotk3ObjHandler" to embed images/icons, UI-information and manage/generate gtk3 objects code from [glade ui designer](https://glade.gnome.org/). and "Gotk3ObjTranslate" to generate the language files and the assignment of a tooltip on the gtk3 objects (both are not published at the moment, in fact, they need documentations and, for the moment, I have not had the time to do them).

## Functionalities
- Copy timestamp from file(s) to other file(s).

- Copy time-stamp from file(s) to other file(s).
- Undo function
- Copy "Access time"
- Copy "Modification time"
- Options to apply on directory
- Option to scan subdirectories
- Option to scan sub-directories
- Drag and drop functionality
- Each function have his tooltip for explanations.

## Some pictures and explanations
## Some pictures and explanations

*This is the main screen.*
![Main](readME-Pic/mainScr.png "Main")
![Main](assets/readme/mainScr.png "Main")

*Files loaded. The selection order on multiple files is important to assign timestamp correctly (i.e: multi selection from bottom to top will apply timestamp to destination from bottom top top too).*
![files loaded](readME-Pic/fileLoaded.png "files loaded")
*Files loaded. The selection order on multiple files is important to assign time-stamp correctly (i.e: multi selection from bottom to top will apply time-stamp to destination from bottom top top too).*
![files loaded](assets/readme/fileLoaded.png "files loaded")

*Undo command. Undo the last action only*
![Undo command](readME-Pic/undo.png "Undo command")
![Undo command](assets/readme/undo.png "Undo command")

*Tooltip display*
![Tooltip display](readME-Pic/tooltipDisp.png "Tooltip display")
![Tooltip display](assets/readme/tooltipDisp.png "Tooltip display")

## How to compile

- Be sure you have golang installed in right way. [Go installation](https://golang.org/doc/install).
- Open terminal window and at command prompt, type: `go get github.com/hfmrow/fileStamper`
- See [Gotk3 Installation instructions](https://github.com/gotk3/gotk3/wiki#installation) for gui installation instruction.
- To change gtk3 interface you need to use a home made software, (not published actually). So don't change gtk3 interface (glade file) ...
- To change language file you need to use another home made software, (not published actually). So don't change language file ...
- To Produce a stand-alone executable, you must change inside "main.go" file:

func main() {
devMode = true
...
into
- Open terminal window and at command prompt, type: `go get github.com/hfmrow/file-stamper`

func main() {
devMode = false
...
- See [Gotk3 Installation instructions](https://github.com/gotk3/gotk3/wiki#installation) for gui installation instruction.

This operation indicate that externals datas (Image/Icons) must be embedded into the executable file.
- To change gtk3 interface you need to use a home made software, (not published actually). So don't change gtk3 interface (glade file) ...

## Misc/Os informations
- I'm working on:
- To change language file you need to use another home made software, (not published actually). So don't change language file ...

| DISTRIB | LinuxMint |
| -------- | --------- |
| VERSION | 19.1 |
| CODENAME | tessa |
| RELEASE | #21~18.04.1-Ubuntu SMP Thu Jun 27 04:04:37 UTC 2019 |
| UBUNTU_CODENAME | bionic |
| KERNEL | 5.0.0-20-generic |
| HDWPLATFORM | x86_64 |
| GTK | libgtk-3-0:amd64 3.22.30-1ubuntu3 |
| GLIB | Ubuntu GLIBC 2.27-3ubuntu1 |
- To Produce a stand-alone executable, you must change inside "main.go" file:

func main() {
devMode = true
...

into

func main() {
devMode = false
...

This operation indicate that externals data (Image/Icons) must be embedded into the executable file.

### Os informations (build with)

| Name | Version / Info / Name |
| ---------------------------------------------------------- | ---------------------------------------------- |
| GOLANG | V1.16.2 -> GO111MODULE="off", GOPROXY="direct" |
| DISTRIB | LinuxMint Xfce |
| VERSION | 20 |
| CODENAME | ulyana |
| RELEASE | #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 |
| UBUNTU_CODENAME | focal |
| KERNEL | 5.8.0-48-generic |
| HDWPLATFORM | x86_64 |
| GTK+ 3 | 3.24.20 |
| GLIB 2 | 2.64.3 |
| CAIRO | 1.16.0 |
| [GtkSourceView](https://github.com/hfmrow/gotk3_gtksource) | 4.6.0 |
| [LiteIDE](https://github.com/visualfc/liteide) | 37.4 qt5.x |
| Qt5 | 5.12.8 in /usr/lib/x86_64-linux-gnu |

- The compilation have not been tested under Windows or Mac OS, but all file access functions, line-end manipulations or charset implementation are made with OS portability in mind.

## You got an issue ?
- Give informations (as above), about used platform and OS version.

- Give information (as above), about used platform and OS version.
- Provide a method to reproduce the problem.

## Website
- [H.F.M Linux softwares](https://hfmrow.yo.fr/) Free linux software on Github. Sharing knowledge.

- [H.F.M Linux softwares](https://hfmrow.go.yo.fr/) Free linux software on Github. Sharing knowledge.
Empty file modified assets/images/Apply-32.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/FileStamper-300x29.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/FileStamper-500x48.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/Folder-time-48.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/Folder-time-cal-in-48.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/Folder-time-cal-out-48.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/Sign-Select-20.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/Sign-cancel-20.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 95f4f1d

Please sign in to comment.