Changeset 20 in projects for visualisator/gtkpapertapezoom.cc


Ignore:
Timestamp:
Sep 22, 2008, 2:22:53 AM (11 years ago)
Author:
sven
Message:

Cleaned up (No object and output binaries in the SVN). Furthermore it compiles
now ("make all"). There are still bugs. See /TODO.txt (coming soon)

-- Sven @ workstation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • visualisator/gtkpapertapezoom.cc

    r19 r20  
    248248                set_zoom(2.0, false);
    249249        } else if(name == "ZoomWidth") {
    250                 signal_set_auto_zoom.emit(true);
     250                //signal_set_auto_zoom.emit(true);
    251251               
    252252                //set_auto_zoom(ZOOM_LOCHSTREIFEN_WIDTH);
     
    256256                // add signal to fetch size changements
    257257        } else if(name == "ZoomLength") {
    258                 set_auto_zoom(ZOOM_LOCHSTREIFEN_LENGTH);
     258                //set_auto_zoom(ZOOM_LOCHSTREIFEN_LENGTH);
    259259        } else if(name == "ZoomDialog") {
    260260                show_dialog();
     
    272272}
    273273
    274 void set_auto_zoom(PaperTapeView& view, PaperTapeAutoZoomType type) {
     274void PaperTapeZoom::set_auto_zoom(PaperTapeView& view, PaperTapeAutoZoomType type) {
    275275        this->auto_zoom_enabled = true;
    276276
    277277        // connect resize signal
    278278        auto_zoom_resize_con = view.signal_configure_event().connect(
    279                 sigc::mem_fun(*this, on_auto_zoom_resize);
     279                sigc::mem_fun(*this, &PaperTapeZoom::on_auto_zoom_resize)
    280280        );
    281281
     
    284284}
    285285
    286 void disable_auto_zoom() {
     286void PaperTapeZoom::disable_auto_zoom() {
    287287        if(auto_zoom_enabled) {
    288288                auto_zoom_resize_con.disconnect();
     
    291291}
    292292
    293 bool on_auto_zoom_resize(GdkEventConfigure* event) {
     293bool PaperTapeZoom::on_auto_zoom_resize(GdkEventConfigure* event) {
    294294        // depending on orientation, use event->width and event->height
    295295       
    296296        // We could use LOCHSTREIFEN logic here!
    297        
     297        return true;
    298298}
    299299
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License