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
4e0c072e
Valider
4e0c072e
rédigé
Il y a 3 ans
par
Elliu
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Add getCurrentVivyDocument
parent
f396541f
Branches
Branches contenant la validation
Aucune étiquette associée trouvée
1 requête de fusion
!17
Api update
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
src/VivyApplication.cc
+11
-0
11 ajouts, 0 suppression
src/VivyApplication.cc
src/VivyApplication.hh
+1
-0
1 ajout, 0 suppression
src/VivyApplication.hh
avec
12 ajouts
et
0 suppression
src/VivyApplication.cc
+
11
−
0
Voir le fichier @
4e0c072e
...
@@ -91,3 +91,14 @@ VivyApplication::getMainWindow() const
...
@@ -91,3 +91,14 @@ VivyApplication::getMainWindow() const
throw
std
::
logic_error
(
"No main window in the graphic VivyApplication"
);
throw
std
::
logic_error
(
"No main window in the graphic VivyApplication"
);
return
mainWindowPtr
.
get
();
return
mainWindowPtr
.
get
();
}
}
/*
* @return the current VivyDocument, or null if there isn't one or if the current document is not a VivyDocument
*/
VivyDocument
*
VivyApplication
::
getCurrentVivyDocument
()
const
{
if
(
!
mainWindowPtr
)
throw
std
::
logic_error
(
"No main window in the graphic VivyApplication"
);
return
dynamic_cast
<
VivyDocument
*>
(
mainWindowPtr
.
get
()
->
getCurrentDocument
());
}
Ce diff est replié.
Cliquez pour l'agrandir.
src/VivyApplication.hh
+
1
−
0
Voir le fichier @
4e0c072e
...
@@ -71,6 +71,7 @@ public:
...
@@ -71,6 +71,7 @@ public:
QFont
getApplicationFont
(
Font
)
const
noexcept
;
QFont
getApplicationFont
(
Font
)
const
noexcept
;
[[
nodiscard
(
"handle-it"
)]]
MainWindow
*
getMainWindow
()
const
;
[[
nodiscard
(
"handle-it"
)]]
MainWindow
*
getMainWindow
()
const
;
[[
nodiscard
(
"handle-it"
)]]
VivyDocument
*
getCurrentVivyDocument
()
const
;
void
setTheme
(
Theme
)
noexcept
;
void
setTheme
(
Theme
)
noexcept
;
};
};
...
...
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