Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Vivy
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Elliu
Vivy
Validations
4ce42afa
Vérifiée
Valider
4ce42afa
rédigé
Il y a 4 ans
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
MISC: Move document type enums in the same header file
parent
7a17625a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!5
Add AudioContext to AudioSubDocument
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
src/Document/CRTPSubDocument.hh
+1
-18
1 ajout, 18 suppressions
src/Document/CRTPSubDocument.hh
src/Lib/Utils.hh
+20
-1
20 ajouts, 1 suppression
src/Lib/Utils.hh
avec
21 ajouts
et
19 suppressions
src/Document/CRTPSubDocument.hh
+
1
−
18
Voir le fichier @
4ce42afa
...
...
@@ -11,25 +11,8 @@
#include
<QString>
#include
<memory>
// Types for the different documents
namespace
Vivy
{
enum
class
AudioDocumentType
:
quint64
{
MP3
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
MP3
),
OGG
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
OGG
),
M4A
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
M4A
),
};
enum
class
VideoDocumentType
:
quint64
{
MKV
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
MKV
),
MP4
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
MP4
),
};
enum
class
AssDocumentType
:
quint64
{
ASS
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
ASS
),
};
// The Big CRTP class for all common things to all the subdocuments
template
<
class
CRTPSubDocumentType
,
class
Document
>
class
CRTPSubDocument
{
public:
...
...
@@ -114,7 +97,7 @@ private:
class
AssSubDocument
final
:
public
CRTPSubDocument
<
AssDocumentType
,
AssSubDocument
>
{
const
QStringList
&
suffixList
=
Vivy
::
Utils
::
assFileSuffix
;
inline
void
initFromPath
(
[[
maybe_unused
]]
const
QString
&
path
)
inline
void
initFromPath
(
const
QString
&
path
)
{
Ass
::
AssFactory
factory
(
path
);
factory
.
getStyles
(
styles
);
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/Lib/Utils.hh
+
20
−
1
Voir le fichier @
4ce42afa
...
...
@@ -69,7 +69,26 @@ to_underlying(E e) noexcept
bool
detectDocumentType
(
const
QFileInfo
&
,
DocumentType
*
);
}
/* All forward delcarations are placed here */
namespace
Vivy
{
// Audio document types
enum
class
AudioDocumentType
:
quint64
{
MP3
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
MP3
),
OGG
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
OGG
),
M4A
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
M4A
),
};
// Video document types
enum
class
VideoDocumentType
:
quint64
{
MKV
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
MKV
),
MP4
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
MP4
),
};
// Ass document types
enum
class
AssDocumentType
:
quint64
{
ASS
=
Vivy
::
Utils
::
to_underlying
(
Vivy
::
Utils
::
DocumentType
::
ASS
),
};
}
class
QMenu
;
class
QAction
;
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter