1. 01 Mar, 2016 2 commits
  2. 13 Jul, 2014 2 commits
  3. 13 Apr, 2014 1 commit
  4. 23 Feb, 2014 2 commits
  5. 22 Feb, 2014 1 commit
  6. 06 Oct, 2011 1 commit
  7. 31 Jul, 2011 1 commit
  8. 16 Jul, 2011 2 commits
  9. 22 Jun, 2011 2 commits
  10. 06 Mar, 2011 1 commit
  11. 24 Feb, 2011 1 commit
  12. 20 Feb, 2011 2 commits
  13. 19 Feb, 2011 1 commit
  14. 03 Jan, 2011 1 commit
  15. 25 Apr, 2010 1 commit
  16. 24 Sep, 2009 1 commit
  17. 21 Sep, 2009 4 commits
  18. 18 Feb, 2007 1 commit
    • Daniel Elstner's avatar
      Minor code reformatting: Change instances of <foo,bar> in template · b2c0905b
      Daniel Elstner authored
      * src/controller.h: Minor code reformatting: Change instances
      of <foo,bar> in template argument lists to <foo, bar>.
      * src/filebuffer.{cc,h}: ditto,
      * src/fileshared.{cc,h}: ditto,
      * src/filetree.h: ditto,
      * src/filetreeprivate.{cc,h}: ditto,
      * src/pcreshell.{cc,h}: ditto.
      * src/mainwindow.cc (program_license): Add terminating newline
      to last paragraph.
      svn path=/trunk/; revision=651
  19. 17 Jan, 2007 1 commit
    • Daniel Elstner's avatar
      :filename_short_display_name): Rename from Util::shorten_pathname(). · 80cf78cd
      Daniel Elstner authored
      * src/stringutils.{cc,h} (Util::filename_short_display_name):
      Rename from Util::shorten_pathname().  Return the display name
      of the shortened filename encoded in UTF-8.
      (Util::expand_pathname): Remove as this function is no longer
      being used anywhere.
      * src/mainwindow.cc (MainWindow::set_title_filename): Use
      svn path=/trunk/; revision=644
  20. 13 Jan, 2007 1 commit
    • Daniel Elstner's avatar
      :find_recursively): Replace uses of Glib::filename_display_name() by · 28d68a4f
      Daniel Elstner authored
      * src/filetree.cc (FileTree::find_recursively): Replace uses of
      Glib::filename_display_name() by Glib::filename_display_basename()
      to enable translation of well-known locations in future.  Store
      the full path in the directory stack.
      (FileTree::find_fill_dirstack): Convert the full path from the
      stack to a displayable name with Glib::filename_display_basename().
      (FileTree::save_file_at_iter): Determine the basename for
      use in the error message with Glib::filename_display_basename().
      * src/mainwindow.cc (MainWindow::set_title_filename): Call
      Glib::filename_display_basename() to get the filename to be
      displayed in the window title.
      * src/filetreeprivate.{cc,h}: Some early spring cleaning.
      svn path=/trunk/; revision=630
  21. 12 Jan, 2007 1 commit
  22. 11 Jan, 2007 3 commits
    • Daniel Elstner's avatar
      :initialize): Really minor tweaks. · 879e4271
      Daniel Elstner authored
      * src/mainwindow.cc (MainWindow::initialize): Really minor tweaks.
      svn path=/trunk/; revision=628
    • Daniel Elstner's avatar
      Make init_state_ a value member of the class instead creating it · 81753d24
      Daniel Elstner authored
      * src/main.cc (RegexxerOptions): Make init_state_ a value member
      of the class instead creating it dynamically.  This simplification
      is now possible since the RegexxerOptions object will be allocated
      dynamically anyway.
      (RegexxerOptions::init_state): Rename from take_init_state(), and
      make it return a const reference.
      (main): Use new init_state() method when initializing the window.
      * src/mainwindow.{cc,h} (MainWindow::initialize): Change init
      parameter type to a const reference.
      svn path=/trunk/; revision=627
    • Daniel Elstner's avatar
      :create_with_error_message): Use UTF-8 encoded typographically correct · ab2411fc
      Daniel Elstner authored
      * src/filebuffer.cc (FileBuffer::create_with_error_message): Use
      UTF-8 encoded typographically correct apostrophe in the title
      * src/filetree.cc (FileTree::find_recursively): Replace call to
      Util::filename_to_utf8_fallback() by Glib::filename_display_name().
      (FileTree::find_fill_dirstack): Likewise.
      (FileTree::save_file_at_iter): Use UTF-8 encoded typographically
      correct quote characters in the error message string.
      (FileTree::load_file_with_fallback): Likewise.
      * src/pcreshell.cc (throw_regex_error): New function to throw a
      Pcre::Error exception with a properly formatted error message.
      (Pcre::Pattern::Pattern): Use throw_regex_error().
      * src/prefdialog.cc (PrefDialog::on_entry_fallback_activate):
      Use proper Unicode quotes in error message string.
      * src/mainwindow.cc (MainWindow::initialize): Run the search
      automatically only if also a filename pattern has been specified
      on the command line.
      (MainWindow::confirm_quit_request): Use proper Unicode apostrophe
      in the error message.
      (MainWindow::on_find_files): Likewise.  Also remove the code to
      format an error message for regex exceptions, as Pcre::Error now
      already carries a user-friendly message.
      (MainWindow::set_title_filename): Replace calls to
      Util::filename_to_utf8_fallback() by Glib::filename_display_name().
      * src/stringutils.{cc,h} (Util::shell_pattern_to_regex): Minor
      optimization twiddling.
      (Util::substitute_references): Likewise.
      (Util::filename_to_utf8_fallback): Remove function, as we can
      now simply use Glib::filename_display_name() instead.
      (Util::convert_to_ascii): Remove; no longer used anywhere.
      (Util::shorten_pathname): Use G_IS_DIR_SEPARATOR() instead of
      comparing against G_DIR_SEPARATOR directly.  Necessary because
      on win32 both '/' and '\' are accepted as directory separators.
      * ui/regexxer.schemas.in: Reformat and use proper Unicode quotes
      and apostrophes.
      * ui/prefdialog.glade: Likewise.  Also remove some property
      specifications which assigned default values anyway.
      * ui/mainwindow.glade: As above, strip pointless property settings.
      * en.po: Remove English "translation" as proper Unicode quotes and
      apostrophes are now used directly in the untranslated messages.
      * LINGUAS: Remove "en" from list.
      * POTFILES.in: Prepend [encoding: UTF-8] to list of files.
      svn path=/trunk/; revision=623
  23. 09 Jan, 2007 2 commits
  24. 07 Jan, 2007 1 commit
    • Daniel Elstner's avatar
      Again remove the tearoff menus and the menubar and toolbar handle boxes. · fcf2d49b
      Daniel Elstner authored
      * ui/mainwindow.glade: Again remove the tearoff menus and the
      menubar and toolbar handle boxes.  This was just superfluous UI
      clutter not actually used by anyone.
      (button_folder): Get rid of the custom button that used to fire
      up the file chooser dialog, plus the accompanying text entry for
      display and editing of the folder name.  Replace this old cruft
      with a fresh and crisp GtkFileChooserButton plus a label.  Yay!
      (combo_pattern_entry): Reactivate commented-out markup that sets
      a tooltip on the internal GtkEntry child of combo_pattern.  As
      this finally supported by libglade it is no longer necessary to
      hack around the limitation in code.
      * src/mainwindow.{cc,h} (MainWindow): Adapt the implementation
      to work with the changed UI layout.  Change the folder selection
      handling as necessary.
      (MainWindow::load_xml): Remove the tooltip hack for the pattern
      entry, since libglade now allows for this in the glade file.
      (MainWindow::get_folder_fullname): Remove now unused method.
      (MainWindow::on_select_folder): Likewise.
      svn path=/trunk/; revision=607
  25. 06 Jan, 2007 3 commits
    • Daniel Elstner's avatar
      New class that implements the command-line option interface using the · 9c55cd60
      Daniel Elstner authored
      * src/main.cc (RegexxerOptions): New class that implements the
      command-line option interface using the option parsing facilities
      of glibmm instead of libpopt.
      (parse_command_line): Remove old function that used libpopt to
      parse command line options.
      (main): Use the new option parsing code.  Also, merge the gettext
      initialization into a single call again.  The special trickery that
      used to bind the codeset separately after option processing is no
      longer necessary with the new parser.
      * src/mainwindow.{cc,h} (Regexxer::InitState): Reorganize the data
      structure so that default-constructed objects equal the default
      values of the command-line options.  This is a work-around for
      glibmm bug #393571.
      (MainWindow::initialize): Adapt to Regexxer::InitState changes.
      * src/translation.{cc,h} (Util::enable_utf8_gettext): Merge back
      into Util::initialize_gettext(), as the separation is no longer
      (compose_impl): Optimize a bit by reserving the memory for the
      result string in advance.  Also, replace a couple of `...' quotes
      with "..." in a warning message.
      * Makefile.am (src_regexxer_LDADD): Remove $(POPTLIBS).
      * configure.ac (DK_LIB_POPT): Remove check for libpopt.
      * m4/dk-popt.m4: Remove now obsolete file.
      svn path=/trunk/; revision=603
    • Daniel Elstner's avatar
      :on_about): Replace custom about dialog with stock GTK+ one. · 0ec5e36d
      Daniel Elstner authored
      * src/mainwindow.{cc,h} (MainWindow::on_about): Replace custom
      about dialog with stock GTK+ one.
      (on_about_dialog_response): Rename from on_about_dialog_hide().
      Add unused function parameter for the response ID.
      * src/aboutdialog.{cc,h}: Remove now superfluous files.
      * ui/aboutdialog.glade: Likewise.
      * Makefile.am (src_regexxer_SOURCES): Remove src/aboutdialog.{cc,h}
      from the list of source files.
      (dist_pkgdata_DATA): Remove ui/aboutdialog.glade from list.
      * configure.ac (REGEXXER_MODULES): Require gtkmm 2.6, in which the
      stock about dialog first appeared.
      * POTFILES.in: Remove ui/aboutdialog.glade.
      svn path=/trunk/; revision=594
    • Daniel Elstner's avatar
      Update copyright notice: The postal address of the Free Software · 7335f7fb
      Daniel Elstner authored
      * src/*.{cc,h}: Update copyright notice:  The postal address of
      the Free Software Foundation changed, and my email address too.
      Also, remove the statement I had inserted which explicitely
      disallowed using a later version of the license.  I think I do
      not have to ask for permission from contributors, since the
      copyright notice only mentions me as the copyright holder, so
      technically everyone automatically transferred her copyright
      to me.  Anyway, the change is utterly minor and the notice now
      matches what everyone else is using.
      Also use the opportunity to get rid of the version control
      substitutions and the trailing empty line in every file.
      * ui/aboutdialog.glade: Update my email address.
      svn path=/trunk/; revision=589
  26. 14 Jul, 2004 1 commit
    • Daniel Elstner's avatar
      :find_matches): Add a feedback slot parameter and invoke it for every · 36bfa838
      Daniel Elstner authored
      * src/filebuffer.{cc,h} (FileBuffer::find_matches): Add a feedback
      slot parameter and invoke it for every matching line.  The current
      line number and the subject string are passed as arguments to the
      feedback slot.
      * src/filetree.{cc,h} (FileTree::signal_feedback): New signal.
      (FileTree::find_matches_at_path_iter): Pass a feedback slot to
      FileBuffer::find_matches() that forwards to signal_feedback()
      with the fileinfo object bound as third argument.
      * src/mainwindow.{cc,h} (print_location): New handler for the
      feedback signal which prints the location of the match to standard
      output, in the same format as used by 'grep -n'.
      (InitState::feedback): New bool member.
      (MainWindow::initialize): Connect the filetree's signal_feedback
      to print_location if the init state's feedback flag is true.
      * src/main.cc (parse_command_line): Add the --line-number command
      line argument, intended to work just like the grep equivalent.