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
Add documents
Kubat
requested to merge
vivy-document
into
master
21 juin 2021
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
28 juin 2021
par
Kubat
0
0
Rapports de requête de fusion
Affichage du commit
7a1f6d5e
Afficher la dernière version
8 files
+
171
−
18
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
7a1f6d5e
DOCUMENT: First quick and dirty implementation of subdocuments
· 7a1f6d5e
Kubat
rédigé
21 juin 2021
src/Document/AudioDocument.cc
0 → 100644
+
31
−
0
Afficher le fichier @ 7a1f6d5e
Modifier dans l'éditeur de fichier unique
Ouvrir dans Web EDI
#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