qregexp-editor:qregexp-editor.git
6 years agoFixes an bug where not all files were being translated
Luís Pereira [Sat, 17 Mar 2012 21:37:55 +0000 (14:37 -0700)]
Fixes an bug where not all files were being translated

Actually only the files in the src directory were being taken in account
for translation. This but was introduced by my commit:
57960f711486bd403cf0cc4e3e2df7872afc6514
All of the src subdirectories are (now) taken in account.

Reported-by: Mohammad Mehdi Salem Naraghi <momesana@googlemail.de>
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoUpdates source translations files
Luís Pereira [Wed, 14 Mar 2012 21:35:33 +0000 (14:35 -0700)]
Updates source translations files

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoUpdates M. Mehdi Salem Naraghi email adress
Luís Pereira [Wed, 14 Mar 2012 17:42:19 +0000 (10:42 -0700)]
Updates M. Mehdi Salem Naraghi email adress

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds missing emails to the AUTHORS files. Updates translations authors
Luís Pereira [Wed, 14 Mar 2012 21:58:10 +0000 (14:58 -0700)]
Adds missing emails to the AUTHORS files. Updates translations authors

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds contributors section in AUTHORS files
Luís Pereira [Wed, 14 Mar 2012 13:03:56 +0000 (06:03 -0700)]
Adds contributors section in AUTHORS files

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoUse QString::fromUtf8() instead of QString()
Luís Pereira [Wed, 14 Mar 2012 21:22:21 +0000 (14:22 -0700)]
Use QString::fromUtf8() instead of QString()

My name (Luís) requires UTF-8.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoUpdates the copyright years and copyright owners
Luís Pereira [Wed, 14 Mar 2012 16:07:14 +0000 (09:07 -0700)]
Updates the copyright years and copyright owners

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoMerge branch 'next'
Luís Pereira [Wed, 14 Mar 2012 16:08:18 +0000 (09:08 -0700)]
Merge branch 'next'

* next: (27 commits)
  Adds parentheses match highlight color chooser
  Fixes bug when changing regexpEditor highlight color
  Expand all rows when one match only
  Adds an PatternFilter unit test
  Adds filter trailing whitespaces from pattern
  Adds filter newlines from pattern
  More fine-grained RegExp updates
  Cleans up unused MainWindow::returnPressed() slot
  Adds parentheses match button to the regexp toolbar
  Adds an regexpEdit toolbar
  Adds Preferences/Settings framework classes
  Adds Settings > Preferences menu entry
  Fixes layout issue in regexp options
  Sets inputEditToolbar floatable to false
  Adds View > Toolbar menus
  Renames toolbar to editInputToolBar
  Adds showLineAndParagraphSeparatorsEnabled() to the RegexpTextEdit API
  Fixes an bug in RegexpTextEdit::setShowLineAndParagraphSeparatorsEnabled
  Ran astyle-qregexp_editor
  Adds show line and paragraph separators to regexp editor
  ...

6 years agoMerge branch 'maint'
Luís Pereira [Wed, 14 Mar 2012 16:08:11 +0000 (09:08 -0700)]
Merge branch 'maint'

* maint:
  Removes windowTitle property
  Sets ToolBarButtonStyle to ToollButtonFollowStyle
  Use QRegExp PatternSyntax enum instead of "obscure" numbers

6 years agoAdds parentheses match highlight color chooser 50
Luís Pereira [Tue, 13 Mar 2012 16:55:43 +0000 (09:55 -0700)]
Adds parentheses match highlight color chooser

Give the the ability to choose the parentheses matching highlight color.
It's the first use of the PreferencesDialog class.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoFixes bug when changing regexpEditor highlight color
Luís Pereira [Mon, 12 Mar 2012 15:29:00 +0000 (08:29 -0700)]
Fixes bug when changing regexpEditor highlight color

If highlight isn't enabled just update the stored highlight color.
setHighlightColor() changes highlight color even if highlight is disabled.
This isn't what we want. So, we only call setHighlightColor() if highlight
is enabled.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoExpand all rows when one match only 49
Kevin Funk [Sun, 12 Feb 2012 22:27:01 +0000 (23:27 +0100)]
Expand all rows when one match only

