root/deus/AuthorInterface_impl.h

Revision 8, 1.1 kB (checked in by pantley2, 4 years ago)

added old DEUS project to SVN

Line 
1 /**
2  * AuthorInterface_impl.h
3  *
4  * Concrete extension of AuthorInterface UI
5  */
6 #pragma warning(disable: 4786)
7 #pragma once
8
9 #include "AuthorInterface.h"
10 #include "GraphDisplay.h"
11 #include "structures.h"
12 #include "LoadStory.h"
13
14 enum ViewType {STORY_VIEW = 0x0, KEYFRAME_VIEW, LAST_VIEW};
15
16 class AuthorForm_impl : public AuthorForm
17 {
18         Q_OBJECT
19 public:
20         AuthorForm_impl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
21
22         ViewType viewing;
23         AuthorGraphDisplay *gd; // Custom GraphDisplay container
24         LoadDialog *ld;
25
26         AuthorNode*     selected;
27         StoryNode*      current_story;  // not NULL iff viewing == KEYFRAME_VIEW
28
29         void changeSelected(AuthorNode *n);
30         void keyframeView(StoryNode *current);
31
32         bool is_closing;
33
34 public slots:
35         void addNode();
36         void newNodeTextChanged();
37         void saveTextChanged(const QString &);
38         void storyView();
39         void cellValueChanged(int,int);
40         void save();
41         void del_story(int);
42         void del_story();
43         void load();
44         void load(int story_id);
45
46         void closing() {is_closing = true;}
47
48 private:
49         void populateLoad();
50 };
Note: See TracBrowser for help on using the browser.