screen: adjust indentation

This commit is contained in:
Andrzej Rybczak
2012-09-13 22:01:33 +02:00
parent 9ddfca8f31
commit bb5d72d558
2 changed files with 133 additions and 135 deletions

View File

@@ -30,9 +30,8 @@ void scrollpadMouseButtonPressed(NC::Scrollpad *w, MEVENT me);
/// An interface for various instantiations of Screen template class. Since C++ doesn't like
/// comparison of two different instantiations of the same template class we need the most
/// basic class to be non-template to allow it.
class BasicScreen
struct BasicScreen
{
public:
/// Initializes all variables to zero
BasicScreen() : hasToBeResized(0), isInitialized(0) { }
@@ -93,7 +92,7 @@ class BasicScreen
/// Unlocks a screen, ie. hides merged window (if there is one set).
static void unlock();
protected:
protected:
/// Since screens initialization is lazy, we don't want to do
/// this in the constructor. This function should be invoked
/// only once and after that isInitialized flag has to be set
@@ -124,9 +123,8 @@ bool isVisible(BasicScreen *screen);
/// for the screen to be working properly and assumes that we didn't forget
/// about anything vital.
///
template <typename WindowT> class Screen : public BasicScreen
template <typename WindowT> struct Screen : public BasicScreen
{
public:
typedef WindowT ScreenType;
Screen() : w(0) { }
@@ -170,7 +168,7 @@ template <typename WindowT> class Screen : public BasicScreen
return w;
}
protected:
protected:
/// Template parameter that should indicate the main type
/// of window used by the screen. What is more, it should
/// always be assigned to the currently active window (if

View File

@@ -27,7 +27,7 @@
#include "actions.h"
#include "strbuffer.h"
class BasicScreen; // forward declaration for screens sequence
struct BasicScreen; // forward declaration for screens sequence
enum SortMode { smName, smMTime, smCustomFormat };