6 years agoAdds an PatternFilter unit test 48
Luís Pereira [Thu, 12 Jan 2012 18:39:39 +0000 (18:39 +0000)]
Adds an PatternFilter unit test

To run the tests just type: 'make test'

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds filter trailing whitespaces from pattern
Luís Pereira [Thu, 12 Jan 2012 17:38:33 +0000 (17:38 +0000)]
Adds filter trailing whitespaces from pattern

Removes trailing whitespaces ('t', '+', 'v', 'f', 'r', and ' ') from the
pattern sent to evaluation.
This filter can be used in conjunction with the newlines filter to filter
trailing whitespaces in regexesp's that were split among multiple lines.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds filter newlines from pattern
Luís Pereira [Thu, 12 Jan 2012 16:32:11 +0000 (16:32 +0000)]
Adds filter newlines from pattern

In complex regexp's, there is a need to split the regexp's among several
lines. Of course that the newlines shouldn't be part of the pattern sent
to evaluation. Give the user the power of choice.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoMore fine-grained RegExp updates
Luís Pereira [Thu, 17 Nov 2011 17:03:41 +0000 (09:03 -0800)]
More fine-grained RegExp updates

There is no need to update the pattern when only the other options are
changed. Right now the pattern is simply the plain text taken from
RegexpTextEdit but in the future it will need processing before being
passed to QRegExp.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoCleans up unused MainWindow::returnPressed() slot
Luís Pereira [Tue, 15 Nov 2011 17:33:17 +0000 (09:33 -0800)]
Cleans up unused MainWindow::returnPressed() slot

An return on the regexpEdit is a newline. An artifact that was left behind
when the one line editor was upgraded to an text editor.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds parentheses match button to the regexp toolbar 47
Luís Pereira [Mon, 28 Nov 2011 15:07:08 +0000 (15:07 +0000)]
Adds parentheses match button to the regexp toolbar

A very useful feature in long/complex regexp's

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds an regexpEdit toolbar 42
Luís Pereira [Tue, 29 Nov 2011 00:08:41 +0000 (00:08 +0000)]
Adds an regexpEdit toolbar

Adds (in the regexp editor area) the ability to:
    Show/Hide tabs and spaces indicators;
    Show/Hide line separators indicators.

The icons show my lack of artistic capabilities.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds Preferences/Settings framework classes 46
Luís Pereira [Fri, 11 Nov 2011 17:52:12 +0000 (09:52 -0800)]
Adds Preferences/Settings framework classes

It's a very limited framework. Qt should provide an preferences/settings
framework (IMHO).

PreferencesDialog provides an icon list configuration dialog box. It
supports Ok, Apply and Cancel buttons.

PreferencesPageInterface is and interface for the preferences pages managed
by PreferencesDialog.

SettingsInterface is the interface for the keeper of each page options.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds Settings > Preferences menu entry
Luís Pereira [Wed, 9 Nov 2011 18:49:06 +0000 (10:49 -0800)]
Adds Settings > Preferences menu entry

