Blame view

LiveChat/FeiTalk/ishowframe.cpp 931 Bytes
9f17d59e   陈明泉   no message
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  #include "ishowframe.h"
  #include <QHBoxLayout>
  #include "mainwindow.h"
  #include "ishowstack.h"
  #include "dragproxy.h"
  IShowFrame::IShowFrame(MainWindow *_gui) :
      QWidget(_gui),gui(_gui)
  {
      // Leave HBox hook for adding a list view later
      QHBoxLayout *IShowFrameLayout = new QHBoxLayout(this);
      setContentsMargins(0,0,0,0);
      iShowStack = new IShowStack(this);
      iShowStack->setMainGUI(gui);
      IShowFrameLayout->setContentsMargins(0,0,0,0);
      IShowFrameLayout->addWidget(iShowStack);
  
  }
  
  IShowFrame::~IShowFrame()   
  {
  }
  
  bool IShowFrame::addIShow(const QString& name)
  {
      return iShowStack->addIShow(name);
  }
  
  bool IShowFrame::setCurrentIShow(const QString& name)
  {
      // TODO: Check if valid name
      iShowStack->setCurrentIShow(name);
      return true;
  }
  
  void IShowFrame::removeAllIShows()
  {
      iShowStack->removeAllIShows();
  }
  
  void IShowFrame::gotoOverviewPage()
  {
      iShowStack->gotoOverviewPage();
  }