/* * Qt UI * * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: * GiWoong Kim * Sangho Park * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * * Contributors: * - S-Core Co., Ltd * */ #ifndef UISTATE_H #define UISTATE_H #include "controller/dockingcontroller.h" #include "controller/floatingcontroller.h" class ControllerState { public: ControllerState(); void setConFormIndex(int index); int getConFormIndex(); void setDockingCon(DockingController *con); DockingController *getDockingCon(); void setRecentlyDockPos(int pos); int getRecentlyDockPos(); void setFloatingCon(FloatingController *con); FloatingController *getFloatingCon(); void setRecentlyFloatPos(QPoint pos); QPoint getRecentlyFloatPos(); private: int conFormIndex; DockingController *dockingCon; int recentlyDockPos; FloatingController *floatingCon; QPoint recentlyFloatPos; }; class UIState { public: UIState(); void setMainFormIndex(int index); int getMainFormIndex(); /* current */ void setScalePct(int scalePct); int getScalePct(); qreal getScaleFactor(int scale); qreal getScaleFactor(); /* current */ void setOnTop(bool on); bool isOnTop(); ControllerState *getConState(); private: int mainFormIndex; int mainFormScalePct; /* percentage */ bool onTop; ControllerState conState; }; #endif // UISTATE_H