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
Requêtes de fusion
!3
Add documents
Code
Examiner les modifications
Extraire la branche
Télécharger
Correctifs
Diff brut
Étendre la barre latérale
Fusionnées
Add documents
vivy-document
vers
master
Vue d'ensemble
3
Validations
99
Pipelines
0
Modifications
8
Fusionnées
Kubat
a demandé de fusionner
vivy-document
vers
master
Il y a 4 ans
Vue d'ensemble
3
Validations
99
Pipelines
0
Modifications
8
Add documents, document views and a document store to manage document and which one is displayed.
The MainWindow make calls to the VivyDocumentStore to create the documents and the views
The VivyDocumentStore create the documents
The VivyDocumentView is only here to have a view, it won't hold any data
The VivyDocument can be manipulated in any part of the code
Widgets view the VivyDocument through the VivyDocumentView
Add the VivyApplication that will hold the window and the non-graphic data
The main window can get the currently selected main document
Modification effectuée
Il y a 4 ans
par
Kubat
0
0
Rapports de requête de fusion
Affichage du commit
52e56c7e
Précédent
Suivant
Afficher la dernière version
8 files
+
77
−
102
En ligne
Comparer les modifications
Côte à côte
En ligne
Afficher les modifications des espaces
Afficher un fichier à la fois
Fichiers
8
Vérifiée
52e56c7e
DOCUMENT: Implement SubDocument using a CRTP
· 52e56c7e
Kubat
rédigé
Il y a 4 ans
src/Document/AudioDocument.cc supprimé
100644 → 0
+
0
−
31
Afficher le fichier @ d4ed85ee
#include
"AudioDocument.h"
#include
"../Utils.h"
#include
<QFileInfo>
AudioDocument
*
AudioDocument
::
fromFile
(
const
QString
audioFilePath
)
noexcept
{
QFileInfo
file
(
audioFilePath
);
const
QString
fileSuffix
=
file
.
suffix
();
const
bool
fileIsValid
=
Vivy
::
Utils
::
audioFileSuffix
.
contains
(
fileSuffix
)
||
Vivy
::
Utils
::
videoFileSuffix
.
contains
(
fileSuffix
);
if
(
!
fileIsValid
)
return
nullptr
;
AudioDocument
*
ret
=
new
AudioDocument
();
return
ret
;
}
AudioDocument
::
Type
AudioDocument
::
getAudioType
()
const
noexcept
{
return
fileType
;
}
QString
AudioDocument
::
getFilePath
()
const
noexcept
{
return
filePath
;
}
Chargement en cours