Commit 056375d7 authored by Jan Möbius's avatar Jan Möbius

get current view mode via sscript

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17703 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 42a6b074
......@@ -1222,6 +1222,9 @@ private slots:
/// Set the active ViewMode
void setViewMode(QString _viewMode);
/// Get current view mode
QString getCurrentViewMode();
/// Set the icon of a viewMode
void setViewModeIcon(QString _mode, QString _iconName);
......
......@@ -138,6 +138,12 @@ void Core::setViewMode(QString _viewMode){
//-----------------------------------------------------------------------------
QString Core::getCurrentViewMode() {
return OpenFlipper::Options::currentViewMode();
}
//-----------------------------------------------------------------------------
void Core::setViewModeIcon(QString _mode, QString _iconName){
if ( OpenFlipper::Options::gui() ){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment