File: view.h

package info (click to toggle)
clanlib 1.0~svn3827-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 24,600 kB
  • sloc: cpp: 101,591; xml: 6,410; makefile: 1,743; ansic: 463; perl: 424; php: 247; sh: 53
file content (35 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (7)
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

#ifndef file_view
#define file_view

class MainFrame;
class Document;

class View : public CL_Component
{
//! Construction:
public:
	View(MainFrame *mainframe, const std::string &title);

	virtual ~View();

//! Attributes:
public:
	MainFrame *get_mainframe();

	Document *get_document();

	const std::string &get_title() const { return title; }

//! Operations:
public:
	void set_title(const std::string &new_title) { title = new_title; }

//! Implementation:
private:
	MainFrame *mainframe;

	std::string title;
};

#endif