The first step of an ultra simple preferences "framework".
Qt lacks an settings/configuration framework :(

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoMerge commit 'refs/merge-requests/45' of git://gitorious.org/qregexp-editor/qregexp...
M. Mehdi Salem Naraghi [Mon, 28 Nov 2011 23:27:59 +0000 (00:27 +0100)]
Merge commit 'refs/merge-requests/45' of git://gitorious.org/qregexp-editor/qregexp-editor into merge-requests/45

6 years agoFixes layout issue in regexp options 45
Luís Pereira [Mon, 28 Nov 2011 15:29:21 +0000 (15:29 +0000)]
Fixes layout issue in regexp options

Keep the match button away away from regexp options.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoSets inputEditToolbar floatable to false 44
Luís Pereira [Thu, 24 Nov 2011 17:04:00 +0000 (17:04 +0000)]
Sets inputEditToolbar floatable to false

No floatable toolbars. Having it in the top, bottom, left and right is
enough.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds View > Toolbar menus
Luís Pereira [Thu, 24 Nov 2011 17:00:43 +0000 (17:00 +0000)]
Adds View > Toolbar menus

Give the user a more 'standard' way to choose what toolbar are visible. The
other way is right clicking on a toolbar area (a popup menu is fired with
all the docked widgets and toolbars).

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoRenames toolbar to editInputToolBar
Luís Pereira [Thu, 24 Nov 2011 14:40:26 +0000 (14:40 +0000)]
Renames toolbar to editInputToolBar

There will be multiple toolbars, let's call them by name.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoMerge branch 'maint' into next
Luís Pereira [Tue, 22 Nov 2011 22:51:54 +0000 (22:51 +0000)]
Merge branch 'maint' into next

* maint:
  Removes windowTitle property
  Sets ToolBarButtonStyle to ToollButtonFollowStyle
  Use QRegExp PatternSyntax enum instead of "obscure" numbers

6 years agoMerge commit 'refs/merge-requests/43' of git://gitorious.org/qregexp-editor/qregexp...
M. Mehdi Salem Naraghi [Tue, 22 Nov 2011 22:06:27 +0000 (23:06 +0100)]
Merge commit 'refs/merge-requests/43' of git://gitorious.org/qregexp-editor/qregexp-editor into merge-requests/43

6 years agoRemoves windowTitle property 43
Luís Pereira [Tue, 22 Nov 2011 18:37:37 +0000 (18:37 +0000)]
Removes windowTitle property

The windowTitle is already set in the mainwindow.cpp code with:
qApp->applicationName()

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoSets ToolBarButtonStyle to ToollButtonFollowStyle
Luís Pereira [Tue, 22 Nov 2011 18:09:43 +0000 (18:09 +0000)]
Sets ToolBarButtonStyle to ToollButtonFollowStyle

Just follow the environment we are in.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds showLineAndParagraphSeparatorsEnabled() to the RegexpTextEdit API 41
Luís Pereira [Mon, 14 Nov 2011 16:52:27 +0000 (08:52 -0800)]
Adds showLineAndParagraphSeparatorsEnabled() to the RegexpTextEdit API

If a set method is provided, a 'get' must also be provided.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoFixes an bug in RegexpTextEdit::setShowLineAndParagraphSeparatorsEnabled
Luís Pereira [Fri, 11 Nov 2011 15:02:21 +0000 (07:02 -0800)]
Fixes an bug in RegexpTextEdit::setShowLineAndParagraphSeparatorsEnabled

Comparation should be made with showLineAndParagraphSeparators, not with
showTabsAndSpaces. Yanking is not a good thing!
Introduced by commit e80ac0a2f46a2d9483b2c5274ec0b3a0abcdc6fd

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoMerge commit 'refs/merge-requests/39' of git://gitorious.org/qregexp-editor/qregexp...
M. Mehdi Salem Naraghi [Thu, 3 Nov 2011 00:31:06 +0000 (01:31 +0100)]
Merge commit 'refs/merge-requests/39' of git://gitorious.org/qregexp-editor/qregexp-editor into merge-requests/39

6 years agoRan astyle-qregexp_editor 40
Luís Pereira [Wed, 2 Nov 2011 23:32:13 +0000 (16:32 -0700)]
Ran astyle-qregexp_editor

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds show line and paragraph separators to regexp editor
Luís Pereira [Wed, 2 Nov 2011 23:30:14 +0000 (16:30 -0700)]
Adds show line and paragraph separators to regexp editor

Disabled by default. UI to toggle it will follow.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds show tabs and whitespaces option to the regexp editor
Luís Pereira [Wed, 2 Nov 2011 22:58:41 +0000 (15:58 -0700)]
Adds show tabs and whitespaces option to the regexp editor

Give the user the ability to display spaces and tabs like in an word
processor.
Disabled by default. The UI to toggle it will follow.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoMerge branch 'master' into next
Luís Pereira [Thu, 6 Oct 2011 23:27:22 +0000 (16:27 -0700)]
Merge branch 'master' into next

* master:
  get git revision more robustly
  Sets application icon (in the program windows)
  Fixes typo in program name

6 years agoMerge branch 'maint'
Luís Pereira [Thu, 6 Oct 2011 23:26:03 +0000 (16:26 -0700)]
Merge branch 'maint'

* maint:
  get git revision more robustly
  Sets application icon (in the program windows)
  Fixes typo in program name

6 years agoget git revision more robustly
Luís Pereira [Thu, 29 Sep 2011 14:57:38 +0000 (07:57 -0700)]
get git revision more robustly

cherry picked commit d3ffd8a67acf74138af03dc44de948e5de2fb652
from git://github.com/rpavlik/cmake-modules.git

Thanks to Ryan Pavlik (https://github.com/rpavlik).

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoUse QRegExp PatternSyntax enum instead of "obscure" numbers 39
Luís Pereira [Tue, 27 Sep 2011 16:01:12 +0000 (09:01 -0700)]
Use QRegExp PatternSyntax enum instead of "obscure" numbers

Easier to read and maintain.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoAdds parentheses matching highlight 38
Luís Pereira [Tue, 28 Jun 2011 20:25:40 +0000 (21:25 +0100)]
Adds parentheses matching highlight

Closes SF feature request #3186604

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoSets a proper tab order
Luís Pereira [Fri, 25 Mar 2011 16:06:33 +0000 (16:06 +0000)]
Sets a proper tab order

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoChanges Search to Match (in the regexp Ui)
Luís Pereira [Fri, 25 Mar 2011 16:02:28 +0000 (16:02 +0000)]
Changes Search to Match (in the regexp Ui)

Match is a more accurate description.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
6 years agoRefactors the RegExp Ui
Luís Pereira [Fri, 25 Mar 2011 15:35:34 +0000 (15:35 +0000)]
Refactors the RegExp Ui

The regexp QLineEdit is replaced by an QPlainTextEdit, allowing easier
complex regexp's pattern manipulation. Remaing QRegExp parameters Ui
changed it's place on the Ui using the available space in a more
effective way.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoSets application icon (in the program windows) 37
Luís Pereira [Tue, 1 Mar 2011 15:22:53 +0000 (15:22 +0000)]
Sets application icon (in the program windows)

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoFixes typo in program name 36
Luís Pereira [Mon, 21 Mar 2011 14:33:17 +0000 (14:33 +0000)]
Fixes typo in program name

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdds processor name to the package filename 35
Luís Pereira [Fri, 18 Mar 2011 18:47:47 +0000 (18:47 +0000)]
Adds processor name to the package filename

Linux can run on an multitude of processors. The package filename must
state for what processor it was built.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoFollow MacOSX naming conventions for Apps
Luís Pereira [Fri, 18 Mar 2011 18:20:59 +0000 (18:20 +0000)]
Follow MacOSX naming conventions for Apps

Some changes to make the mac binary better match the Mac OS X naming
conventions for Apps.

Written-by: Mohammad Mehdi Salem Naraghi <momesana@googlemail.com>
Refactored-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoMerge branch 'master' into maint
Luís Pereira [Wed, 16 Mar 2011 23:24:43 +0000 (23:24 +0000)]
Merge branch 'master' into maint

7 years agoMerge branch 'master' into next
Luís Pereira [Wed, 16 Mar 2011 23:23:35 +0000 (23:23 +0000)]
Merge branch 'master' into next

7 years agoQREGEXP-EDITOR 0.2.0.2 v0.2.0.2
Luís Pereira [Wed, 16 Mar 2011 23:09:16 +0000 (23:09 +0000)]
QREGEXP-EDITOR 0.2.0.2

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoRan astyle-qregexp_editor
Luís Pereira [Wed, 16 Mar 2011 22:59:54 +0000 (22:59 +0000)]
Ran astyle-qregexp_editor

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoMerge branch 'next'
Luís Pereira [Wed, 16 Mar 2011 22:49:17 +0000 (22:49 +0000)]
Merge branch 'next'

* next: (22 commits)
  Adds QRegExp-Editor menu entry on freedesktop compliant desktops
  Install icons and images
  Sets application icon (in the program windows)
  Ran create_images.sh script
  Adds svg to png logo conversion script
  Adds QRegExp-Editor logo (svg format)
  Removing trailing slash + fixing some indentations in build_installer.bat
  Removed unused variables.
  Some refactoring to the build_installer script.
  Fixing build script "compile-win32.bat"
  Fixing indentation in regexpmodel.cpp
  Use CPack to generate some packages
  Adds gitlog2changelog.py script
  Counting number of matches and displaying them in the statusbar.
  Adds uninstall target to the build system
  Removing trailing whitespaces.
  Substitutes share absolute path by a relative one
  Adding fixes to the NSIS installer script: * compile-win32.bat both checks for make and mingw32-make.exe if former wasn't found. * compile-win32.bat also builds the translations by default now * checking for  VERSION_FILE instead of VERSION-FILE now. * QRegExp-Editor is now part of the destination folder default value in the installer. * Translations files are handled (installed and uninstalled) correctly now.
  More work on NSIS Windows installer script * Integration with Add/Remove Program section of Windows Control Panel * Detection and Uninstallation of previously installed versions * build_installer.bat prompts for the location of Qt and MinGW if not * set as a environment variable. * compile-win32.bat prompts for the location of Qt and MinGW if not set * as a environment variable * Added INSTALL file * Added README for instructions on how to create installers
  Adds a new way of marking the version
  ...

Conflicts:
src/main.cpp
src/mainwindow.cpp

7 years agoMerge branch 'maint'
Luís Pereira [Wed, 16 Mar 2011 18:51:33 +0000 (18:51 +0000)]
Merge branch 'maint'

* maint: (42 commits)
  Use IniFormat for storing settings
  Adds our website to QCoreApplication::setOrganizationDomain
  Add the file extension to a fallback QIcon parameter
  Build translations by default
  Adds minimum allowed astyle version info
  Use find more efficiently (in the astyle script)
  Ran astyle script (again)
  Adds align pointer rule to astyle script
  Refactors Windows astyle script
  Use Artistic Style short options
  Replaces backsticks by $()
  Ran coding style script
  Adapts coding style scripts to QRegExp-Editor
  Borrow Kdelibs Coding Style script
  Sets codec for the AboutDialog input files
  Refactors and expands the settings code
  Adds an m_settings member variable to the MainWindow class
  Changed some files encoding
  Minor changes to the Authors Section
  Changed Authors section
  ...

7 years agoAdds QRegExp-Editor menu entry on freedesktop compliant desktops 34
Luís Pereira [Tue, 15 Mar 2011 18:24:57 +0000 (18:24 +0000)]
Adds QRegExp-Editor menu entry on freedesktop compliant desktops

QRegExp-Editor will show up under the Development menu.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoInstall icons and images
Luís Pereira [Fri, 11 Mar 2011 22:31:52 +0000 (22:31 +0000)]
Install icons and images

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoSets application icon (in the program windows) 33
Luís Pereira [Tue, 1 Mar 2011 15:22:53 +0000 (15:22 +0000)]
Sets application icon (in the program windows)

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoRan create_images.sh script
Luís Pereira [Fri, 4 Mar 2011 04:47:36 +0000 (04:47 +0000)]
Ran create_images.sh script

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdds svg to png logo conversion script
Luís Pereira [Fri, 4 Mar 2011 04:42:29 +0000 (04:42 +0000)]
Adds svg to png logo conversion script

The script creates png icons (16x16...256x256) from the svg logo.

Written-by: Mohammad Mehdi Salem Naraghi <momesana@googlemail.com>
Modified-by: Luís Pereira <luis.artur.pereira@gmail.com>
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdds QRegExp-Editor logo (svg format)
Luís Pereira [Fri, 4 Mar 2011 04:40:40 +0000 (04:40 +0000)]
Adds QRegExp-Editor logo (svg format)

Original idea by Luís Pereira
Improvements by Mohammad Mehdi Salem Naraghi

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoMerge commit 'refs/merge-requests/32' of gitorious.org:qregexp-editor/qregexp-editor...
Mohammad Mehdi Salem Naraghi [Wed, 2 Mar 2011 08:36:28 +0000 (09:36 +0100)]
Merge commit 'refs/merge-requests/32' of gitorious.org:qregexp-editor/qregexp-editor into merge-requests/32

7 years agoUse IniFormat for storing settings 32
Luís Pereira [Mon, 28 Feb 2011 15:25:07 +0000 (15:25 +0000)]
Use IniFormat for storing settings

The NativeFormat in Windows use the infamous registry. Ini files are much
easier to check, modify, delete and debug.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdds our website to QCoreApplication::setOrganizationDomain 31
Luís Pereira [Fri, 25 Feb 2011 23:46:07 +0000 (23:46 +0000)]
Adds our website to QCoreApplication::setOrganizationDomain

We now have a website :)
http://qregexp-editor.sourceforge.net/

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoMerge commit 'refs/merge-requests/30' of gitorious.org:qregexp-editor/qregexp-editor...
Mohammad Mehdi Salem Naraghi [Fri, 25 Feb 2011 19:42:46 +0000 (20:42 +0100)]
Merge commit 'refs/merge-requests/30' of gitorious.org:qregexp-editor/qregexp-editor into merge-requests/30

7 years agoRemoving trailing slash + fixing some indentations in build_installer.bat
Mohammad Mehdi Salem Naraghi [Thu, 24 Feb 2011 23:00:42 +0000 (00:00 +0100)]
Removing trailing slash + fixing some indentations in build_installer.bat

7 years agoRemoved unused variables.
Mohammad Mehdi Salem Naraghi [Thu, 24 Feb 2011 22:49:08 +0000 (23:49 +0100)]
Removed unused variables.

7 years agoSome refactoring to the build_installer script.
Mohammad Mehdi Salem Naraghi [Thu, 24 Feb 2011 22:26:09 +0000 (23:26 +0100)]
Some refactoring to the build_installer script.

7 years agoMerge commit 'refs/merge-requests/29' of gitorious.org:qregexp-editor/qregexp-editor...
Luís Pereira [Thu, 24 Feb 2011 01:13:25 +0000 (01:13 +0000)]
Merge commit 'refs/merge-requests/29' of gitorious.org:qregexp-editor/qregexp-editor into next

* gitorious.org:qregexp-editor/qregexp-editor:
  Fixing build script "compile-win32.bat"

7 years agoMerge commit 'refs/merge-requests/27' of gitorious.org:qregexp-editor/qregexp-editor...
Mohammad Mehdi Salem Naraghi [Wed, 23 Feb 2011 22:57:52 +0000 (23:57 +0100)]
Merge commit 'refs/merge-requests/27' of gitorious.org:qregexp-editor/qregexp-editor into merge-requests/27

7 years agoMerge commit 'refs/merge-requests/26' of gitorious.org:qregexp-editor/qregexp-editor...
Mohammad Mehdi Salem Naraghi [Wed, 23 Feb 2011 22:56:53 +0000 (23:56 +0100)]
Merge commit 'refs/merge-requests/26' of gitorious.org:qregexp-editor/qregexp-editor into merge-requests/26

7 years agoFixing build script "compile-win32.bat"
Mohammad Mehdi Salem Naraghi [Wed, 23 Feb 2011 22:43:56 +0000 (23:43 +0100)]
Fixing build script "compile-win32.bat"

7 years agoAdd the file extension to a fallback QIcon parameter 28
Luís Pereira [Wed, 23 Feb 2011 18:38:26 +0000 (18:38 +0000)]
Add the file extension to a fallback QIcon parameter

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoMerge commit 'refs/merge-requests/25' of gitorious.org:qregexp-editor/qregexp-editor...
Luís Pereira [Wed, 23 Feb 2011 16:58:42 +0000 (16:58 +0000)]
Merge commit 'refs/merge-requests/25' of gitorious.org:qregexp-editor/qregexp-editor into next

* gitorious.org:qregexp-editor/qregexp-editor:
  Fixing indentation in regexpmodel.cpp
  Counting number of matches and displaying them in the statusbar.

7 years agoFixing indentation in regexpmodel.cpp
M. Mehdi Salem Naraghi [Wed, 23 Feb 2011 16:40:03 +0000 (17:40 +0100)]
Fixing indentation in regexpmodel.cpp

7 years agoUse CPack to generate some packages 27
Luís Pereira [Tue, 22 Feb 2011 18:19:08 +0000 (18:19 +0000)]
Use CPack to generate some packages

The current CPack config handles source packages (TBZ2, TGZ, ZIP) and STGZ
(self extracting TGZ) bins for Linux.

TODO:
        Automatic ChangeLog handling for releases;
        Automatic version file for releases.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdds gitlog2changelog.py script 26
Luís Pereira [Tue, 22 Feb 2011 17:22:35 +0000 (17:22 +0000)]
Adds gitlog2changelog.py script

A script to generate pretty ChangeLog files form git log.
Taken from:
https://github.com/cryos/avogadro/blob/master/scripts/gitlog2changelog.py
Copyright 2008 Marcus D. Hanwell <marcus@cryos.org>

7 years agoCounting number of matches and displaying them in the statusbar.
M. Mehdi Salem Naraghi [Tue, 22 Feb 2011 16:00:49 +0000 (17:00 +0100)]
Counting number of matches and displaying them in the statusbar.

7 years agoAdds uninstall target to the build system 24
Luís Pereira [Tue, 22 Feb 2011 00:46:41 +0000 (00:46 +0000)]
Adds uninstall target to the build system

Taken from:
http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoMerge commit 'refs/merge-requests/22' of gitorious.org:qregexp-editor/qregexp-editor...
Luís Pereira [Tue, 22 Feb 2011 00:28:55 +0000 (00:28 +0000)]
Merge commit 'refs/merge-requests/22' of gitorious.org:qregexp-editor/qregexp-editor into next

* gitorious.org:qregexp-editor/qregexp-editor:
  Removing trailing whitespaces.
  Adding fixes to the NSIS installer script: * compile-win32.bat both checks for make and mingw32-make.exe if former wasn't found. * compile-win32.bat also builds the translations by default now * checking for  VERSION_FILE instead of VERSION-FILE now. * QRegExp-Editor is now part of the destination folder default value in the installer. * Translations files are handled (installed and uninstalled) correctly now.
  More work on NSIS Windows installer script * Integration with Add/Remove Program section of Windows Control Panel * Detection and Uninstallation of previously installed versions * build_installer.bat prompts for the location of Qt and MinGW if not * set as a environment variable. * compile-win32.bat prompts for the location of Qt and MinGW if not set * as a environment variable * Added INSTALL file * Added README for instructions on how to create installers

7 years agoRemoving trailing whitespaces.
M. Mehdi Salem Naraghi [Tue, 22 Feb 2011 00:15:59 +0000 (01:15 +0100)]
Removing trailing whitespaces.

7 years agoSubstitutes share absolute path by a relative one 23
Luís Pereira [Fri, 18 Feb 2011 19:58:45 +0000 (19:58 +0000)]
Substitutes share absolute path by a relative one

CPack doesn't work well with absolute paths. The translations would not
be part of the generated package.
Yes, CPack will be used in the future to package releases.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdding fixes to the NSIS installer script:
Mohammad Mehdi Salem Naraghi [Fri, 18 Feb 2011 18:34:35 +0000 (19:34 +0100)]
Adding fixes to the NSIS installer script:
* compile-win32.bat both checks for make and mingw32-make.exe if former wasn't found.
* compile-win32.bat also builds the translations by default now
* checking for  VERSION_FILE instead of VERSION-FILE now.
* QRegExp-Editor is now part of the destination folder default value in the installer.
* Translations files are handled (installed and uninstalled) correctly now.

7 years agoMore work on NSIS Windows installer script
M. Mehdi Salem Naraghi [Tue, 15 Feb 2011 16:10:57 +0000 (17:10 +0100)]
More work on NSIS Windows installer script
* Integration with Add/Remove Program section of Windows Control Panel
* Detection and Uninstallation of previously installed versions
* build_installer.bat prompts for the location of Qt and MinGW if not
* set as a environment variable.
* compile-win32.bat prompts for the location of Qt and MinGW if not set
* as a environment variable
* Added INSTALL file
* Added README for instructions on how to create installers

7 years agoAdds a new way of marking the version 21
Luís Pereira [Mon, 14 Feb 2011 12:49:34 +0000 (12:49 +0000)]
Adds a new way of marking the version

The version was set by hardcoding it in the code. Now it's taken care by
the build system (CMake).

First we check if there is a version file (included in release tarballs),
then try git-describe, then use the default. A VERSION_FILE is generated
so external package generators, e.g., NSIS.
A re-configure is forced on each git commit so that you can trust the
values of the variables in your build system.

The GetGitRevisionDescription functions written by Ryan Pavlik.
(https://github.com/rpavlik/cmake-modules)

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoMerge commit 'refs/merge-requests/20' of gitorious.org:qregexp-editor/qregexp-editor...
M. Mehdi Salem Naraghi [Fri, 4 Feb 2011 07:10:05 +0000 (08:10 +0100)]
Merge commit 'refs/merge-requests/20' of gitorious.org:qregexp-editor/qregexp-editor into merge-requests/20

7 years agoBuild translations by default 20
Luís Pereira [Thu, 3 Feb 2011 16:40:28 +0000 (16:40 +0000)]
Build translations by default

To build translations one had to type: 'make translations'. Now they are
built by default.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdds minimum allowed astyle version info 19
Luís Pereira [Thu, 3 Feb 2011 16:02:25 +0000 (16:02 +0000)]
Adds minimum allowed astyle version info

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoUse find more efficiently (in the astyle script)
Luís Pereira [Thu, 3 Feb 2011 15:45:39 +0000 (15:45 +0000)]
Use find more efficiently (in the astyle script)

Also refactors the astyle options.

Suggested-by: M. Mehdi Salem Naraghi <momesana@googlemail.com>
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoRan astyle script (again)
Luís Pereira [Wed, 2 Feb 2011 22:05:28 +0000 (22:05 +0000)]
Ran astyle script (again)

Now with the --align-pointer=name option

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdds align pointer rule to astyle script
Luís Pereira [Wed, 2 Feb 2011 22:04:41 +0000 (22:04 +0000)]
Adds align pointer rule to astyle script

char* foo;
becomes (with align-pointer=name):
char *foo;

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoRefactors Windows astyle script
Luís Pereira [Wed, 2 Feb 2011 21:28:32 +0000 (21:28 +0000)]
Refactors Windows astyle script

Suggested-by: M. Mehdi Salem Naraghi <momesana@googlemail.com>
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoUse Artistic Style short options
Luís Pereira [Wed, 2 Feb 2011 15:42:00 +0000 (15:42 +0000)]
Use Artistic Style short options

astyle 2.01 doesn't work anymore with some long options.

Reported-by: M. Mehdi Salem Naraghi <momesana@googlemail.com>
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoReplaces backsticks by $()
Luís Pereira [Wed, 2 Feb 2011 15:33:20 +0000 (15:33 +0000)]
Replaces backsticks by $()

Backsticks are POSIX deprecated.

Reported-by: M. Mehdi Salem Naraghi <momesana@googlemail.com>
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoRan coding style script
Luís Pereira [Thu, 27 Jan 2011 17:05:44 +0000 (17:05 +0000)]
Ran coding style script

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdapts coding style scripts to QRegExp-Editor
Luís Pereira [Thu, 27 Jan 2011 16:47:19 +0000 (16:47 +0000)]
Adapts coding style scripts to QRegExp-Editor

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoBorrow Kdelibs Coding Style script
Luís Pereira [Thu, 27 Jan 2011 16:37:29 +0000 (16:37 +0000)]
Borrow Kdelibs Coding Style script

Downloaded from:
http://websvn.kde.org/*checkout*/trunk/KDE/kdesdk/scripts/astyle-kdelibs
http://websvn.kde.org/*checkout*/trunk/
/KDE/kdesdk/scripts/astyle-kdelibs.bat

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoSets codec for the AboutDialog input files
Luís Pereira [Thu, 27 Jan 2011 14:53:27 +0000 (14:53 +0000)]
Sets codec for the AboutDialog input files

Commit 2b44049804dbfd4600bae6ced6bc96c54b5d723f changed the files encoding
to UTF-8 but the input codec stream wasn't changed.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoMerge branch 'integration' into next
Luís Pereira [Tue, 25 Jan 2011 20:15:41 +0000 (20:15 +0000)]
Merge branch 'integration' into next

7 years agoRefactors and expands the settings code 16
Luís Pereira [Fri, 21 Jan 2011 00:08:08 +0000 (00:08 +0000)]
Refactors and expands the settings code

Code refactored to ease maintenance and handle new features.
The settings code can now handle a search history, although not yet
implemented. The changes needed to achieve a search history make the new
structure not entirely compatible with the old one.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
7 years agoAdds an m_settings member variable to the MainWindow class
Luís Pereira [Tue, 18 Jan 2011 23:57:04 +0000 (23:57 +0000)]
Adds an m_settings member variable to the MainWindow class

It's better to use one variable that contains the settings during all
program lifetime.

Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>