Skip to content

Commit

Permalink
Better zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneWithTheBraid committed Aug 5, 2020
1 parent 144da0f commit 4a68d08
Show file tree
Hide file tree
Showing 17 changed files with 385 additions and 294 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ A port of the main features of Xournal++ to various Flutter platforms like Andro
- [x] LaTeX
- [ ] Whiteout eraser
- [ ] Saving
- [ ] Basic editing
- [x] Basic editing

## Getting started

> You would like to contribute? Please check out issues to solve [here](https://gitlab.com/TheOneWithTheBraid/xournalpp_mobile/-/issues) or get our `// TODO:`s [here](https://gitlab.com/search?search=TODO&project_id=20056916)!
Get your information about the `.xopp` file format at http://www-math.mit.edu/~auroux/software/xournal/manual.html#file-format .

Install Flutter first. See [flutter.dev](https://flutter.dev/docs/get-started/install) for more details.
Expand Down
14 changes: 13 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/x-xopp" /> <!-- application/x-xopp -->
<data android:mimeType="application/x-xopp" />
</intent-filter>
<!-- unsure whether SEND_MULTIPLE should be supported -->
<intent-filter>
Expand All @@ -80,6 +80,18 @@
<data android:mimeType="application/x-xopp" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/x-gzip" />
</intent-filter>
<!-- unsure whether SEND_MULTIPLE should be supported -->
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/x-gzip" />
</intent-filter>

</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
Expand Down
10 changes: 5 additions & 5 deletions lib/generated/intl/messages_all.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import 'messages_de.dart' as messages_de;
import 'messages_en.dart' as messages_en;

typedef Future<dynamic> LibraryLoader();

Map<String, LibraryLoader> _deferredLibraries = {
'de': () => new Future.value(null),
'en': () => new Future.value(null),
Expand All @@ -39,8 +38,9 @@ MessageLookupByLibrary _findExact(String localeName) {
/// User programs should call this before using [localeName] for messages.
Future<bool> initializeMessages(String localeName) async {
var availableLocale = Intl.verifiedLocale(
localeName, (locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
localeName,
(locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
if (availableLocale == null) {
return new Future.value(false);
}
Expand All @@ -60,8 +60,8 @@ bool _messagesExistFor(String locale) {
}

MessageLookupByLibrary _findGeneratedMessagesFor(String locale) {
var actualLocale =
Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor,
onFailure: (_) => null);
if (actualLocale == null) return null;
return _findExact(actualLocale);
}
111 changes: 43 additions & 68 deletions lib/generated/intl/messages_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,72 +20,47 @@ class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'de';

final messages = _notInlinedMessages(_notInlinedMessages);

static _notInlinedMessages(_) => <String, Function>{
"abort": MessageLookupByLibrary.simpleMessage("Abbrechen"),
"about": MessageLookupByLibrary.simpleMessage("About"),
"aboutXournal": MessageLookupByLibrary.simpleMessage("Über Xournal++"),
"aboutXournalMobileEdition": MessageLookupByLibrary.simpleMessage(
"Über Xournal++ - Mobile-Edition"),
"apply": MessageLookupByLibrary.simpleMessage("Anwenden"),
"areYouSureIHaveThePermissionAndAreYou":
MessageLookupByLibrary.simpleMessage(
" leider nicht lesen. Bist du dir sicher, dass ich dazu die Berechtigung habe, und, dass es eine richtige Xournal++ Datei ist?"),
"background": MessageLookupByLibrary.simpleMessage("Hintergrund"),
"cancel": MessageLookupByLibrary.simpleMessage("Abbrechen"),
"close": MessageLookupByLibrary.simpleMessage("Schließen"),
"copyErrorMessage":
MessageLookupByLibrary.simpleMessage("Fehlermeldung kopieren"),
"doubleTapToChange":
MessageLookupByLibrary.simpleMessage("Doppelt tippen zum Ändern."),
"dropFilesToOpen": MessageLookupByLibrary.simpleMessage(
"Dateien zum Öffnen hier hinschieben"),
"error": MessageLookupByLibrary.simpleMessage("Fehler"),
"errorLoadingFile": MessageLookupByLibrary.simpleMessage(
"Fehler beim Öffnen der Datei"),
"errorOpeningFile": MessageLookupByLibrary.simpleMessage(
"Fehler beim Öffnen der Datei"),
"home": MessageLookupByLibrary.simpleMessage("Startseite"),
"imVerySorryButICouldntReadTheFile":
MessageLookupByLibrary.simpleMessage(
"Es tut mir Leid, aber ich konnte die Datei "),
"loadingFile": MessageLookupByLibrary.simpleMessage("Lade Datei..."),
"mobileEditionUnofficial": MessageLookupByLibrary.simpleMessage(
"Mobile-Edition (inoffiziell)"),
"newDocument": MessageLookupByLibrary.simpleMessage("Neues Dokument"),
"newFile": MessageLookupByLibrary.simpleMessage("Neu"),
"newNotebook": MessageLookupByLibrary.simpleMessage("Neues Notizbuch"),
"newTitle": MessageLookupByLibrary.simpleMessage("Neuer Titel"),
"noFileSelected":
MessageLookupByLibrary.simpleMessage("Keine Datei gewählt"),
"noRecentFiles": MessageLookupByLibrary.simpleMessage(
"Keine zuletzt verwendeten Dateien."),
"notImplemented":
MessageLookupByLibrary.simpleMessage("Nicht implementiert"),
"notWorkingYet":
MessageLookupByLibrary.simpleMessage("Funktioniert noch nicht."),
"okay": MessageLookupByLibrary.simpleMessage("Okay"),
"open": MessageLookupByLibrary.simpleMessage("Öffnen"),
"opening": MessageLookupByLibrary.simpleMessage("Öffne"),
"openingFile": MessageLookupByLibrary.simpleMessage("Öffne Datei"),
"recentFiles":
MessageLookupByLibrary.simpleMessage("Zuletzt verwendete Dateien"),
"save": MessageLookupByLibrary.simpleMessage("Speichern"),
"setDocumentTitle":
MessageLookupByLibrary.simpleMessage("Titel des Dokuments ändern"),
"sourceCode": MessageLookupByLibrary.simpleMessage("Quellcode"),
"theFollowingErrorWasDetected": MessageLookupByLibrary.simpleMessage(
"Folgender Fehler ist aufgetreten:"),
"toolboxNotImplementedYet": MessageLookupByLibrary.simpleMessage(
"Werkzeugkasten noch nicht implementiert."),
"tools": MessageLookupByLibrary.simpleMessage("Werkzeuge"),
"xournalMobileEditionIsAnUnofficialProjectTryingToMake":
MessageLookupByLibrary.simpleMessage(
"Xournal++ - Mobile-Edition ist ein inoffizielles Projekt, das es versucht, Xournal++ Dateien und -Funktionen auf anderen Geräten bereitzustellen."),
"youDidNotSelectAnyFile": MessageLookupByLibrary.simpleMessage(
"Du hast keine Datei ausgewählt.."),
"youveBeenRedirectedToTheLocalApp":
MessageLookupByLibrary.simpleMessage(
"Du wurdest in die lokale App weitergeleitet.")
};
static _notInlinedMessages(_) => <String, Function> {
"abort" : MessageLookupByLibrary.simpleMessage("Abbrechen"),
"about" : MessageLookupByLibrary.simpleMessage("About"),
"aboutXournal" : MessageLookupByLibrary.simpleMessage("Über Xournal++"),
"aboutXournalMobileEdition" : MessageLookupByLibrary.simpleMessage("Über Xournal++ - Mobile-Edition"),
"apply" : MessageLookupByLibrary.simpleMessage("Anwenden"),
"areYouSureIHaveThePermissionAndAreYou" : MessageLookupByLibrary.simpleMessage(" leider nicht lesen. Bist du dir sicher, dass ich dazu die Berechtigung habe, und, dass es eine richtige Xournal++ Datei ist?"),
"background" : MessageLookupByLibrary.simpleMessage("Hintergrund"),
"cancel" : MessageLookupByLibrary.simpleMessage("Abbrechen"),
"close" : MessageLookupByLibrary.simpleMessage("Schließen"),
"copyErrorMessage" : MessageLookupByLibrary.simpleMessage("Fehlermeldung kopieren"),
"doubleTapToChange" : MessageLookupByLibrary.simpleMessage("Doppelt tippen zum Ändern."),
"dropFilesToOpen" : MessageLookupByLibrary.simpleMessage("Dateien zum Öffnen hier hinschieben"),
"error" : MessageLookupByLibrary.simpleMessage("Fehler"),
"errorLoadingFile" : MessageLookupByLibrary.simpleMessage("Fehler beim Öffnen der Datei"),
"errorOpeningFile" : MessageLookupByLibrary.simpleMessage("Fehler beim Öffnen der Datei"),
"home" : MessageLookupByLibrary.simpleMessage("Startseite"),
"imVerySorryButICouldntReadTheFile" : MessageLookupByLibrary.simpleMessage("Es tut mir Leid, aber ich konnte die Datei "),
"loadingFile" : MessageLookupByLibrary.simpleMessage("Lade Datei..."),
"mobileEditionUnofficial" : MessageLookupByLibrary.simpleMessage("Mobile-Edition (inoffiziell)"),
"newDocument" : MessageLookupByLibrary.simpleMessage("Neues Dokument"),
"newFile" : MessageLookupByLibrary.simpleMessage("Neu"),
"newNotebook" : MessageLookupByLibrary.simpleMessage("Neues Notizbuch"),
"newTitle" : MessageLookupByLibrary.simpleMessage("Neuer Titel"),
"noFileSelected" : MessageLookupByLibrary.simpleMessage("Keine Datei gewählt"),
"noRecentFiles" : MessageLookupByLibrary.simpleMessage("Keine zuletzt verwendeten Dateien."),
"notImplemented" : MessageLookupByLibrary.simpleMessage("Nicht implementiert"),
"notWorkingYet" : MessageLookupByLibrary.simpleMessage("Funktioniert noch nicht."),
"okay" : MessageLookupByLibrary.simpleMessage("Okay"),
"open" : MessageLookupByLibrary.simpleMessage("Öffnen"),
"opening" : MessageLookupByLibrary.simpleMessage("Öffne"),
"openingFile" : MessageLookupByLibrary.simpleMessage("Öffne Datei"),
"recentFiles" : MessageLookupByLibrary.simpleMessage("Zuletzt verwendete Dateien"),
"save" : MessageLookupByLibrary.simpleMessage("Speichern"),
"setDocumentTitle" : MessageLookupByLibrary.simpleMessage("Titel des Dokuments ändern"),
"sourceCode" : MessageLookupByLibrary.simpleMessage("Quellcode"),
"theFollowingErrorWasDetected" : MessageLookupByLibrary.simpleMessage("Folgender Fehler ist aufgetreten:"),
"toolboxNotImplementedYet" : MessageLookupByLibrary.simpleMessage("Werkzeugkasten noch nicht implementiert."),
"tools" : MessageLookupByLibrary.simpleMessage("Werkzeuge"),
"xournalMobileEditionIsAnUnofficialProjectTryingToMake" : MessageLookupByLibrary.simpleMessage("Xournal++ - Mobile-Edition ist ein inoffizielles Projekt, das es versucht, Xournal++ Dateien und -Funktionen auf anderen Geräten bereitzustellen."),
"youDidNotSelectAnyFile" : MessageLookupByLibrary.simpleMessage("Du hast keine Datei ausgewählt.."),
"youveBeenRedirectedToTheLocalApp" : MessageLookupByLibrary.simpleMessage("Du wurdest in die lokale App weitergeleitet.")
};
}
110 changes: 43 additions & 67 deletions lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,71 +20,47 @@ class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'en';

final messages = _notInlinedMessages(_notInlinedMessages);

static _notInlinedMessages(_) => <String, Function>{
"abort": MessageLookupByLibrary.simpleMessage("Abort"),
"about": MessageLookupByLibrary.simpleMessage("About"),
"aboutXournal": MessageLookupByLibrary.simpleMessage("About Xournal++"),
"aboutXournalMobileEdition": MessageLookupByLibrary.simpleMessage(
"About Xournal++ - mobile edition"),
"apply": MessageLookupByLibrary.simpleMessage("Apply"),
"areYouSureIHaveThePermissionAndAreYou":
MessageLookupByLibrary.simpleMessage(
". Are you sure I have the permission? And are you sure it is a Xournal++ file?"),
"background": MessageLookupByLibrary.simpleMessage("Background"),
"cancel": MessageLookupByLibrary.simpleMessage("Cancel"),
"close": MessageLookupByLibrary.simpleMessage("Close"),
"copyErrorMessage":
MessageLookupByLibrary.simpleMessage("Copy error message"),
"doubleTapToChange":
MessageLookupByLibrary.simpleMessage("Double tap to change."),
"dropFilesToOpen":
MessageLookupByLibrary.simpleMessage("Drop files to open"),
"error": MessageLookupByLibrary.simpleMessage("Error"),
"errorLoadingFile":
MessageLookupByLibrary.simpleMessage("Error loading file"),
"errorOpeningFile":
MessageLookupByLibrary.simpleMessage("Error opening file"),
"home": MessageLookupByLibrary.simpleMessage("Home"),
"imVerySorryButICouldntReadTheFile":
MessageLookupByLibrary.simpleMessage(
"I\'m very sorry, but I couldn\'t read the file "),
"loadingFile": MessageLookupByLibrary.simpleMessage("Loading file..."),
"mobileEditionUnofficial":
MessageLookupByLibrary.simpleMessage("mobile edition (unofficial)"),
"newDocument": MessageLookupByLibrary.simpleMessage("New Document"),
"newFile": MessageLookupByLibrary.simpleMessage("New"),
"newNotebook": MessageLookupByLibrary.simpleMessage("New Notebook"),
"newTitle": MessageLookupByLibrary.simpleMessage("New title"),
"noFileSelected":
MessageLookupByLibrary.simpleMessage("No file selected"),
"noRecentFiles":
MessageLookupByLibrary.simpleMessage("No recent files."),
"notImplemented":
MessageLookupByLibrary.simpleMessage("Not implemented"),
"notWorkingYet":
MessageLookupByLibrary.simpleMessage("Not working yet."),
"okay": MessageLookupByLibrary.simpleMessage("Okay"),
"open": MessageLookupByLibrary.simpleMessage("Open"),
"opening": MessageLookupByLibrary.simpleMessage("Opening"),
"openingFile": MessageLookupByLibrary.simpleMessage("Opening file"),
"recentFiles": MessageLookupByLibrary.simpleMessage("Recent files"),
"save": MessageLookupByLibrary.simpleMessage("Save"),
"setDocumentTitle":
MessageLookupByLibrary.simpleMessage("Set document title"),
"sourceCode": MessageLookupByLibrary.simpleMessage("Source Code"),
"theFollowingErrorWasDetected": MessageLookupByLibrary.simpleMessage(
"The following error was detected:"),
"toolboxNotImplementedYet": MessageLookupByLibrary.simpleMessage(
"Toolbox not implemented yet."),
"tools": MessageLookupByLibrary.simpleMessage("Tools"),
"xournalMobileEditionIsAnUnofficialProjectTryingToMake":
MessageLookupByLibrary.simpleMessage(
"Xournal++ - mobile edition is an unofficial project trying to make Xournal++ files and features available on different devices."),
"youDidNotSelectAnyFile": MessageLookupByLibrary.simpleMessage(
"You did not select any file."),
"youveBeenRedirectedToTheLocalApp":
MessageLookupByLibrary.simpleMessage(
"You\'ve been redirected to the local app.")
};
static _notInlinedMessages(_) => <String, Function> {
"abort" : MessageLookupByLibrary.simpleMessage("Abort"),
"about" : MessageLookupByLibrary.simpleMessage("About"),
"aboutXournal" : MessageLookupByLibrary.simpleMessage("About Xournal++"),
"aboutXournalMobileEdition" : MessageLookupByLibrary.simpleMessage("About Xournal++ - mobile edition"),
"apply" : MessageLookupByLibrary.simpleMessage("Apply"),
"areYouSureIHaveThePermissionAndAreYou" : MessageLookupByLibrary.simpleMessage(". Are you sure I have the permission? And are you sure it is a Xournal++ file?"),
"background" : MessageLookupByLibrary.simpleMessage("Background"),
"cancel" : MessageLookupByLibrary.simpleMessage("Cancel"),
"close" : MessageLookupByLibrary.simpleMessage("Close"),
"copyErrorMessage" : MessageLookupByLibrary.simpleMessage("Copy error message"),
"doubleTapToChange" : MessageLookupByLibrary.simpleMessage("Double tap to change."),
"dropFilesToOpen" : MessageLookupByLibrary.simpleMessage("Drop files to open"),
"error" : MessageLookupByLibrary.simpleMessage("Error"),
"errorLoadingFile" : MessageLookupByLibrary.simpleMessage("Error loading file"),
"errorOpeningFile" : MessageLookupByLibrary.simpleMessage("Error opening file"),
"home" : MessageLookupByLibrary.simpleMessage("Home"),
"imVerySorryButICouldntReadTheFile" : MessageLookupByLibrary.simpleMessage("I\'m very sorry, but I couldn\'t read the file "),
"loadingFile" : MessageLookupByLibrary.simpleMessage("Loading file..."),
"mobileEditionUnofficial" : MessageLookupByLibrary.simpleMessage("mobile edition (unofficial)"),
"newDocument" : MessageLookupByLibrary.simpleMessage("New Document"),
"newFile" : MessageLookupByLibrary.simpleMessage("New"),
"newNotebook" : MessageLookupByLibrary.simpleMessage("New Notebook"),
"newTitle" : MessageLookupByLibrary.simpleMessage("New title"),
"noFileSelected" : MessageLookupByLibrary.simpleMessage("No file selected"),
"noRecentFiles" : MessageLookupByLibrary.simpleMessage("No recent files."),
"notImplemented" : MessageLookupByLibrary.simpleMessage("Not implemented"),
"notWorkingYet" : MessageLookupByLibrary.simpleMessage("Not working yet."),
"okay" : MessageLookupByLibrary.simpleMessage("Okay"),
"open" : MessageLookupByLibrary.simpleMessage("Open"),
"opening" : MessageLookupByLibrary.simpleMessage("Opening"),
"openingFile" : MessageLookupByLibrary.simpleMessage("Opening file"),
"recentFiles" : MessageLookupByLibrary.simpleMessage("Recent files"),
"save" : MessageLookupByLibrary.simpleMessage("Save"),
"setDocumentTitle" : MessageLookupByLibrary.simpleMessage("Set document title"),
"sourceCode" : MessageLookupByLibrary.simpleMessage("Source Code"),
"theFollowingErrorWasDetected" : MessageLookupByLibrary.simpleMessage("The following error was detected:"),
"toolboxNotImplementedYet" : MessageLookupByLibrary.simpleMessage("Toolbox not implemented yet."),
"tools" : MessageLookupByLibrary.simpleMessage("Tools"),
"xournalMobileEditionIsAnUnofficialProjectTryingToMake" : MessageLookupByLibrary.simpleMessage("Xournal++ - mobile edition is an unofficial project trying to make Xournal++ files and features available on different devices."),
"youDidNotSelectAnyFile" : MessageLookupByLibrary.simpleMessage("You did not select any file."),
"youveBeenRedirectedToTheLocalApp" : MessageLookupByLibrary.simpleMessage("You\'ve been redirected to the local app.")
};
}
Loading

0 comments on commit 4a68d08

Please sign in to comment.