SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GuiCommands.h
Go to the documentation of this file.
1 /*
2  For more information, please see: http://software.sci.utah.edu
3 
4  The MIT License
5 
6  Copyright (c) 2012 Scientific Computing and Imaging Institute,
7  University of Utah.
8 
9  License for the specific language governing rights and limitations under
10  Permission is hereby granted, free of charge, to any person obtaining a
11  copy of this software and associated documentation files (the "Software"),
12  to deal in the Software without restriction, including without limitation
13  the rights to use, copy, modify, merge, publish, distribute, sublicense,
14  and/or sell copies of the Software, and to permit persons to whom the
15  Software is furnished to do so, subject to the following conditions:
16 
17  The above copyright notice and this permission notice shall be included
18  in all copies or substantial portions of the Software.
19 
20  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26  DEALINGS IN THE SOFTWARE.
27 */
28 
29 #ifndef INTERFACE_APPLICATION_GUICOMMANDS_H
30 #define INTERFACE_APPLICATION_GUICOMMANDS_H
31 
33 #include <Core/Command/Command.h>
34 
35 class QSplashScreen;
36 class QTimer;
37 
38 namespace SCIRun {
39 namespace Gui {
40 
41  class NetworkEditor;
42 
44  {
45  public:
46  virtual bool execute();
47  };
48 
50  {
51  public:
52  virtual bool execute();
53  };
54 
56  {
57  public:
58  virtual bool execute();
59  };
60 
62  {
63  public:
64  virtual bool execute();
65  };
66 
68  {
69  public:
70  virtual bool execute();
71  };
72 
74  {
75  public:
76  virtual bool execute();
77  };
78 
80  {
81  public:
83  virtual bool execute();
84  private:
85  static void initSplashScreen();
86  static QSplashScreen* splash_;
87  static QTimer* splashTimer_;
88  };
89 
91  {
92  public:
93  FileOpenCommand(const std::string& filename, NetworkEditor* networkEditor) : filename_(filename), networkEditor_(networkEditor) {}
94  virtual bool execute();
95 
97  private:
98  std::string filename_;
99  NetworkEditor* networkEditor_;
100  };
101 
102 
103 }
104 }
105 #endif
Definition: GuiCommands.h:73
Dataflow::Networks::NetworkFileHandle openedFile_
Definition: GuiCommands.h:96
virtual bool execute()
Definition: GuiCommands.cc:62
virtual bool execute()
Definition: GuiCommands.cc:136
boost::shared_ptr< NetworkFile > NetworkFileHandle
Definition: NetworkFwd.h:86
virtual bool execute()
Definition: GuiCommands.cc:56
FileOpenCommand(const std::string &filename, NetworkEditor *networkEditor)
Definition: GuiCommands.h:93
Definition: GuiCommands.h:79
Definition: GuiCommands.h:43
Definition: NetworkEditor.h:104
virtual bool execute()
Definition: GuiCommands.cc:43
Definition: Command.h:66
Definition: GuiCommands.h:67
virtual bool execute()
Definition: GuiCommands.cc:106
Definition: GuiCommands.h:61
Definition: GuiCommands.h:49
Definition: GuiCommands.h:90
virtual bool execute()
Definition: GuiCommands.cc:83
virtual bool execute()
Definition: GuiCommands.cc:50
virtual bool execute()
Definition: GuiCommands.cc:68
ShowSplashScreenGui()
Definition: GuiCommands.cc:78