Scroom 0.14-49-gb7ae7a6d
Loading...
Searching...
No Matches
view.cc File Reference
#include "view.hh"
#include <array>
#include <sstream>
#include <spdlog/spdlog.h>
#include <boost/lexical_cast.hpp>
#include <glib-object.h>
#include <scroom/assertions.hh>
#include <scroom/cairo-helpers.hh>
#include <scroom/format_stuff.hh>
#include <scroom/tweak-view.hh>
#include "callbacks.hh"
#include "pluginmanager.hh"
Include dependency graph for view.cc:

Namespaces

namespace  anonymous_namespace{view.cc}
 Helpers.
 

Macros

#define G_VALUE_INIT
 

Enumerations

enum  { COLUMN_TEXT , COLUMN_ZOOM , N_COLUMNS }
 

Functions

Scroom::Utils::Point< double > anonymous_namespace{view.cc}::eventToPoint (GdkEventButton *event)
 
Scroom::Utils::Point< double > anonymous_namespace{view.cc}::eventToPoint (GdkEventMotion *event)
 
void anonymous_namespace{view.cc}::on_newWindow_activate (GtkMenuItem *, gpointer user_data)
 
static void tool_button_toggled (GtkToggleButton *button, gpointer data)
 

Variables

static const std::array< const char *, 36 > zoomfactor
 
static const int MaxZoom = 5
 

Macro Definition Documentation

◆ G_VALUE_INIT

#define G_VALUE_INIT
Value:
{ \
0, {{0} } }
29 { \
30 0, {{0} } }

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
COLUMN_TEXT 
COLUMN_ZOOM 
N_COLUMNS 
43{
47};
@ N_COLUMNS
Definition view.cc:46
@ COLUMN_ZOOM
Definition view.cc:45
@ COLUMN_TEXT
Definition view.cc:44

Function Documentation

◆ tool_button_toggled()

static void tool_button_toggled ( GtkToggleButton *  button,
gpointer  data 
)
static
654{ static_cast<View*>(data)->toolButtonToggled(button); }
uint8_t data
Definition blob-tests.cc:36
Definition view.hh:96

Referenced by View::addToolButton().

Here is the caller graph for this function:

Variable Documentation

◆ MaxZoom

const int MaxZoom = 5
static

◆ zoomfactor

const std::array<const char*, 36> zoomfactor
static
Initial value:
= {
"32:1", "16:1", "8:1", "4:1", "2:1", "1:1", "1:2", "1:4",
"1:8", "1:16", "1:32", "1:64", "1:128", "1:250", "1:500", "1:1000",
"1:2000", "1:4000", "1:8000", "1:16000", "1:32000", "1:64000", "1:128000", "1:250000",
"1:500000", "1:1 million", "1:2 million", "1:4 million", "1:8 million", "1:16 million", "1:32 million", "1:64 million",
"1:128 million", "1:250 million", "1:500 million", "1:1 billion",
}
33 {
34 "32:1", "16:1", "8:1", "4:1", "2:1", "1:1", "1:2", "1:4",
35 "1:8", "1:16", "1:32", "1:64", "1:128", "1:250", "1:500", "1:1000",
36 "1:2000", "1:4000", "1:8000", "1:16000", "1:32000", "1:64000", "1:128000", "1:250000",
37 "1:500000", "1:1 million", "1:2 million", "1:4 million", "1:8 million", "1:16 million", "1:32 million", "1:64 million",
38 "1:128 million", "1:250 million", "1:500 million", "1:1 billion",
39};

Referenced by View::updateZoom().