summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2007-10-24 19:29:46 +0200
committerAndreas Mair <andreas@vdr-developer.org>2007-10-24 19:29:46 +0200
commit3b617b561f901e8f7a5f8991bc1d51e1ee800142 (patch)
tree0bbf93eab394f637d0e1c5b286a04e2226b08f9e
parent57e0533f20b14e208e41e56f80fd15b3d18f90f1 (diff)
downloadvdr-plugin-extrecmenu-3b617b561f901e8f7a5f8991bc1d51e1ee800142.tar.gz
vdr-plugin-extrecmenu-3b617b561f901e8f7a5f8991bc1d51e1ee800142.tar.bz2
Version 1.1v1.1
- fixed an issue with starting an editing process; thank to Andreas Mair for the patch - new marker ('*') is shown despite the setup option 'Show alternative to new marker' is on and 'Patch font' is off; fixed; thanks to Saxman2k from vdr-portal.de for reporting - added option to switch off cutter queue
-rw-r--r--HISTORY8
-rw-r--r--extrecmenu.c4
-rw-r--r--i18n.c22
-rw-r--r--i18n.c.orig1087
-rw-r--r--mymenurecordings.c4
-rw-r--r--mymenusetup.c4
-rw-r--r--mymenusetup.h2
-rw-r--r--myreplaycontrol.c48
8 files changed, 66 insertions, 1113 deletions
diff --git a/HISTORY b/HISTORY
index 715ef78..b1e7561 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,6 +1,14 @@
VDR Plugin 'extrecmenu' Revision History
----------------------------------------
+2007-10-22: Version 1.1
+- fixed an issue with starting an editing process; thank to Andreas Mair for
+ the patch
+- new marker ('*') is shown despite the setup option 'Show alternative to new
+ marker' is on and 'Patch font' is off; fixed; thanks to Saxman2k from
+ vdr-portal.de for reporting
+- added option to switch off cutter queue
+
2007-10-07: Version 1.0
- it is now possible to cancel a moving-between-filesystems-process
- applied changes for MainMenuHooksPatch
diff --git a/extrecmenu.c b/extrecmenu.c
index ebaf3b8..ba81dac 100644
--- a/extrecmenu.c
+++ b/extrecmenu.c
@@ -11,7 +11,7 @@
using namespace std;
-static const char *VERSION = "1.0";
+static const char *VERSION = "1.1";
static const char *DESCRIPTION = "Extended recordings menu";
static const char *MAINMENUENTRY = "ExtRecMenu";
@@ -133,6 +133,8 @@ bool cPluginExtrecmenu::SetupParse(const char *Name,const char *Value)
mysetup.PatchFont=atoi(Value);
else if(!strcasecmp(Name,"FileSystemFreeMB"))
mysetup.FileSystemFreeMB=atoi(Value);
+ else if(!strcasecmp(Name,"UseCutterQueue"))
+ mysetup.UseCutterQueue=atoi(Value);
else
return false;
return true;
diff --git a/i18n.c b/i18n.c
index 4d5d39d..b37360c 100644
--- a/i18n.c
+++ b/i18n.c
@@ -1237,6 +1237,28 @@ const tI18nPhrase Phrases[] = {
"",
"Přejmenování/přesun selhal!",
},
+ { "Use cutter queue",
+ "Schnittwarteschlange benutzen",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ },
{ NULL }
};
diff --git a/i18n.c.orig b/i18n.c.orig
deleted file mode 100644
index bdf130f..0000000
--- a/i18n.c.orig
+++ /dev/null
@@ -1,1087 +0,0 @@
-/*
- * See the README file for copyright information and how to reach the author.
- */
-
-#include "i18n.h"
-
-const tI18nPhrase Phrases[] = {
- { "Extended recordings menu",
- "Erweitertes Aufzeichnungs-Menü",
- "",
- "",
- "",
- "",
- "Menu enregistrement étandu",
- "",
- "Laajennettu tallennevalikko",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Rozšířené menu nahrávek",
- },
- { "Button$Open",
- "Öffnen",
- "",
- "",
- "",
- "",
- "Ouvrir",
- "",
- "Avaa",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Otevřít",
- },
- { "Button$Back",
- "Zurück",
- "",
- "",
- "",
- "",
- "Retour",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Button$Cancel",
- "Abbrechen",
- "",
- "",
- "",
- "",
- "Interrompre",
- "",
- "Peruuta",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Zrušit",
- },
- { "Button$Play",
- "Wiedergabe",
- "",
- "",
- "",
- "",
- "Montrer",
- "",
- "Toista",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Přehrát",
- },
- { "Button$Commands",
- "Befehle",
- "",
- "",
- "",
- "",
- "Commande",
- "",
- "Komennot",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Příkazy",
- },
- { "Button$Rewind",
- "Anfang",
- "",
- "",
- "",
- "",
- "Début",
- "",
- "Alkuun",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Na začátek",
- },
- { "Button$Create",
- "Anlegen",
- "",
- "",
- "",
- "",
- "Créer",
- "",
- "Luo",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Vytvořit",
- },
- { "Button$Edit",
- "Editieren",
- "",
- "",
- "",
- "",
- "Éditer",
- "",
- "Muokkaa",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Editovat",
- },
- { "Button$Rename",
- "Umbenennen",
- "",
- "",
- "",
- "",
- "Renommer",
- "",
- "Nimeä",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Přejmenovat",
- },
- { "Button$Move",
- "Verschieben",
- "",
- "",
- "",
- "",
- "Déplacer",
- "",
- "Siirrä",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Přesunout",
- },
- { "Button$Delete",
- "Löschen",
- "",
- "",
- "",
- "",
- "Effacer",
- "",
- "Poista",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Smazat",
- },
- { "Button$Info",
- "Info",
- "",
- "",
- "",
- "",
- "Info",
- "",
- "Tiedot",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Info",
- },
- { "New folder",
- "Neues Verzeichnis",
- "",
- "",
- "",
- "",
- "Nouveau dossier",
- "",
- "Uusi kansio",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Nový adresář",
- },
- { "Rename",
- "Umbenennen",
- "",
- "",
- "",
- "",
- "Renommer",
- "",
- "Nimeä",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Přejmenovat",
- },
- { "Show recording date",
- "Aufnahmedatum anzeigen",
- "",
- "",
- "",
- "",
- "Afiicher la date d'enregistrement",
- "",
- "Näytä tallenteen päiväys",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Zobrazit datum nahrávky",
- },
- { "Show recording time",
- "Aufnahmezeit anzeigen",
- "",
- "",
- "",
- "",
- "Afficher l'heure d'enregistrement",
- "",
- "Näytä tallenteen ajankohta",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Zobrazit čas nahrávky",
- },
- { "Show recording length",
- "Aufnahmelänge anzeigen",
- "",
- "",
- "",
- "",
- "Afficher la longeur de l'enregistrement",
- "",
- "Näytä tallenteen kesto",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Zobrazit délku nahrávky",
- },
- { "Hide main menu entry",
- "Hauptmenüeintrag ausblenden",
- "",
- "",
- "",
- "",
- "Menu Enregistrement étandu invisible",
- "",
- "Piilota valinta päävalikosta",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Skrýt položku v hlavním menu",
- },
- { "Replace original recordings menu",
- "Originales Aufzeichnungsmenü ersetzen",
- "",
- "",
- "",
- "",
- "Remplacer le nenu original Enregistrement",
- "",
- "Korvaa alkuperäinen tallennevalikko",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Nahradit originální menu nahrávek",
- },
- { "Show alternative to new marker",
- "Alternative zu Neu-Marker anzeigen",
- "",
- "",
- "",
- "",
- "Afficher les nouveaux symbols alternatifs",
- "",
- "Merkitse uudet tallenteet symbolilla",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Zobrazit alternativu k novým značkám",
- },
- { "Please insert DVD %s",
- "Bitte DVD %s einlegen",
- "",
- "",
- "",
- "",
- "Mettez le DVD %s dans le lecteur",
- "",
- "Laita DVD %s asemaan",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Vložte prosím DVD %s",
- },
- { "Error while mounting DVD!",
- "Fehler beim Einhängen der DVD!",
- "",
- "",
- "",
- "",
- "Erreur lors du montage du DVD!",
- "",
- "DVD:n avaaminen epäonnistui!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Chyba během připojování DVD!",
- },
- { "Recording not found on DVD!",
- "Aufzeichnung auf DVD nicht gefunden!",
- "",
- "",
- "",
- "",
- "Il n'y a pas d'enregistrement sur le DVD!",
- "",
- "Tallennetta ei löydy DVD:ltä!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Nahrávka nebyla na DVD nalezena!",
- },
- { "Script 'dvdarchive.sh' not found!",
- "Skript 'dvdarchive.sh' wurde nicht gefunden!",
- "",
- "",
- "",
- "",
- "Impossible de trouver le script 'dvdarchive.sh'!",
- "",
- "'dvdarchive.sh'-skriptiä ei löydetä!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Skript 'dvdarchive.sh' nebyl nalezen!",
- },
- { "[base dir]",
- "[Stammverzeichnis]",
- "",
- "",
- "",
- "",
- "[Dossier racine]",
- "",
- "[juurihakemisto]",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "[základní adresář]",
- },
- { "No DVD in drive!",
- "Keine DVD im Laufwerk!",
- "",
- "",
- "",
- "",
- "Pas de DVD dans le lecteur!",
- "",
- "Asemassa ei ole DVD-levyä!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "V jednotce není DVD!",
- },
- { "Error while linking [0-9]*.vdr!",
- "Fehler beim Anlegen der Symlinks [0-9]*.vdr!",
- "",
- "",
- "",
- "",
- "Erreur lors de la création des racourcis [0-9]*.vdr!",
- "",
- "Tiedostojen [0-9]*.vdr linkittäminen epäonnistui!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Chyba při spojování [0-9]*.vdr!",
- },
- { "sudo or mount --bind / umount error (vfat system)",
- "sudo oder mount --bind / umount Fehler (VFAT-System)",
- "",
- "",
- "",
- "",
- "Erreur sudo ou mount --bind / umount (Systeme VFAT)",
- "",
- "Sudo tai mount --bind / umount -komento epäonnistui (VFAT)!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "sudo nebo mount --bind / umount selhal (VFAT-systém)",
- },
- { "Details",
- "Details",
- "",
- "",
- "",
- "",
- "Détails",
- "",
- "Lisätiedot",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Detaily",
- },
- { "DVD plugin is not installed!",
- "Das DVD-Plugin ist nicht installiert!",
- "",
- "",
- "",
- "",
- "Le plugin DVD n'est pas installé!",
- "",
- "DVD-laajennosta ei löydy!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Modul DVD není nainstalován!",
- },
- { "Rename/Move failed!",
- "Umbenennen/Verschieben fehlgeschlagen!",
- "",
- "",
- "",
- "",
- "Renommer/déplacer ŕ échoué!",
- "",
- "Nimeäminen/siirto epäonnistui!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Přejmenování/Přesun selhal!",
- },
- { "Invalid filename!",
- "Ungültiger Dateiname!",
- "",
- "",
- "",
- "",
- "Nom de fichiers n'est pas valide'",
- "",
- "Virheellinen tiedoston nimi!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Chybné jméno souboru!",
- },
- { "Moving into own sub-directory not allowed!",
- "Verschieben in eigenes Unterverzeichnis nicht erlaubt!",
- "",
- "",
- "",
- "",
- "Déplacer dans le sous-dossier propre, n'est pas possible!",
- "",
- "Siirto omaan alihakemistoon ei ole sallittu!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "Přesun do vlastního podadresáře není povolen!",
- },
- { "Sort by name",
- "Sortieren nach Namen",
- "",
- "",
- "",
- "",
- "Triage selon le nom",
- "",
- "Tallenteet järjestetään nimen mukaan",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Sort by date",
- "Sortieren nach Datum",
- "",
- "",
- "",
- "",
- "Triage selon date",
- "",
- "Tallenteet järjestetään päivämäärän mukaan",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Show nr. of new recordings in a directory",
- "Anzahl der neuen Aufz. im Ordner anzeigen",
- "",
- "",
- "",
- "",
- "Afficher le nombre de nouveaux enregistrements dans les dossiers",
- "",
- "Näytä uusien tallenteiden lukumäärä",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Sorting",
- "Sortierung",
- "",
- "",
- "",
- "",
- "Triage",
- "",
- "Järjestys",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "ascending",
- "aufsteigend",
- "",
- "",
- "",
- "",
- "montant",
- "",
- "nouseva",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "descending",
- "absteigend",
- "",
- "",
- "",
- "",
- "descendant",
- "",
- "laskeva",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Jump to last replayed recording",
- "Springe zur zuletzt abgespielten Aufzeichnung",
- "",
- "",
- "",
- "",
- "Retour au dernier enregistrement lu",
- "",
- "Siirry viimeksi toistettuun tallenteeseen",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Call plugin after playback",
- "Nach Wiedergabe Plugin aufrufen",
- "",
- "",
- "",
- "",
- "Aprčs la lecture démarer le plugin",
- "",
- "Avaa laajennos toiston loputtua",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Move recordings already in progress!",
- "Es werden schon Aufzeichnungen verschoben!",
- "",
- "",
- "",
- "",
- "Des enregistrements sont déjŕ en déplacement!",
- "",
- "Tallenteiden siirto on jo käynnissä!",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Move recordings in progress",
- "Es werden Aufzeichungen verschoben",
- "",
- "",
- "",
- "",
- "Enregistrements en cours de déplacement",
- "",
- "Tallenteiden siirto käynnissä",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Limit bandwidth for move recordings",
- "Bandbreite beim Verschieben begrenzen",
- "",
- "",
- "",
- "",
- "Limiter la bande passante lors du déplacement",
- "",
- "Rajoita tallenteiden siirtokaistaa",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Target filesystem filled- try anyway?",
- "Zielpartition voll - trotzdem versuchen?",
- "",
- "",
- "",
- "",
- "La partition de déstination est pleine - essayer tout de męme?",
- "",
- "Kohdepartitio täynnä - yritetäänkö silti?",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Path",
- "Pfad",
- "",
- "",
- "",
- "",
- "Chemin",
- "",
- "Polku",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Size",
- "Größe",
- "",
- "",
- "",
- "",
- "Taille",
- "",
- "Koko",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { "Use VDR's recording info menu",
- "VDR-Aufz.-Info-Menü benutzen",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- },
- { NULL }
- };
diff --git a/mymenurecordings.c b/mymenurecordings.c
index 1a7725d..6cb1297 100644
--- a/mymenurecordings.c
+++ b/mymenurecordings.c
@@ -195,9 +195,9 @@ myMenuRecordingsItem::myMenuRecordingsItem(cRecording *Recording,int Level)
titlebuffer << char(129);
else if(MoveCutterThread->IsCutting(filename))
titlebuffer << char(132);
- else if(Recording->IsNew() && (!mysetup.PatchNew || !mysetup.PatchFont))
+ else if(Recording->IsNew() && !mysetup.PatchNew)
titlebuffer << '*';
- else if(!Recording->IsNew() && mysetup.PatchNew && mysetup.PatchFont)
+ else if(!Recording->IsNew() && mysetup.PatchNew)
titlebuffer << char(128);
else titlebuffer << ' ';
diff --git a/mymenusetup.c b/mymenusetup.c
index 42c9eb3..99a3229 100644
--- a/mymenusetup.c
+++ b/mymenusetup.c
@@ -21,6 +21,7 @@ mySetup::mySetup()
mysetup.UseVDRsRecInfoMenu=0;
mysetup.PatchFont=1;
mysetup.FileSystemFreeMB=1;
+ mysetup.UseCutterQueue=1;
}
mySetup mysetup;
@@ -43,6 +44,7 @@ myMenuSetup::myMenuSetup()
usevdrsrecinfomenu=mysetup.UseVDRsRecInfoMenu;
patchfont=mysetup.PatchFont;
filesystemfreemb=mysetup.FileSystemFreeMB;
+ usecutterqueue=mysetup.UseCutterQueue;
sortingtypetexts[0]=tr("ascending");
sortingtypetexts[1]=tr("descending");
@@ -65,6 +67,7 @@ myMenuSetup::myMenuSetup()
#endif
Add(new cMenuEditBoolItem(tr("Limit bandwidth for move recordings"),&limitbandwidth));
Add(new cMenuEditBoolItem(tr("Use VDR's recording info menu"),&usevdrsrecinfomenu));
+ Add(new cMenuEditBoolItem(tr("Use cutter queue"),&usecutterqueue));
}
void myMenuSetup::Store()
@@ -83,5 +86,6 @@ void myMenuSetup::Store()
SetupStore("UseVDRsRecInfoMenu",mysetup.UseVDRsRecInfoMenu=usevdrsrecinfomenu);
SetupStore("PatchFont",mysetup.PatchFont=patchfont);
SetupStore("FileSystemFreeMB",mysetup.FileSystemFreeMB=filesystemfreemb);
+ SetupStore("UseCutterQueue",mysetup.UseCutterQueue=usecutterqueue);
}
diff --git a/mymenusetup.h b/mymenusetup.h
index 8332b93..cd8b601 100644
--- a/mymenusetup.h
+++ b/mymenusetup.h
@@ -18,6 +18,7 @@ class mySetup
int UseVDRsRecInfoMenu;
int PatchFont;
int FileSystemFreeMB;
+ int UseCutterQueue;
};
extern mySetup mysetup;
@@ -40,6 +41,7 @@ class myMenuSetup:public cMenuSetupPage
int usevdrsrecinfomenu;
int patchfont;
int filesystemfreemb;
+ int usecutterqueue;
protected:
virtual void Store();
public:
diff --git a/myreplaycontrol.c b/myreplaycontrol.c
index d929272..9ba50da 100644
--- a/myreplaycontrol.c
+++ b/myreplaycontrol.c
@@ -28,43 +28,45 @@ eOSState myReplayControl::ProcessKey(eKeys Key)
{
if(Key!=kNone)
{
- if(Key==kBack)
- return osEnd;
-
- if(timesearchactive)
+ if(timesearchactive && mysetup.UseCutterQueue)
{
- if(Key<k0 && Key>k9)
+ if(Key<k0 || Key>k9)
timesearchactive=false;
}
else
{
- if(Key==kEditCut)
+ if(mysetup.UseCutterQueue)
{
- const char *filename=NowReplaying();
-
- if(filename)
+ if(Key==kEditCut)
{
- if(MoveCutterThread->IsCutting(filename))
- Skins.Message(mtError,tr("Recording already in cutter queue!"));
- else
+ const char *filename=cReplayControl::NowReplaying();
+
+ if(filename)
{
- cMarks marks;
- marks.Load(filename);
-
- if(!marks.Count())
- Skins.Message(mtError,tr("No editing marks defined!"));
+ if(MoveCutterThread->IsCutting(filename))
+ Skins.Message(mtError,tr("Recording already in cutter queue!"));
else
{
- MoveCutterThread->AddToCutterQueue(filename);
- Skins.Message(mtInfo,tr("Added recording to cutter queue"));
+ cMarks marks;
+ marks.Load(filename);
+
+ if(!marks.Count())
+ Skins.Message(mtError,tr("No editing marks defined!"));
+ else
+ {
+ MoveCutterThread->AddToCutterQueue(filename);
+ Skins.Message(mtInfo,tr("Added recording to cutter queue"));
+ }
}
}
+ return osContinue;
}
- return osContinue;
- }
- if(Key==kRed)
- timesearchactive=true;
+ if(Key==kRed)
+ timesearchactive=true;
+ }
+ if(Key==kBack)
+ return osEnd;
}
}