StelObjectMgr.hpp   StelObjectMgr.hpp 
/* /*
* Stellarium * Stellarium
* Copyright (C) 2007 Fabien Chereau * Copyright (C) 2007 Fabien Chereau
* Copyright (C) 2016 Marcos Cardinot
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 81 skipping to change at line 82
//! @param nameI18n the case sensitive object translated name //! @param nameI18n the case sensitive object translated name
//! @return true if a object with the passed name was found //! @return true if a object with the passed name was found
bool findAndSelectI18n(const QString &nameI18n, StelModule::StelModu leSelectAction action=StelModule::ReplaceSelection); bool findAndSelectI18n(const QString &nameI18n, StelModule::StelModu leSelectAction action=StelModule::ReplaceSelection);
//! Find and select an object from its standard program name. //! Find and select an object from its standard program name.
//! @param action define whether to add to, replace, or remove from the existing selection //! @param action define whether to add to, replace, or remove from the existing selection
//! @param name the case sensitive object translated name //! @param name the case sensitive object translated name
//! @return true if a object with the passed name was found //! @return true if a object with the passed name was found
bool findAndSelect(const QString &name, StelModule::StelModuleSelect Action action=StelModule::ReplaceSelection); bool findAndSelect(const QString &name, StelModule::StelModuleSelect Action action=StelModule::ReplaceSelection);
//! Find and return the list of at most maxNbItem objects auto-compl eting the passed object I18n name. //! Find and return the list of at most maxNbItem objects auto-compl eting the passed object name.
//! @param objPrefix the case insensitive first letters of the searc hed object //! @param objPrefix the case insensitive first letters of the searc hed object
//! @param maxNbItem the maximum number of returned object names. //! @param maxNbItem the maximum number of returned object names.
//! @param useStartOfWords the autofill mode for returned objects na mes //! @param useStartOfWords the autofill mode for returned objects na mes
//! @return a list of matching object names by order of relevance, o r an empty list if nothing match //! @return a list of matching object names by order of relevance, o r an empty list if nothing match
QStringList listMatchingObjectsI18n(const QString& objPrefix, unsign QStringList listMatchingObjects(const QString& objPrefix, unsigned i
ed int maxNbItem=5, bool useStartOfWords=false) const; nt maxNbItem=5, bool useStartOfWords=false, bool inEnglish=true) const;
//! Find and return the list of at most maxNbItem objects auto-compl
eting the passed object English name.
//! @param objPrefix the case insensitive first letters of the searc
hed object
//! @param maxNbItem the maximum number of returned object names.
//! @param useStartOfWords the autofill mode for returned objects na
mes
//! @return a list of matching object names by order of relevance, o
r an empty list if nothing match
QStringList listMatchingObjects(const QString& objPrefix, unsigned i
nt maxNbItem=5, bool useStartOfWords=false) const;
QStringList listAllModuleObjects(const QString& moduleId, bool inEng lish) const; QStringList listAllModuleObjects(const QString& moduleId, bool inEng lish) const;
QMap<QString, QString> objectModulesMap() const; QMap<QString, QString> objectModulesMap() const;
//! Return whether an object was selected during last selection rela ted event. //! Return whether an object was selected during last selection rela ted event.
bool getWasSelected(void) const {return !lastSelectedObjects.empty() ;} bool getWasSelected(void) const {return !lastSelectedObjects.empty() ;}
//! Notify that we want to unselect any object. //! Notify that we want to unselect any object.
void unSelect(void); void unSelect(void);
 End of changes. 3 change blocks. 
15 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/