Skip to content

Commit

Permalink
ability to re-open file in different charset from FM panel, not just …
Browse files Browse the repository at this point in the history
…from File - Reload
  • Loading branch information
psemiletov committed May 18, 2017
1 parent 0e4fb7e commit 92f2aee
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Code and design:
Peter 'Roxton' Semiletov <[email protected], http://semiletov.org>
Peter 'Roxton' Semiletov <[email protected], http://semiletov.org>

PHP hl module by Boo-boo.

Expand Down
3 changes: 2 additions & 1 deletion document.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* 2007-2016 by Peter Semiletov *
* [email protected] *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
Expand Down Expand Up @@ -403,6 +403,7 @@ CDocument* document_holder::open_file (const QString &fileName, const QString &c
if (d)
{
tab_widget->setCurrentIndex (tab_widget->indexOf (d->tab_page));
d->reload (codec);
return d;
}

Expand Down
2 changes: 1 addition & 1 deletion document.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* 2007-2017 by Peter Semiletov <[email protected]> *
* 2007-2017 by Peter Semiletov <[email protected]> *
* *
* *
* This program is free software; you can redistribute it and/or modify *
Expand Down
4 changes: 2 additions & 2 deletions fman.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**************************************************************************
* 2007-2016 by Peter Semiletov *
* [email protected] *
* 2007-2017 by Peter Semiletov *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
Expand Down
4 changes: 2 additions & 2 deletions fman.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**************************************************************************
* 2007-2014 by Peter Semiletov *
* [email protected] *
* 2007-2017 by Peter Semiletov *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
Expand Down
4 changes: 2 additions & 2 deletions logmemo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2007-2011 by Peter Semiletov *
* 2007-2017 by Peter Semiletov *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
Expand Down Expand Up @@ -40,7 +40,7 @@ CLogMemo::CLogMemo ( QWidget * parent): QPlainTextEdit (parent)
memo->setTextInteractionFlags (Qt::LinksAccessibleByMouse | Qt::TextSelectableByMouse |
Qt::TextSelectableByKeyboard);*/

setFocusPolicy (Qt::ClickFocus);
setFocusPolicy (Qt::ClickFocus);
setUndoRedoEnabled (false);
setReadOnly (true);

Expand Down
2 changes: 1 addition & 1 deletion logmemo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2007-2010 by Peter Semiletov *
* 2007-2017 by Peter Semiletov *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
Expand Down
7 changes: 5 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyleft 2007-2017 by Peter Semiletov <[email protected]> *
* Copyleft 2007-2017 by Peter Semiletov <[email protected]> *
* *
* *
* This program is free software; you can redistribute it and/or modify *
Expand All @@ -25,7 +25,10 @@
#include "rvln.h"

#include "single_application.h"

#ifndef Q_OS_OS2
#include "single_application_shared.h"
#endif

extern rvln *mainWindow;

Expand Down Expand Up @@ -76,6 +79,7 @@ int main (int argc, char *argv[])

return 0;
}

#endif

mainWindow = new rvln();
Expand All @@ -94,5 +98,4 @@ int main (int argc, char *argv[])
mainWindow->show();

return app.exec();

}
4 changes: 2 additions & 2 deletions rvln.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* 2007-2017 by Peter Semiletov *
* [email protected] *
* 2007-2017 by Peter Semiletov *
* [email protected] *
started at 08 November 2007
* *
Expand Down
1 change: 0 additions & 1 deletion single_application_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,4 @@ bool CSingleApplicationShared::sendMessage(const QString &message)
return true;
}


#endif

0 comments on commit 92f2aee

Please sign in to comment.