Fixed indentation

This commit is contained in:
Xinyu Hou 2016-09-15 12:22:00 -04:00 committed by Andrew Nelless
parent dc80ab4023
commit d78758ab7d
2 changed files with 37 additions and 33 deletions

View File

@ -105,7 +105,7 @@ private:
bool operator==(const String& name) const; bool operator==(const String& name) const;
private: private:
Config* m_config; Config* m_config;
String m_name; String m_name;
}; };
@ -391,7 +391,8 @@ public:
link_const_iterator endNeighbor(const String&) const; link_const_iterator endNeighbor(const String&) const;
//! Get the server address //! Get the server address
const NetworkAddress& getSynergyAddress() const; const NetworkAddress&
getSynergyAddress() const;
//! Get the screen options //! Get the screen options
/*! /*!
@ -399,14 +400,15 @@ public:
if the screen is unknown and an empty collection if there are no if the screen is unknown and an empty collection if there are no
options. options.
*/ */
const ScreenOptions* getOptions(const String& name) const; const ScreenOptions*
getOptions(const String& name) const;
//! Check for lock to screen action //! Check for lock to screen action
/*! /*!
Returns \c true if this configuration has a lock to screen action. Returns \c true if this configuration has a lock to screen action.
This is for backwards compatible support of ScrollLock locking. This is for backwards compatible support of ScrollLock locking.
*/ */
bool hasLockToScreenAction() const; bool hasLockToScreenAction() const;
//! Compare configurations //! Compare configurations
bool operator==(const Config&) const; bool operator==(const Config&) const;
@ -418,19 +420,21 @@ public:
Reads a configuration from a context. Throws XConfigRead on error Reads a configuration from a context. Throws XConfigRead on error
and context is unchanged. and context is unchanged.
*/ */
void read(ConfigReadContext& context); void read(ConfigReadContext& context);
//! Read configuration //! Read configuration
/*! /*!
Reads a configuration from a stream. Throws XConfigRead on error. Reads a configuration from a stream. Throws XConfigRead on error.
*/ */
friend std::istream& operator>>(std::istream&, Config&); friend std::istream&
operator>>(std::istream&, Config&);
//! Write configuration //! Write configuration
/*! /*!
Writes a configuration to a stream. Writes a configuration to a stream.
*/ */
friend std::ostream& operator<<(std::ostream&, const Config&); friend std::ostream&
operator<<(std::ostream&, const Config&);
//! Get direction name //! Get direction name
/*! /*!
@ -468,11 +472,11 @@ private:
static String getOptionValue(OptionID, OptionValue); static String getOptionValue(OptionID, OptionValue);
private: private:
CellMap m_map; CellMap m_map;
NameMap m_nameToCanonicalName; NameMap m_nameToCanonicalName;
NetworkAddress m_synergyAddress; NetworkAddress m_synergyAddress;
ScreenOptions m_globalOptions; ScreenOptions m_globalOptions;
InputFilter m_inputFilter; InputFilter m_inputFilter;
bool m_hasLockToScreenAction; bool m_hasLockToScreenAction;
IEventQueue* m_events; IEventQueue* m_events;
}; };
@ -488,41 +492,41 @@ public:
ConfigReadContext(std::istream&, SInt32 firstLine = 1); ConfigReadContext(std::istream&, SInt32 firstLine = 1);
~ConfigReadContext(); ~ConfigReadContext();
bool readLine(String&); bool readLine(String&);
UInt32 getLineNumber() const; UInt32 getLineNumber() const;
bool operator!() const; bool operator!() const;
OptionValue parseBoolean(const String&) const; OptionValue parseBoolean(const String&) const;
OptionValue parseInt(const String&) const; OptionValue parseInt(const String&) const;
OptionValue parseModifierKey(const String&) const; OptionValue parseModifierKey(const String&) const;
OptionValue parseCorner(const String&) const; OptionValue parseCorner(const String&) const;
OptionValue parseCorners(const String&) const; OptionValue parseCorners(const String&) const;
Config::Interval Config::Interval
parseInterval(const ArgList& args) const; parseInterval(const ArgList& args) const;
void parseNameWithArgs( void parseNameWithArgs(
const String& type, const String& line, const String& type, const String& line,
const String& delim, String::size_type& index, const String& delim, String::size_type& index,
String& name, ArgList& args) const; String& name, ArgList& args) const;
IPlatformScreen::KeyInfo* IPlatformScreen::KeyInfo*
parseKeystroke(const String& keystroke) const; parseKeystroke(const String& keystroke) const;
IPlatformScreen::KeyInfo* IPlatformScreen::KeyInfo*
parseKeystroke(const String& keystroke, parseKeystroke(const String& keystroke,
const std::set<String>& screens) const; const std::set<String>& screens) const;
IPlatformScreen::ButtonInfo* IPlatformScreen::ButtonInfo*
parseMouse(const String& mouse) const; parseMouse(const String& mouse) const;
KeyModifierMask parseModifier(const String& modifiers) const; KeyModifierMask parseModifier(const String& modifiers) const;
std::istream& getStream() const { return m_stream; }; std::istream& getStream() const { return m_stream; };
private: private:
// not implemented // not implemented
ConfigReadContext& operator=(const ConfigReadContext&); ConfigReadContext& operator=(const ConfigReadContext&);
static String concatArgs(const ArgList& args); static String concatArgs(const ArgList& args);
private: private:
std::istream& m_stream; std::istream& m_stream;
SInt32 m_line; SInt32 m_line;
}; };
//! Configuration stream read exception //! Configuration stream read exception

View File

@ -28,5 +28,5 @@ public:
public: public:
String m_configFile; String m_configFile;
Config* m_config; Config* m_config;
}; };