GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ALer-R/ViewPic

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
core
core
 
 
graphics
graphics
 
 
resources
resources
 
 
tools
tools
 
 
ui
ui
 
 
.gitignore
.gitignore
 
 
_rhook_qt_plugins.py
_rhook_qt_plugins.py
 
 
app.py
app.py
 
 
build_app.py
build_app.py
 
 
main.py
main.py
 
 
readme.md
readme.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

项目结构

ViewPic/
├── main.py                    # 入口
├── app.py                     # QApplication + 高亮主题样式
├── core/                      # 核心逻辑(无 Qt widget 依赖)
│   ├── settings.py            # 全局配置(A4 72dpi, 标尺38px, 红色辅助线)
│   ├── coordinate.py          # px↔mm↔pt 转换 + 刻度计算 + 格式化
│   ├── dpi.py                 # A4 标准 595×842pt
│   ├── snap_manager.py        # 吸附系统(辅助线/边缘/中心)
│   └── document.py            # 文档模型(图片/PDF/缩放/单位/旋转翻转)
├── graphics/                  # 图形场景组件
│   ├── graphics_scene.py      # QGraphicsScene + Z值层级定义
│   ├── graphics_view.py       # QGraphicsView(事件分发到工具)
│   ├── image_item.py          # PIL→QPixmap 图片显示
│   ├── checkerboard_item.py   # 透明棋盘格背景
│   ├── guide_item.py          # 红色辅助线(可拖动,±80000延伸)
│   ├── measure_item.py        # 测量线段+标签+端点圆圈
│   ├── grid_item.py           # 像素网格 overlay
│   ├── selection_item.py      # 虚线选区矩形
│   └── crop_item.py           # 裁切框
├── tools/                     # 工具系统(策略模式)
│   ├── base_tool.py           # 抽象基类 + ToolManager
│   ├── hand_tool.py           # 抓手(H键)
│   ├── zoom_tool.py           # 缩放(Z键,Ctrl+滚轮)
│   ├── guide_tool.py          # 辅助线(PS标尺拖动+画布点击+拖动+双击删除)
│   ├── measure_tool.py        # 测量(Ctrl+拖拽)
│   ├── move_tool.py           # 移动(V键)
│   └── selection_tool.py      # 选区
└── ui/                        # UI 组件
    ├── main_window.py         # 主窗口(组装所有组件)
    ├── toolbar.py             # 工具栏(缩放/打开/PDF/旋转翻转/宽高/透明度/适应下拉)
    ├── statusbar.py           # 状态栏(坐标/文件信息/缩放比)
    ├── ruler.py               # PS 标尺(0点在图片左上角,三级刻度+数值,标尺拖动创建辅助线)
    ├── minimap.py             # 导航小地图(缩略图+红色视野框+拖拽跳转)
    └── layer_panel.py         # 图层面板

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.